nixpkgs/pkgs/applications/networking/instant-messengers/telegram/telegram-qml/default.nix

36 lines
1007 B
Nix
Raw Normal View History

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 ];
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"
'';
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;
license = licenses.gpl3;
maintainers = [ maintainers.Profpatsch ];
platforms = platforms.linux;
2015-12-13 00:26:38 +00:00
};
}