Installing development dependencies using nix-env
is not supported. Use nix-shell
instead. See also I installed a library but my compiler is not finding it. Why?
As for the Setup.sh
error, NixOS intentionally does not have /bin/bash
(recently discussed in Shebang locations) so you will need to replace this line with #!/usr/bin/env bash
.