rPackages.JuniperKernel: fix non-Darwin build

This commit is contained in:
Mitsuhiro Nakamura 2018-05-15 14:30:37 +09:00
parent 640b6359ae
commit 89a5e6db55

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