diff --git a/pkgs/development/r-modules/default.nix b/pkgs/development/r-modules/default.nix index 451fc1dc6fee..cbaea0f0d85e 100644 --- a/pkgs/development/r-modules/default.nix +++ b/pkgs/development/r-modules/default.nix @@ -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