Merge pull request #99514 from marsam/fix-rbw-darwin
rbw: fix build on darwin
This commit is contained in:
commit
06e4c82396
@ -2,7 +2,7 @@
|
|||||||
, libgpgerror, libassuan, qtbase, wrapQtAppsHook
|
, libgpgerror, libassuan, qtbase, wrapQtAppsHook
|
||||||
, ncurses, gtk2, gcr
|
, ncurses, gtk2, gcr
|
||||||
, libcap ? null, libsecret ? null
|
, libcap ? null, libsecret ? null
|
||||||
, enabledFlavors ? [ "curses" "tty" "gtk2" "qt" "gnome3" "emacs" ]
|
, enabledFlavors ? [ "curses" "tty" "gtk2" "qt" "emacs" ] ++ lib.optionals stdenv.isLinux [ "gnome3" ]
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
{ lib
|
{ lib
|
||||||
|
, stdenv
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, fetchCrate
|
, fetchCrate
|
||||||
, pinentry
|
, pinentry
|
||||||
, openssl
|
, openssl
|
||||||
, pkgconfig
|
, pkgconfig
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, cargo
|
, Security
|
||||||
|
|
||||||
# rbw-fzf
|
# rbw-fzf
|
||||||
, withFzf ? false, fzf, perl
|
, withFzf ? false, fzf, perl
|
||||||
@ -34,9 +35,11 @@ rustPlatform.buildRustPackage rec {
|
|||||||
makeWrapper
|
makeWrapper
|
||||||
];
|
];
|
||||||
|
|
||||||
|
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace src/pinentry.rs \
|
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 ''
|
'' + lib.optionalString withFzf ''
|
||||||
patchShebangs bin/rbw-fzf
|
patchShebangs bin/rbw-fzf
|
||||||
substituteInPlace bin/rbw-fzf \
|
substituteInPlace bin/rbw-fzf \
|
||||||
|
@ -6465,7 +6465,9 @@ in
|
|||||||
|
|
||||||
pywal = with python3Packages; toPythonApplication pywal;
|
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 { };
|
remarshal = callPackage ../development/tools/remarshal { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user