forked from mirrors/nixpkgs
rbw: fix build on darwin
This commit is contained in:
parent
d3669570d2
commit
56f9e7571c
|
@ -1,11 +1,12 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, rustPlatform
|
||||
, fetchCrate
|
||||
, pinentry
|
||||
, openssl
|
||||
, pkgconfig
|
||||
, makeWrapper
|
||||
, cargo
|
||||
, Security
|
||||
|
||||
# rbw-fzf
|
||||
, withFzf ? false, fzf, perl
|
||||
|
@ -34,9 +35,11 @@ rustPlatform.buildRustPackage rec {
|
|||
makeWrapper
|
||||
];
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/pinentry.rs \
|
||||
--replace "Command::new(\"pinentry\")" "Command::new(\"${pinentry}/bin/pinentry\")"
|
||||
--replace 'Command::new("pinentry")' 'Command::new("${pinentry}/${pinentry.binaryPath or "bin/pinentry"}")'
|
||||
'' + lib.optionalString withFzf ''
|
||||
patchShebangs bin/rbw-fzf
|
||||
substituteInPlace bin/rbw-fzf \
|
||||
|
|
|
@ -6465,7 +6465,9 @@ in
|
|||
|
||||
pywal = with python3Packages; toPythonApplication pywal;
|
||||
|
||||
rbw = callPackage ../tools/security/rbw { };
|
||||
rbw = callPackage ../tools/security/rbw {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
||||
remarshal = callPackage ../development/tools/remarshal { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue