qtpass: Fix /usr/lib hardcode to pass-otp.
Before, the checkbox for OTP functionality could not be enabled on NixOS, even when `(pass.withExtensions (exts: [ exts.pass-otp ]))` was installed correctly.
This commit is contained in:
parent
c94a5f3485
commit
213e129825
@ -1,5 +1,6 @@
|
|||||||
{ lib, mkDerivation, fetchFromGitHub
|
{ lib, mkDerivation, fetchFromGitHub
|
||||||
, git, gnupg, pass, pwgen, qrencode
|
, git, gnupg, pass, pwgen, qrencode
|
||||||
|
, fetchpatch
|
||||||
, qtbase, qtsvg, qttools, qmake
|
, qtbase, qtsvg, qttools, qmake
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -25,6 +26,16 @@ mkDerivation rec {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Fix path to pass-otp plugin `/usr/lib/password-store/extensions/otp.bash` being hardcoded.
|
||||||
|
# TODO: Remove when https://github.com/IJHack/QtPass/pull/499 is merged and available.
|
||||||
|
(fetchpatch {
|
||||||
|
name = "qtpass-Dont-hardcode-pass-otp-usr-lib-path.patch";
|
||||||
|
url = "https://github.com/IJHack/QtPass/commit/2ca9f0ec5a8d709c97a2433c5cd814040c82d4f3.patch";
|
||||||
|
sha256 = "0ljlvqxvarrz2a4j71i66aflrxi84zirb6cg9kvygnvhvm1zbc7d";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
qmakeFlags = [
|
qmakeFlags = [
|
||||||
# setup hook only sets QMAKE_LRELEASE, set QMAKE_LUPDATE too:
|
# setup hook only sets QMAKE_LRELEASE, set QMAKE_LUPDATE too:
|
||||||
"QMAKE_LUPDATE=${qttools.dev}/bin/lupdate"
|
"QMAKE_LUPDATE=${qttools.dev}/bin/lupdate"
|
||||||
|
Loading…
Reference in New Issue
Block a user