nixpkgs/pkgs/stdenv/linux/scripts/fix-outpath.sh
Eelco Dolstra 49220563df * Purity fixes, courtesy of NixOS :-)
svn path=/nixpkgs/trunk/; revision=3675
2005-08-24 09:21:37 +00:00

10 lines
230 B
Bash

cd $out
chmod -R +w .
find . -type f | while read fn; do
cat $fn | 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