kwalletcli: fix kwalletcli_getpin command (#188818)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Niko Strijbol 2022-09-04 14:02:59 +02:00 committed by GitHub
parent 39bce34f6e
commit e5b52ee3e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,6 +22,9 @@ mkDerivation rec {
substituteInPlace pinentry-kwallet \
--replace '/usr/bin/env mksh' ${mksh}/bin/mksh
substituteInPlace kwalletcli_getpin \
--replace '/usr/bin/env mksh' ${mksh}/bin/mksh
'';
makeFlags = [ "KDE_VER=5" ];
@ -35,9 +38,11 @@ mkDerivation rec {
'';
postInstall = ''
wrapProgram $out/bin/pinentry-kwallet \
--prefix PATH : $out/bin:${lib.makeBinPath [ pinentry-qt ]} \
--set-default PINENTRY pinentry-qt
for program in pinentry-kwallet kwalletcli_getpin; do
wrapProgram $out/bin/$program \
--prefix PATH : $out/bin:${lib.makeBinPath [ pinentry-qt ]} \
--set-default PINENTRY pinentry-qt
done
'';
meta = with lib; {