diff options
author | Tikhon Jelvis <tikhon.jelvis@target.com> | 2016-11-28 15:07:41 -0800 |
---|---|---|
committer | Tikhon Jelvis <tikhon.jelvis@target.com> | 2016-11-28 15:07:41 -0800 |
commit | 80bee8ffe70cba34ea1f0098c45f65b2e761d3e3 (patch) | |
tree | 5ea67fd8870f3dfd08a92794780cefde0eda194f /pkgs/applications/networking/cluster/hadoop/default.nix | |
parent | 076e3ae32cb40b590a50bffdcf1ee5da85bfabe9 (diff) | |
download | nixlib-80bee8ffe70cba34ea1f0098c45f65b2e761d3e3.tar nixlib-80bee8ffe70cba34ea1f0098c45f65b2e761d3e3.tar.gz nixlib-80bee8ffe70cba34ea1f0098c45f65b2e761d3e3.tar.bz2 nixlib-80bee8ffe70cba34ea1f0098c45f65b2e761d3e3.tar.lz nixlib-80bee8ffe70cba34ea1f0098c45f65b2e761d3e3.tar.xz nixlib-80bee8ffe70cba34ea1f0098c45f65b2e761d3e3.tar.zst nixlib-80bee8ffe70cba34ea1f0098c45f65b2e761d3e3.zip |
Added a check to not run patchelf on Darwin systems.
Diffstat (limited to 'pkgs/applications/networking/cluster/hadoop/default.nix')
-rw-r--r-- | pkgs/applications/networking/cluster/hadoop/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/applications/networking/cluster/hadoop/default.nix b/pkgs/applications/networking/cluster/hadoop/default.nix index c5cc7ca74312..55ebb580f52b 100644 --- a/pkgs/applications/networking/cluster/hadoop/default.nix +++ b/pkgs/applications/networking/cluster/hadoop/default.nix @@ -15,7 +15,8 @@ stdenv.mkDerivation rec { for n in "bin/"* "sbin/"*; do sed -i $n -e "s|#!/usr/bin/env bash|#! ${bash}/bin/bash|" done - patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" bin/container-executor + '' + stdenv.lib.optionalString (!stdenv.isDarwin) '' + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" bin/container-executor; ''; installPhase = '' |