3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/qtpass/default.nix

45 lines
1.1 KiB
Nix
Raw Normal View History

2019-10-05 04:57:55 +01:00
{ lib, mkDerivation, fetchFromGitHub
2019-08-28 23:25:52 +01:00
, git, gnupg, pass, qtbase, qtsvg, qttools, qmake
}:
2015-06-25 14:37:15 +01:00
mkDerivation rec {
pname = "qtpass";
version = "1.3.1";
2015-06-25 14:37:15 +01:00
2016-09-28 05:32:15 +01:00
src = fetchFromGitHub {
owner = "IJHack";
repo = "QtPass";
2016-09-28 05:32:15 +01:00
rev = "v${version}";
sha256 = "025sdk4fq71jgfs54zj7ssgvlci8vvjkqdckgbwz0nqrynlljy08";
2015-06-25 14:37:15 +01:00
};
2019-10-05 04:57:55 +01:00
buildInputs = [ git gnupg pass qtbase qtsvg ];
2019-10-05 04:57:55 +01:00
nativeBuildInputs = [ qmake qttools ];
2015-06-25 14:37:15 +01:00
enableParallelBuilding = true;
2015-06-25 14:37:15 +01:00
2019-10-05 04:57:55 +01:00
qmakeFlags = [
# setup hook only sets QMAKE_LRELEASE, set QMAKE_LUPDATE too:
"QMAKE_LUPDATE=${qttools.dev}/bin/lupdate"
];
qtWrapperArgs = [
2019-08-28 23:25:52 +01:00
"--suffix PATH : ${lib.makeBinPath [ git gnupg pass ]}"
];
postInstall = ''
2019-10-05 05:04:16 +01:00
install -D qtpass.desktop -t $out/share/applications
2018-01-05 01:45:50 +00:00
install -D artwork/icon.svg $out/share/icons/hicolor/scalable/apps/qtpass-icon.svg
2019-10-05 05:04:16 +01:00
install -D qtpass.1 -t $out/share/man/man1
2015-06-25 14:37:15 +01:00
'';
2019-10-05 04:57:55 +01:00
meta = with lib; {
2015-06-25 14:37:15 +01:00
description = "A multi-platform GUI for pass, the standard unix password manager";
homepage = https://qtpass.org;
2015-06-25 14:37:15 +01:00
license = licenses.gpl3;
maintainers = [ maintainers.hrdinka ];
platforms = platforms.all;
};
}