summary refs log tree commit diff
path: root/pkgs/shells/bash
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2009-02-23 21:26:35 +0000
committerLudovic Courtès <ludo@gnu.org>2009-02-23 21:26:35 +0000
commita6f044663b7e54646f1279a594d2b88c745eb474 (patch)
treed586184e07da49cab800e9b55c642897bca8567b /pkgs/shells/bash
parent81cda891c66680bc9e735d8577df87e89a451b77 (diff)
downloadnixlib-a6f044663b7e54646f1279a594d2b88c745eb474.tar
nixlib-a6f044663b7e54646f1279a594d2b88c745eb474.tar.gz
nixlib-a6f044663b7e54646f1279a594d2b88c745eb474.tar.bz2
nixlib-a6f044663b7e54646f1279a594d2b88c745eb474.tar.lz
nixlib-a6f044663b7e54646f1279a594d2b88c745eb474.tar.xz
nixlib-a6f044663b7e54646f1279a594d2b88c745eb474.tar.zst
nixlib-a6f044663b7e54646f1279a594d2b88c745eb474.zip
GNU Bash 4.0.
svn path=/nixpkgs/branches/stdenv-updates/; revision=14210
Diffstat (limited to 'pkgs/shells/bash')
-rw-r--r--pkgs/shells/bash/default.nix30
1 files changed, 22 insertions, 8 deletions
diff --git a/pkgs/shells/bash/default.nix b/pkgs/shells/bash/default.nix
index 048281115338..2d0978abdcab 100644
--- a/pkgs/shells/bash/default.nix
+++ b/pkgs/shells/bash/default.nix
@@ -1,13 +1,13 @@
-{stdenv, fetchurl, bison, interactive ? false, ncurses ? null, texinfo ? null}:
+{stdenv, fetchurl, readline, interactive ? false, ncurses ? null, texinfo ? null}:
 
 assert interactive -> ncurses != null;
 
-stdenv.mkDerivation {
-  name = "bash-3.2.48";
+stdenv.mkDerivation rec {
+  name = "bash-4.0";
 
   src = fetchurl {
-    url = mirror://gnu/bash/bash-3.2.48.tar.gz;
-    sha256 = "1i81scw3mnfjbmsn3cjfdancyx3d0rg8gd9hpdfng9j83dbdrs98";
+    url = "mirror://gnu/bash/${name}.tar.gz";
+    sha256 = "0605ql0ih55gpi0vfvcm45likzjafa4wjnkxqwq51aa0ysad74wp";
   };
 
   NIX_CFLAGS_COMPILE = ''
@@ -26,15 +26,29 @@ stdenv.mkDerivation {
     ./winsize.patch
   ];
 
-  # !!! Bison is only needed for bash-3.2 (because of bash32-001.patch)
-  buildInputs = [bison]
+  buildInputs = []
     ++ stdenv.lib.optional (texinfo != null) texinfo
-    ++ stdenv.lib.optional interactive ncurses;
+    ++ stdenv.lib.optional interactive readline;
+
+  configureFlags = "--with-installed-readline";
 
   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 "");
+
+    longDescription = ''
+      Bash is the shell, or command language interpreter, that will
+      appear in the GNU operating system.  Bash is an sh-compatible
+      shell that incorporates useful features from the Korn shell
+      (ksh) and C shell (csh).  It is intended to conform to the IEEE
+      POSIX P1003.2/ISO 9945.2 Shell and Tools standard.  It offers
+      functional improvements over sh for both programming and
+      interactive use.  In addition, most sh scripts can be run by
+      Bash without modification.
+    '';
+
+    license = "GPLv3+";
   };
 }