2008-07-16 14:36:41 +01:00
|
|
|
{stdenv, fetchurl, bison, interactive ? false, ncurses ? null, texinfo ? null}:
|
2007-03-06 22:46:03 +00:00
|
|
|
|
|
|
|
assert interactive -> ncurses != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2008-05-09 15:55:03 +01:00
|
|
|
name = "bash-3.2-p39";
|
2007-03-06 22:46:03 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-05-09 15:55:03 +01:00
|
|
|
url = http://nixos.org/tarballs/bash-3.2-p39.tar.bz2;
|
|
|
|
sha256 = "075qs6nfjql57y8ffg3f4glb3l5yl3xy5hny75x6kpwxkqlcxqfy";
|
2007-03-06 22:46:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postInstall = "ln -s bash $out/bin/sh";
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# For dietlibc builds.
|
|
|
|
./winsize.patch
|
|
|
|
];
|
|
|
|
|
2008-07-16 14:36:41 +01:00
|
|
|
# !!! Bison is only needed for bash-3.2 (because of bash32-001.patch)
|
|
|
|
buildInputs = [bison]
|
|
|
|
++ stdenv.lib.optional (texinfo != null) texinfo
|
|
|
|
++ stdenv.lib.optional interactive ncurses;
|
2007-03-06 22:46:03 +00:00
|
|
|
|
|
|
|
meta = {
|
2008-02-06 13:18:50 +00:00
|
|
|
homepage = http://www.gnu.org/software/bash/;
|
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
|
|
|
};
|
|
|
|
}
|