Merge pull request #40543 from mnacamura/darwin-juniper

rPackages.JuniperKernel: fix non-Darwin build
This commit is contained in:
Matthew Justin Bauer 2018-05-15 10:52:13 -05:00 committed by GitHub
commit 656e4d67ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -757,7 +757,7 @@ let
});
JuniperKernel = old.JuniperKernel.overrideDerivation (attrs: {
postPatch = ''
postPatch = lib.optionalString stdenv.isDarwin ''
for file in {R,src}/*.R; do
sed -i 's#system("which \(otool\|install_name_tool\)"[^)]*)#"${pkgs.darwin.cctools}/bin/\1"#g' $file
done