2007-03-06 23:46:03 +01:00
|
|
|
{stdenv, fetchurl, bison, interactive ? false, ncurses ? null}:
|
|
|
|
|
|
|
|
assert interactive -> ncurses != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2008-02-06 14:26:27 +01:00
|
|
|
name = "bash-3.2-p33";
|
2007-03-06 23:46:03 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-02-06 14:26:27 +01:00
|
|
|
url = http://losser.st-lab.cs.uu.nl/~eelco/dist/bash-3.2-p33.tar.bz2;
|
|
|
|
sha256 = "11fv73nbcckmm4f1q9cf73754chsgfps9pklwcaj2ryfd5ql9wnb";
|
2007-03-06 23:46:03 +01: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 15:40:39 +02:00
|
|
|
buildInputs = [bison] ++ stdenv.lib.optional interactive ncurses;
|
2007-03-06 23:46:03 +01:00
|
|
|
|
|
|
|
meta = {
|
2008-02-06 14:18:50 +01:00
|
|
|
homepage = http://www.gnu.org/software/bash/;
|
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
|
|
|
};
|
|
|
|
}
|