Sander van der Burg wrote:

On {Free,Open,Net,...}BSD similar problems arise, since /bin/sh is not bash either. I fixed this by manually symlinking /bin/sh to bash on BSD, but ideally we should do this differently.

Yeah, I also noticed that nixpkgs stdenv assumes that /bin/bash exists...

shell = "/bin/bash";

I modified that to use the (impure) version of bash (installed from ports):

shell = if system == "i686-freebsd" || system == "x86_64-freebsd" then "/usr/local/bin/bash" else "/bin/bash";


And installation of aterm broke in a similar fashion, but the simplest
workaround was to call "bash ./configure" rather than just ./configure:

         @${REINPLACE_CMD} -e 's|\./configure|bash ./configure|' \
                ${WRKSRC}/externals/Makefile


It's a bashist world.

--anders

_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to