Merge pull request #40543 from mnacamura/darwin-juniper
rPackages.JuniperKernel: fix non-Darwin build
This commit is contained in:
commit
656e4d67ea
|
@ -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