mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 19:44:09 +00:00
rPackages.JuniperKernel: fix non-Darwin build
This commit is contained in:
parent
640b6359ae
commit
89a5e6db55
@ -757,7 +757,7 @@ let
|
|||||||
});
|
});
|
||||||
|
|
||||||
JuniperKernel = old.JuniperKernel.overrideDerivation (attrs: {
|
JuniperKernel = old.JuniperKernel.overrideDerivation (attrs: {
|
||||||
postPatch = ''
|
postPatch = lib.optionalString stdenv.isDarwin ''
|
||||||
for file in {R,src}/*.R; do
|
for file in {R,src}/*.R; do
|
||||||
sed -i 's#system("which \(otool\|install_name_tool\)"[^)]*)#"${pkgs.darwin.cctools}/bin/\1"#g' $file
|
sed -i 's#system("which \(otool\|install_name_tool\)"[^)]*)#"${pkgs.darwin.cctools}/bin/\1"#g' $file
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user