mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-08 14:40:07 +03:00
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
|
||||
, coreutils
|
||||
, libiconv
|
||||
, xcbuild
|
||||
, zlib
|
||||
, Security
|
||||
}:
|
||||
|
||||
@ -19,9 +21,17 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
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 = ''
|
||||
substituteInPlace src/verb/builtin.rs --replace '"/bin/' '"${coreutils}/bin/'
|
||||
|
Loading…
Reference in New Issue
Block a user