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 , 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 \