Added a check to not run patchelf on Darwin systems.

This commit is contained in:
Tikhon Jelvis 2016-11-28 15:07:41 -08:00
parent 076e3ae32c
commit 80bee8ffe7

View File

@ -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 = ''