1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 10:31:36 +00:00
nixpkgs/pkgs/shells/bash/default.nix
Eelco Dolstra dd91141a06 * bash needs texinfo if you want the manpages / info docs.
svn path=/nixpkgs/trunk/; revision=12363
2008-07-16 13:36:41 +00:00

32 lines
850 B
Nix

{stdenv, fetchurl, bison, interactive ? false, ncurses ? null, texinfo ? null}:
assert interactive -> ncurses != null;
stdenv.mkDerivation {
name = "bash-3.2-p39";
src = fetchurl {
url = http://nixos.org/tarballs/bash-3.2-p39.tar.bz2;
sha256 = "075qs6nfjql57y8ffg3f4glb3l5yl3xy5hny75x6kpwxkqlcxqfy";
};
postInstall = "ln -s bash $out/bin/sh";
patches = [
# For dietlibc builds.
./winsize.patch
];
# !!! 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;
meta = {
homepage = http://www.gnu.org/software/bash/;
description =
"GNU Bourne-Again Shell, the de facto standard shell on Linux" +
(if interactive then " (for interactive use)" else "");
};
}