2007-03-06 23:46:03 +01:00
|
|
|
{stdenv, fetchurl, bison, interactive ? false, ncurses ? null}:
|
|
|
|
|
|
|
|
assert interactive -> ncurses != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "bash-3.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = ftp://ftp.nluug.nl/pub/gnu/bash/bash-3.2.tar.gz;
|
|
|
|
md5 = "00bfa16d58e034e3c2aa27f390390d30";
|
|
|
|
};
|
|
|
|
|
|
|
|
postInstall = "ln -s bash $out/bin/sh";
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Fix a nasty bug in bash-3.2.
|
|
|
|
./bash32-001.patch
|
|
|
|
|
|
|
|
# For dietlibc builds.
|
|
|
|
./winsize.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
# !!! only needed for bash-3.2 (because of bash32-001.patch)
|
|
|
|
buildInputs = [bison] ++ (if interactive then [ncurses] else []);
|
|
|
|
|
|
|
|
meta = {
|
2007-04-04 12:31:09 +02:00
|
|
|
description =
|
|
|
|
"GNU Bourne-Again Shell, the de facto standard shell on Linux" +
|
|
|
|
(if interactive then " (for interactive use)" else "");
|
2007-03-06 23:46:03 +01:00
|
|
|
};
|
|
|
|
}
|