···30# sanity check
31$out/bin/true || exit 1
3233-# scorched earth
034for f in $(find $out -type f); do
35 while true; do
36 BADMAN="$(strings $f | grep -o '/nix/store/.*' | grep -v "$out" | head -n1)"
···30# sanity check
31$out/bin/true || exit 1
3233+# meticulously replace every nix store path with the right one
34+# to work with binaries, make sure the path remains the same length by prefixing pathsep chars
35for f in $(find $out -type f); do
36 while true; do
37 BADMAN="$(strings $f | grep -o '/nix/store/.*' | grep -v "$out" | head -n1)"