summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Justin Bauer <mjbauer95@gmail.com>2018-05-15 10:52:13 -0500
committerGitHub <noreply@github.com>2018-05-15 10:52:13 -0500
commit656e4d67ea4890d6b97c7d30494fa55c04798fb5 (patch)
treef032cbd3a8374342c58b452f4eba4d84da66fa86
parent1d9d1fa780b28a61e9644c9ab07f636a7e720501 (diff)
parent89a5e6db55e45994fa343ec91586065ce929b831 (diff)
downloadnixlib-656e4d67ea4890d6b97c7d30494fa55c04798fb5.tar
nixlib-656e4d67ea4890d6b97c7d30494fa55c04798fb5.tar.gz
nixlib-656e4d67ea4890d6b97c7d30494fa55c04798fb5.tar.bz2
nixlib-656e4d67ea4890d6b97c7d30494fa55c04798fb5.tar.lz
nixlib-656e4d67ea4890d6b97c7d30494fa55c04798fb5.tar.xz
nixlib-656e4d67ea4890d6b97c7d30494fa55c04798fb5.tar.zst
nixlib-656e4d67ea4890d6b97c7d30494fa55c04798fb5.zip
Merge pull request #40543 from mnacamura/darwin-juniper
rPackages.JuniperKernel: fix non-Darwin build
-rw-r--r--pkgs/development/r-modules/default.nix2
1 files changed, 1 insertions, 1 deletions
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