[Nix-dev] Dealing with non-Bash /bin/sh on non-NixOS

Eelco Dolstra eelco.dolstra at logicblox.com
Tue Nov 20 11:18:11 CET 2012


Hi,

On 20/11/12 06:26, Marc Weber wrote:

> If broken builds are the problem, can't we just make sure bash is the
> default shell for builders?
> I mean exporting SHELL properly and using bash to start the build
> scripts 

... which is exactly what stdenv has done since pretty much forever:

pkgs/stdenv/generic/setup.sh:export SHELL=@shell@
pkgs/stdenv/linux/default.nix:    shell = stdenvLinuxBoot4Pkgs.bash + "/bin/bash";
pkgs/stdenv/native/default.nix:    if system == "i686-freebsd" || system ==
"x86_64-freebsd" then "/usr/local/bin/bash"
pkgs/stdenv/native/default.nix:    else "/bin/bash";
pkgs/stdenv/nix/default.nix:    shell = pkgs.bash + "/bin/sh";

etc.

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/


More information about the nix-dev mailing list