broot: fix Darwin build
- The zlib-sys dependency requires zlib. - The cc crate, which is used by various dependent crates, now uses xcrun on Darwin.
This commit is contained in:
parent
9afdd82862
commit
c4f6645eda
@ -5,6 +5,8 @@
|
|||||||
, makeWrapper
|
, makeWrapper
|
||||||
, coreutils
|
, coreutils
|
||||||
, libiconv
|
, libiconv
|
||||||
|
, xcbuild
|
||||||
|
, zlib
|
||||||
, Security
|
, Security
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -19,9 +21,17 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
cargoSha256 = "0nqmincayjv1snxz94i14fypc9dv69fxfqqdz3qbcvc2cs62zayg";
|
cargoSha256 = "0nqmincayjv1snxz94i14fypc9dv69fxfqqdz3qbcvc2cs62zayg";
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper installShellFiles ];
|
nativeBuildInputs = [
|
||||||
|
makeWrapper
|
||||||
|
installShellFiles
|
||||||
|
xcbuild # The cc crate attempts to run xcbuild.
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ libiconv Security ];
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [
|
||||||
|
libiconv
|
||||||
|
Security
|
||||||
|
zlib
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace src/verb/builtin.rs --replace '"/bin/' '"${coreutils}/bin/'
|
substituteInPlace src/verb/builtin.rs --replace '"/bin/' '"${coreutils}/bin/'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user