nixpkgs/pkgs/shells/bash/default.nix
Eelco Dolstra d0fc2251b4 * Bash 3.2 patchlevel 25.
svn path=/nixpkgs/branches/stdenv-updates/; revision=9795
2007-11-26 13:59:46 +00:00

28 lines
734 B
Nix

{stdenv, fetchurl, bison, interactive ? false, ncurses ? null}:
assert interactive -> ncurses != null;
stdenv.mkDerivation {
name = "bash-3.2-p25";
src = fetchurl {
url = http://losser.st-lab.cs.uu.nl/~eelco/dist/bash-3.2-p25.tar.bz2;
sha256 = "1x19z386ysvwk00zigzf3nkv1x1xq4kvyckz9ah8qz65a7626cs4";
};
postInstall = "ln -s bash $out/bin/sh";
patches = [
# For dietlibc builds.
./winsize.patch
];
# !!! only needed for bash-3.2 (because of bash32-001.patch)
buildInputs = [bison] ++ stdenv.lib.optional interactive ncurses;
meta = {
description =
"GNU Bourne-Again Shell, the de facto standard shell on Linux" +
(if interactive then " (for interactive use)" else "");
};
}