diff --git a/pkgs/applications/misc/qtpass/default.nix b/pkgs/applications/misc/qtpass/default.nix index 1256bb96608f..f185524da587 100644 --- a/pkgs/applications/misc/qtpass/default.nix +++ b/pkgs/applications/misc/qtpass/default.nix @@ -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 ];