1 { fetchFromGitHub, lib, stdenv
2 , git, gnupg, pass, pwgen, qrencode
3 , qtbase, qtsvg, qttools, qmake, wrapQtAppsHook
6 stdenv.mkDerivation rec {
10 src = fetchFromGitHub {
14 sha256 = "sha256-oKLLmsuXD2Hb2LQ4tcJP2gpR6eLaM/JzDhRcRSpUPYI=";
18 substituteInPlace src/qtpass.cpp \
19 --replace "/usr/bin/qrencode" "${qrencode}/bin/qrencode"
22 buildInputs = [ git gnupg pass qtbase qtsvg ];
24 nativeBuildInputs = [ qmake qttools wrapQtAppsHook ];
27 # setup hook only sets QMAKE_LRELEASE, set QMAKE_LUPDATE too:
28 "QMAKE_LUPDATE=${qttools.dev}/bin/lupdate"
32 "--suffix PATH : ${lib.makeBinPath [ git gnupg pass pwgen ]}"
36 install -D qtpass.desktop -t $out/share/applications
37 install -D artwork/icon.svg $out/share/icons/hicolor/scalable/apps/qtpass-icon.svg
38 install -D qtpass.1 -t $out/share/man/man1
42 description = "Multi-platform GUI for pass, the standard unix password manager";
43 mainProgram = "qtpass";
44 homepage = "https://qtpass.org";
45 license = licenses.gpl3;
46 maintainers = [ maintainers.hrdinka ];
47 platforms = platforms.all;