nixpkgs/pkgs/applications/networking/instant-messengers/telegram/telegram-qml/default.nix
Profpatsch 53e790e7a8 maintainers: capitalize the Profpatsch attribute (vanity)
Since I’m already at it, this has been bothering me for a while.
2018-02-12 07:24:50 +01:00

36 lines
1007 B
Nix

{ stdenv, fetchFromGitHub
, qtbase, qtmultimedia, qtquick1, qmake
, 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 ];
enableParallelBuilding = true;
nativeBuildInputs = [ qmake ];
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;
};
}