* Bash 3.2.48.
svn path=/nixpkgs/branches/stdenv-updates/; revision=13876
This commit is contained in:
parent
88c502217b
commit
a5b607ef4f
@ -3,13 +3,22 @@
|
|||||||
assert interactive -> ncurses != null;
|
assert interactive -> ncurses != null;
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "bash-3.2-p39";
|
name = "bash-3.2.48";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://nixos.org/tarballs/bash-3.2-p39.tar.bz2;
|
url = mirror://gnu/bash/bash-3.2.48.tar.gz;
|
||||||
sha256 = "075qs6nfjql57y8ffg3f4glb3l5yl3xy5hny75x6kpwxkqlcxqfy";
|
sha256 = "1i81scw3mnfjbmsn3cjfdancyx3d0rg8gd9hpdfng9j83dbdrs98";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
NIX_CFLAGS_COMPILE = ''
|
||||||
|
-DSYS_BASHRC="/etc/bashrc"
|
||||||
|
-DSYS_BASH_LOGOUT="/etc/bash_logout"
|
||||||
|
-DDEFAULT_PATH_VALUE="/no-such-path"
|
||||||
|
-DSTANDARD_UTILS_PATH="/no-such-path"
|
||||||
|
-DNON_INTERACTIVE_LOGIN_SHELLS
|
||||||
|
-DSSH_SOURCE_BASHRC
|
||||||
|
'';
|
||||||
|
|
||||||
postInstall = "ln -s bash $out/bin/sh";
|
postInstall = "ln -s bash $out/bin/sh";
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -1,40 +0,0 @@
|
|||||||
{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";
|
|
||||||
};
|
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = ''
|
|
||||||
-DSYS_BASHRC="/etc/bashrc"
|
|
||||||
-DSYS_BASH_LOGOUT="/etc/bash_logout"
|
|
||||||
-DDEFAULT_PATH_VALUE="/no-such-path"
|
|
||||||
-DSTANDARD_UTILS_PATH="/no-such-path"
|
|
||||||
-DNON_INTERACTIVE_LOGIN_SHELLS
|
|
||||||
-DSSH_SOURCE_BASHRC
|
|
||||||
'';
|
|
||||||
|
|
||||||
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 "");
|
|
||||||
};
|
|
||||||
}
|
|
@ -1378,7 +1378,7 @@ let
|
|||||||
inherit fetchurl stdenv bison;
|
inherit fetchurl stdenv bison;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
bashInteractive = appendToName "interactive" (import ../shells/bash/new.nix {
|
bashInteractive = appendToName "interactive" (import ../shells/bash {
|
||||||
inherit fetchurl stdenv ncurses texinfo bison;
|
inherit fetchurl stdenv ncurses texinfo bison;
|
||||||
interactive = true;
|
interactive = true;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user