diff options
Diffstat (limited to 'pkgs/tools/compression/xz/default.nix')
-rw-r--r-- | pkgs/tools/compression/xz/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/tools/compression/xz/default.nix b/pkgs/tools/compression/xz/default.nix index 293d832345bd9..aca5995c3baea 100644 --- a/pkgs/tools/compression/xz/default.nix +++ b/pkgs/tools/compression/xz/default.nix @@ -14,7 +14,10 @@ stdenv.mkDerivation rec { doCheck = true; # In stdenv-linux, prevent a dependency on bootstrap-tools. - preHook = "unset CONFIG_SHELL"; + # The preHook hack no longer worked, no idea why. + postFixup = '' + sed '1s:#!${stdenv.shell}:#!/usr/bin/env sh:' -i "$bin"/bin/* + ''; meta = { homepage = http://tukaani.org/xz/; |