forked from mirrors/nixpkgs
a6af80b421
This reverts commit c275fc610e
.
36 lines
1,015 B
Nix
36 lines
1,015 B
Nix
{ stdenv, fetchFromGitHub
|
|
, qtbase, qtmultimedia, qtquick1, qmakeHook
|
|
, libqtelegram-aseman-edition }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "telegram-qml-${meta.version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Aseman-Land";
|
|
repo = "TelegramQML";
|
|
rev = "v${meta.version}";
|
|
sha256 = "0j8vn845f2virvddk9yjbljy6vkr9ikyn6iy7hpj8nvr2xls3499";
|
|
};
|
|
|
|
propagatedBuildInputs = [ qtbase qtmultimedia qtquick1 libqtelegram-aseman-edition ];
|
|
nativeBuildInputs = [ qmakeHook ];
|
|
enableParallelBuilding = true;
|
|
|
|
patchPhase = ''
|
|
substituteInPlace telegramqml.pro --replace "/\$\$LIB_PATH" ""
|
|
substituteInPlace telegramqml.pro --replace "INSTALL_HEADERS_PREFIX/telegramqml" "INSTALL_HEADERS_PREFIX"
|
|
'';
|
|
|
|
qmakeFlags = [ "BUILD_MODE+=lib" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
version = "0.9.2";
|
|
description = "Telegram API tools for QtQml and Qml";
|
|
homepage = src.meta.homepage;
|
|
license = licenses.gpl3;
|
|
maintainers = [ maintainers.profpatsch ];
|
|
platforms = platforms.linux;
|
|
};
|
|
|
|
}
|