`nix` and `meson`: env: ‘/bin/bash’: No such file or directory

Hello, I’m trying to build a project, which uses the meson builder.
I executed

meson setup buildDir
ninja -C buildDir qemu

but I’m getting

env: ‘/bin/bash’: No such file or directory

may I ask if you’ve got an idea how to fix this (except manually replacing /bin/bash with just bash in the relevant parts of the generated files from meson)?

2 Likes

You should be able to patch shebangs as follows in a nix-shell for the package:

Is it somehow possible to do this in the shell in nix develop?

1 Like