mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 04:31:52 +00:00
ce22859f8a
* Pass -D_BSD_SOURCE=1 by default in the dietlibc stdenv. svn path=/nixpkgs/trunk/; revision=6768
23 lines
481 B
Nix
23 lines
481 B
Nix
{stdenv, fetchurl}:
|
|
|
|
stdenv.mkDerivation ({
|
|
name = "bash-3.1";
|
|
builder = ./builder.sh;
|
|
src = fetchurl {
|
|
url = http://nix.cs.uu.nl/dist/tarballs/bash-3.1.tar.gz;
|
|
md5 = "ef5304c4b22aaa5088972c792ed45d72";
|
|
};
|
|
|
|
meta = {
|
|
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 {})
|
|
|
|
)
|