mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-30 23:34:12 +03:00
13 lines
305 B
Bash
13 lines
305 B
Bash
|
source $stdenv/setup
|
||
|
|
||
|
ensureDir $out/bin
|
||
|
cat > $out/bin/nuke-refs <<EOF
|
||
|
#! $SHELL -e
|
||
|
for i in \$*; do
|
||
|
cat \$i | sed "s|/nix/store/[a-z0-9]*-|/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-|g" > \$i.tmp
|
||
|
if test -x \$i; then chmod +x \$i.tmp; fi
|
||
|
mv \$i.tmp \$i
|
||
|
done
|
||
|
EOF
|
||
|
chmod +x $out/bin/nuke-refs
|