Hi, Nikita Karetnikov <nik...@karetnikov.org> skribis:
>> You would need to add a phase to do: > >> (patch-shebang "the/faulty/file") > >> That would change /usr/bin/env to /nix/store/xxx/bin/env. > > The problem is that I haven't found any references to '/usr/bin/env' in > those files. Well, there must be one somewhere. Did you run “grep -r /usr/bin/env” in the source? If it’s not in GLib, then maybe it’s in a script that GLib invokes. It should be possible to find out using strace or something similar. HTH, Ludo’.