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