From ce22859f8aa3b06dc8277376916c619a34030310 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 18 Oct 2006 16:16:07 +0000 Subject: * Bash on dietlibc. * Pass -D_BSD_SOURCE=1 by default in the dietlibc stdenv. svn path=/nixpkgs/trunk/; revision=6768 --- pkgs/shells/bash/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'pkgs/shells/bash/default.nix') 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 {}) + +) -- cgit 1.4.1