Skip to content
Advertisement

hard-coded bin path and NixOS

When I try to do a manual source install of some software on NixOS 15.09, I get (sh -x is to get an exec log):

JavaScript

And indeed there is no bash program in /bin/

JavaScript

However when I inspect the script I dont see any mention of it so it must be some subprogram looking for it. As an aside, I imagine that’s probably why the script wisely starts with #!/usr/bin/env bash and not the direct location of bash.

Anyone knows a blessed way to deal with this ?

Advertisement

Answer

one has to run patchShebangs ./scripts/build-js1/build-js1-linux.sh on files coming from source when they are not in the store and we want to execute them.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement