diff options
Diffstat (limited to 'pkgs/build-support/libredirect/default.nix')
-rw-r--r-- | pkgs/build-support/libredirect/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/libredirect/default.nix b/pkgs/build-support/libredirect/default.nix index 42525ec98a7e4..f87c6d23dd798 100644 --- a/pkgs/build-support/libredirect/default.nix +++ b/pkgs/build-support/libredirect/default.nix @@ -38,11 +38,11 @@ stdenv.mkDerivation rec { install -vD "$libName" "$out/lib/$libName" + # Provide a setup hook that injects our library into every process. mkdir -p "$hook/nix-support" cat <<SETUP_HOOK > "$hook/nix-support/setup-hook" ${if stdenv.isDarwin then '' export DYLD_INSERT_LIBRARIES="$out/lib/$libName" - export DYLD_FORCE_FLAT_NAMESPACE=1 '' else '' export LD_PRELOAD="$out/lib/$libName" ''} |