diff options
Diffstat (limited to 'pkgs/shells/bash/default.nix')
-rw-r--r-- | pkgs/shells/bash/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/shells/bash/default.nix b/pkgs/shells/bash/default.nix index 82f204bd52c4..a8dd2e3dd63e 100644 --- a/pkgs/shells/bash/default.nix +++ b/pkgs/shells/bash/default.nix @@ -1,6 +1,6 @@ {stdenv, fetchurl}: -stdenv.mkDerivation { +stdenv.mkDerivation ({ name = "bash-3.1"; builder = ./builder.sh; src = fetchurl { @@ -12,3 +12,11 @@ stdenv.mkDerivation { description = "GNU Bourne-Again Shell, the de facto standard shell on Linux"; }; } + +# libcompat.a is needed on dietlibc for stpcpy(). +// (if stdenv ? isDietLibC then { + NIX_LDFLAGS = "-lcompat"; + patches = [./winsize.patch]; +} else {}) + +) |