nixpkgs/pkgs/applications/misc/qtpass/default.nix

39 lines
989 B
Nix
Raw Normal View History

{ stdenv, lib, mkDerivation, fetchFromGitHub
2019-08-29 01:25:52 +03:00
, git, gnupg, pass, qtbase, qtsvg, qttools, qmake
}:
2015-06-25 16:37:15 +03:00
mkDerivation rec {
pname = "qtpass";
version = "1.3.1";
2015-06-25 16:37:15 +03:00
2016-09-28 07:32:15 +03:00
src = fetchFromGitHub {
owner = "IJHack";
repo = "QtPass";
2016-09-28 07:32:15 +03:00
rev = "v${version}";
sha256 = "025sdk4fq71jgfs54zj7ssgvlci8vvjkqdckgbwz0nqrynlljy08";
2015-06-25 16:37:15 +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
enableParallelBuilding = true;
2015-06-25 16:37:15 +03:00
qtWrapperArgs = [
2019-08-29 01:25:52 +03:00
"--suffix PATH : ${lib.makeBinPath [ git gnupg pass ]}"
];
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";
homepage = https://qtpass.org;
2015-06-25 16:37:15 +03:00
license = licenses.gpl3;
maintainers = [ maintainers.hrdinka ];
platforms = platforms.all;
};
}