rbw: remove pinentry substitution
Since rbw≥1.1.0 pinentry is configured trough `rbw config`.
This commit is contained in:
parent
e641756799
commit
7008b7e015
@ -2,7 +2,6 @@
|
|||||||
, stdenv
|
, stdenv
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, fetchCrate
|
, fetchCrate
|
||||||
, pinentry
|
|
||||||
, openssl
|
, openssl
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
@ -40,10 +39,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
buildInputs = lib.optionals stdenv.isDarwin [ Security libiconv ];
|
buildInputs = lib.optionals stdenv.isDarwin [ Security libiconv ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = lib.optionalString withFzf ''
|
||||||
substituteInPlace src/pinentry.rs \
|
|
||||||
--replace 'Command::new("pinentry")' 'Command::new("${pinentry}/${pinentry.binaryPath or "bin/pinentry"}")'
|
|
||||||
'' + lib.optionalString withFzf ''
|
|
||||||
patchShebangs bin/rbw-fzf
|
patchShebangs bin/rbw-fzf
|
||||||
substituteInPlace bin/rbw-fzf \
|
substituteInPlace bin/rbw-fzf \
|
||||||
--replace fzf ${fzf}/bin/fzf \
|
--replace fzf ${fzf}/bin/fzf \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user