mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
pkgs/shells/bash: updated "interactive" bash to version 4.2
The non-interactive variant, which is part of stdenv, remains unchanged. svn path=/nixpkgs/trunk/; revision=29523
This commit is contained in:
parent
790d78fb6f
commit
dc55be9e05
@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
|
|||||||
inherit sha256;
|
inherit sha256;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
import ./bash-patches.nix patch;
|
import ./bash-4.1-patches.nix patch;
|
||||||
|
|
||||||
crossAttrs = {
|
crossAttrs = {
|
||||||
configureFlags = baseConfigureFlags +
|
configureFlags = baseConfigureFlags +
|
81
pkgs/shells/bash/4.2.nix
Normal file
81
pkgs/shells/bash/4.2.nix
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
{ stdenv, fetchurl, readline ? null, interactive ? false, texinfo ? null, bison }:
|
||||||
|
|
||||||
|
assert interactive -> readline != null;
|
||||||
|
|
||||||
|
let
|
||||||
|
realName = "bash-4.2";
|
||||||
|
baseConfigureFlags = if interactive then "--with-installed-readline" else "--disable-readline";
|
||||||
|
in
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "${realName}-p${toString (builtins.length patches)}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "mirror://gnu/bash/${realName}.tar.gz";
|
||||||
|
sha256 = "a27a1179ec9c0830c65c6aa5d7dab60f7ce1a2a608618570f96bfa72e95ab3d8";
|
||||||
|
};
|
||||||
|
|
||||||
|
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
|
||||||
|
'';
|
||||||
|
|
||||||
|
patchFlags = "-p0";
|
||||||
|
|
||||||
|
patches =
|
||||||
|
let
|
||||||
|
patch = nr: sha256:
|
||||||
|
fetchurl {
|
||||||
|
url = "mirror://gnu/bash/bash-4.2-patches/bash42-${nr}";
|
||||||
|
inherit sha256;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
import ./bash-4.2-patches.nix patch;
|
||||||
|
|
||||||
|
crossAttrs = {
|
||||||
|
configureFlags = baseConfigureFlags +
|
||||||
|
" bash_cv_job_control_missing=nomissing bash_cv_sys_named_pipes=nomissing";
|
||||||
|
};
|
||||||
|
|
||||||
|
configureFlags = baseConfigureFlags;
|
||||||
|
|
||||||
|
# Note: Bison is needed because the patches above modify parse.y.
|
||||||
|
buildNativeInputs = [bison]
|
||||||
|
++ stdenv.lib.optional (texinfo != null) texinfo
|
||||||
|
++ stdenv.lib.optional interactive readline;
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
# Add an `sh' -> `bash' symlink.
|
||||||
|
ln -s bash "$out/bin/sh"
|
||||||
|
'';
|
||||||
|
|
||||||
|
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+";
|
||||||
|
|
||||||
|
maintainers = [ stdenv.lib.maintainers.ludo stdenv.lib.maintainers.simons ];
|
||||||
|
};
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
shellPath = "/bin/bash";
|
||||||
|
};
|
||||||
|
}
|
14
pkgs/shells/bash/bash-4.2-patches.nix
Normal file
14
pkgs/shells/bash/bash-4.2-patches.nix
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# Automatically generated by `update-patch-set.sh'; do not edit.
|
||||||
|
|
||||||
|
patch: [
|
||||||
|
(patch "001" "0yml2b6yarrr0dzv7h45lz4126i228hvqbqacqzg4jkcawla0v4d")
|
||||||
|
(patch "002" "1yffzfxryvqns513yv3r46slkysa3nbqv40442xfxb4rw4kwkfpy")
|
||||||
|
(patch "003" "1kdl9hcpf1m7gz0ja3mvin3syprl2kmbxc3wm27391wc04apq2js")
|
||||||
|
(patch "004" "1ha0453cjqdgkns2xkdgpd2izj5b6xlsc9a2w5b3sn6j63wb0d2f")
|
||||||
|
(patch "005" "182r2iyk27l28b8kyppfavvzxhax6vn5n1zyy3yirf0463klj5x8")
|
||||||
|
(patch "006" "1labcciavnfmn0alncz1x92ydrsriikcimw24rwzmnidbaa4h4f9")
|
||||||
|
(patch "007" "15byzdqvavc3zg2lbzzdwpdy43kzdnvmr89nya211pa3yjn2cn20")
|
||||||
|
(patch "008" "0dr4p83m2xpxhvd61yny0gdlasq6r9mpyiz220998y0alq8hs213")
|
||||||
|
(patch "009" "086b9jkyjgf2zhwln72d7s5x759iskgg3r4hdrw6b5y1ni059vg7")
|
||||||
|
(patch "010" "1p23m9kssdmpnjfp96bjmmshzf25cdzlyjygdw8j6sayqa159z5c")
|
||||||
|
]
|
@ -16,7 +16,7 @@ VERSION="$2"
|
|||||||
VERSION_CONDENSED="$(echo $VERSION | sed -es/\\.//g)"
|
VERSION_CONDENSED="$(echo $VERSION | sed -es/\\.//g)"
|
||||||
|
|
||||||
GPG="$(if $(type -P gpg2 > /dev/null); then echo gpg2; else echo gpg; fi)"
|
GPG="$(if $(type -P gpg2 > /dev/null); then echo gpg2; else echo gpg; fi)"
|
||||||
PATCH_LIST="$PROJECT-patches.nix"
|
PATCH_LIST="$PROJECT-$VERSION-patches.nix"
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
@ -1596,11 +1596,11 @@ let
|
|||||||
### SHELLS
|
### SHELLS
|
||||||
|
|
||||||
|
|
||||||
bash = lowPrio (callPackage ../shells/bash {
|
bash = lowPrio (callPackage ../shells/bash/4.1.nix {
|
||||||
texinfo = null;
|
texinfo = null;
|
||||||
});
|
});
|
||||||
|
|
||||||
bashInteractive = appendToName "interactive" (callPackage ../shells/bash {
|
bashInteractive = appendToName "interactive" (callPackage ../shells/bash/4.2.nix {
|
||||||
interactive = true;
|
interactive = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user