qtpass: scope qrencode

This commit is contained in:
c0bw3b 2019-11-30 12:20:35 +01:00
parent e8f2764fe8
commit 442670f787

View File

@ -1,5 +1,5 @@
{ lib, mkDerivation, fetchFromGitHub
, git, gnupg, pass, pwgen
, git, gnupg, pass, pwgen, qrencode
, qtbase, qtsvg, qttools, qmake
}:
@ -14,6 +14,11 @@ mkDerivation rec {
sha256 = "0748hjvhjrybi33ci3c8hcr74k9pdrf5jv8npf9hrsrmdyy1kr9x";
};
postPatch = ''
substituteInPlace src/qtpass.cpp \
--replace "/usr/bin/qrencode" "${qrencode}/bin/qrencode"
'';
buildInputs = [ git gnupg pass qtbase qtsvg ];
nativeBuildInputs = [ qmake qttools ];