diff --git a/pkgs/stdenv/nix-linux-static/scripts/fix-outpath.sh b/pkgs/stdenv/nix-linux-static/scripts/fix-outpath.sh new file mode 100644 index 000000000000..be0df6b07795 --- /dev/null +++ b/pkgs/stdenv/nix-linux-static/scripts/fix-outpath.sh @@ -0,0 +1,9 @@ +cd $out + +chmod -R +w . + +find . -type f | while read fn; do + $extra2/bin/cat $fn | $extra4/bin/sed "s|/nix/store/[a-z0-9]*-|/nix/store/ffffffffffffffffffffffffffffffff-|g" > $fn.tmp + if test -x $fn; then chmod +x $fn.tmp; fi + mv $fn.tmp $fn +done