2019-10-05 06:43:56 +03:00
|
|
|
{ stdenv, lib, mkDerivation, fetchFromGitHub
|
2019-08-29 01:25:52 +03:00
|
|
|
, git, gnupg, pass, qtbase, qtsvg, qttools, qmake
|
2019-08-28 03:08:28 +03:00
|
|
|
}:
|
2015-06-25 16:37:15 +03:00
|
|
|
|
2019-08-08 13:15:50 +03:00
|
|
|
mkDerivation rec {
|
2019-03-21 23:13:18 +03:00
|
|
|
pname = "qtpass";
|
2019-10-05 06:43:56 +03:00
|
|
|
version = "1.3.1";
|
2015-06-25 16:37:15 +03:00
|
|
|
|
2016-09-28 07:32:15 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "IJHack";
|
2016-10-10 14:20:51 +03:00
|
|
|
repo = "QtPass";
|
2016-09-28 07:32:15 +03:00
|
|
|
rev = "v${version}";
|
2019-10-05 06:43:56 +03:00
|
|
|
sha256 = "025sdk4fq71jgfs54zj7ssgvlci8vvjkqdckgbwz0nqrynlljy08";
|
2015-06-25 16:37:15 +03:00
|
|
|
};
|
|
|
|
|
2016-04-25 13:12:05 +03:00
|
|
|
buildInputs = [ git gnupg pass qtbase qtsvg qttools ];
|
|
|
|
|
2019-08-29 01:25:52 +03:00
|
|
|
nativeBuildInputs = [ qmake ];
|
2015-06-25 16:37:15 +03:00
|
|
|
|
2019-03-21 23:13:18 +03:00
|
|
|
enableParallelBuilding = true;
|
2015-06-25 16:37:15 +03:00
|
|
|
|
2019-08-08 13:15:50 +03:00
|
|
|
qtWrapperArgs = [
|
2019-08-29 01:25:52 +03:00
|
|
|
"--suffix PATH : ${lib.makeBinPath [ git gnupg pass ]}"
|
2019-08-08 13:15:50 +03:00
|
|
|
];
|
|
|
|
|
2016-04-25 13:12:05 +03:00
|
|
|
postInstall = ''
|
2018-01-05 04:45:50 +03:00
|
|
|
install -D qtpass.desktop $out/share/applications/qtpass.desktop
|
|
|
|
install -D artwork/icon.svg $out/share/icons/hicolor/scalable/apps/qtpass-icon.svg
|
2015-06-25 16:37:15 +03:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A multi-platform GUI for pass, the standard unix password manager";
|
2016-04-25 13:12:05 +03:00
|
|
|
homepage = https://qtpass.org;
|
2015-06-25 16:37:15 +03:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.hrdinka ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|