summary refs log tree commit diff
path: root/pkgs/shells/bash/default.nix
blob: be22f045cd914c04c79867dfcb9edd0e09daab9f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{stdenv, fetchurl, bison}:

stdenv.mkDerivation {
  name = "bash-3.2";

  src = fetchurl {
    url = http://ftp.gnu.org/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]; 

  meta = {
    description = "GNU Bourne-Again Shell, the de facto standard shell on Linux";
  };
}