nixpkgs/pkgs/stdenv/generic
Matthew Bauer 8fa084dc0f stdenv/setup.sh: Add version check to setup script
Only bash 4+ works in setup.sh. To make sure this is obvious, we can
check BASH_VERSINFO to get the major version number of Bash.

While Bash 3 is pretty rare, it still comes stock in macOS.

We *could* provide a warning here for non-Bash shells, but it’s not
always clear whether they will work or not. Zsh should have no trouble
while busybox sh, fish, or any others. There’s no great way to detect
what feature set the shell supports.

Fixes #71625
2021-06-23 01:32:58 -05:00
..
builder.sh stdenvs: Distinguish between extraBuildInputs and extraNativeBuildInputs 2017-08-18 12:02:13 -04:00
check-meta.nix Merge pull request #85545 from LnL7/meta-available-flags 2020-11-28 18:57:47 +01:00
default-builder.sh
default.nix stdenv: add -frandom-seed to NIX_CFLAGS_COMPILE for reproducibility 2020-11-01 19:40:12 +01:00
make-derivation.nix Merge pull request #85545 from LnL7/meta-available-flags 2020-11-28 18:57:47 +01:00
setup.sh stdenv/setup.sh: Add version check to setup script 2021-06-23 01:32:58 -05:00