glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/vpjygfwbm23sld6b8dkas1cczbii53m1-mpv-mpris-0.4.so
shrinking /nix/store/vpjygfwbm23sld6b8dkas1cczbii53m1-mpv-mpris-0.4.so
strip is /nix/store/3b3ighb83nhifa1v4n7855hlbdl1mhf9-binutils-2.31.1/bin/strip
patching script interpreter paths in /nix/store/vpjygfwbm23sld6b8dkas1cczbii53m1-mpv-mpris-0.4.so
checking for references to /build/ in /nix/store/vpjygfwbm23sld6b8dkas1cczbii53m1-mpv-mpris-0.4.so...
/nix/store/vpjygfwbm23sld6b8dkas1cczbii53m1-mpv-mpris-0.4.so
Doesn’t remove the reference to gcc because $out is a file and not a directory?
EDIT: Answer: No that’s not it - even with a different installPhase that installs mpris.so to a directory it references gcc.
@jtojnar do you happen to know whether the standard fixup phases in Nixpkgs should run strip? Now that I see that, I remember I noticed strip is not used also for executables built with buildGoModule - I mean, file result/bin/* says not stripped…