source $stdenv/setup ensureDir $out/bin cat > $out/bin/nuke-refs < \$i.tmp if test -x \$i; then chmod +x \$i.tmp; fi mv \$i.tmp \$i fi done EOF chmod +x $out/bin/nuke-refs