rbw: remove pinentry substitution

Since rbw≥1.1.0 pinentry is configured trough `rbw config`.
This commit is contained in:
Mario Rodas 2021-03-11 04:20:00 +00:00
parent e641756799
commit 7008b7e015

View File

@ -2,7 +2,6 @@
, stdenv
, rustPlatform
, fetchCrate
, pinentry
, openssl
, pkg-config
, makeWrapper
@ -40,10 +39,7 @@ rustPlatform.buildRustPackage rec {
buildInputs = lib.optionals stdenv.isDarwin [ Security libiconv ];
postPatch = ''
substituteInPlace src/pinentry.rs \
--replace 'Command::new("pinentry")' 'Command::new("${pinentry}/${pinentry.binaryPath or "bin/pinentry"}")'
'' + lib.optionalString withFzf ''
postPatch = lib.optionalString withFzf ''
patchShebangs bin/rbw-fzf
substituteInPlace bin/rbw-fzf \
--replace fzf ${fzf}/bin/fzf \