2015-12-13 00:26:38 +00:00
|
|
|
{ stdenv, fetchFromGitHub
|
2017-06-02 16:40:19 +01:00
|
|
|
, qtbase, qtmultimedia, qtquick1, qmake
|
2015-12-13 00:26:38 +00:00
|
|
|
, libqtelegram-aseman-edition }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-03-03 05:19:07 +00:00
|
|
|
name = "telegram-qml-${meta.version}";
|
2015-12-13 00:26:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Aseman-Land";
|
|
|
|
repo = "TelegramQML";
|
2016-03-03 05:19:07 +00:00
|
|
|
rev = "v${meta.version}";
|
|
|
|
sha256 = "0j8vn845f2virvddk9yjbljy6vkr9ikyn6iy7hpj8nvr2xls3499";
|
2015-12-13 00:26:38 +00:00
|
|
|
};
|
|
|
|
|
2016-03-03 05:19:07 +00:00
|
|
|
propagatedBuildInputs = [ qtbase qtmultimedia qtquick1 libqtelegram-aseman-edition ];
|
2016-03-26 16:55:39 +00:00
|
|
|
enableParallelBuilding = true;
|
2017-06-02 16:40:19 +01:00
|
|
|
nativeBuildInputs = [ qmake ];
|
2015-12-13 00:26:38 +00:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace telegramqml.pro --replace "/\$\$LIB_PATH" ""
|
|
|
|
substituteInPlace telegramqml.pro --replace "INSTALL_HEADERS_PREFIX/telegramqml" "INSTALL_HEADERS_PREFIX"
|
|
|
|
'';
|
|
|
|
|
2016-04-16 20:59:20 +01:00
|
|
|
qmakeFlags = [ "BUILD_MODE+=lib" ];
|
2015-12-13 00:26:38 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2016-03-03 05:19:07 +00:00
|
|
|
version = "0.9.2";
|
2015-12-13 00:26:38 +00:00
|
|
|
description = "Telegram API tools for QtQml and Qml";
|
|
|
|
homepage = src.meta.homepage;
|
2016-03-26 16:55:39 +00:00
|
|
|
license = licenses.gpl3;
|
2018-02-12 06:18:12 +00:00
|
|
|
maintainers = [ maintainers.Profpatsch ];
|
2016-03-26 16:55:39 +00:00
|
|
|
platforms = platforms.linux;
|
2015-12-13 00:26:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|