Merge pull request #19046 from rycee/bump/bash-completion

Bump bash completion to 2.4

Changed files
+20 -48
nixos
modules
programs
bash
pkgs
shells
bash-completion
tools
audio
beets
misc
colord
package-management
createrepo_c
packagekit
top-level
+1 -1
nixos/modules/programs/bash/bash.nix
···
# programmable completion. If we do, enable all modules installed in
# the system (and user profile).
if shopt -q progcomp &>/dev/null; then
-
. "${pkgs.bashCompletion}/etc/profile.d/bash_completion.sh"
+
. "${pkgs.bash-completion}/etc/profile.d/bash_completion.sh"
nullglobStatus=$(shopt -p nullglob)
shopt -s nullglob
for p in $NIX_PROFILES; do
-22
pkgs/shells/bash-completion/bash-4.3.patch
···
-
commit a9c556ccad819869a6a5d932aac0a75a99372f08
-
Author: Barry Warsaw <barry@python.org>
-
Date: Wed Sep 17 19:32:43 2014 +0300
-
-
_init_completion: Handle cword < 0 (LP: #1289597)
-
-
Previously only bash 4.3 seemed to provoke this, but now with the
-
empty command consistency tweak it occurs with earlier as well.
-
-
diff --git a/bash_completion b/bash_completion
-
index 7e01ae4..3bb4bc2 100644
-
--- a/bash_completion
-
+++ b/bash_completion
-
@@ -727,7 +727,7 @@ _init_completion()
-
fi
-
done
-
-
- [[ $cword -eq 0 ]] && return 1
-
+ [[ $cword -le 0 ]] && return 1
-
prev=${words[cword-1]}
-
-
[[ ${split-} ]] && _split_longopt && split=true
+9 -16
pkgs/shells/bash-completion/default.nix
···
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
-
name = "bash-completion-2.1";
+
name = "bash-completion-${version}";
+
version = "2.4";
src = fetchurl {
-
url = "http://bash-completion.alioth.debian.org/files/${name}.tar.bz2";
-
sha256 = "0kxf8s5bw7y50x0ksb77d3kv0dwadixhybl818w27y6mlw26hq1b";
+
url = "https://github.com/scop/bash-completion/releases/download/${version}/${name}.tar.xz";
+
sha256 = "1xlhd09sb2w3bw8qaypxgkr0782w082mcbx8zf7yzjgy0996pxy0";
};
-
patches = [ ./bash-4.3.patch ];
-
doCheck = true;
-
# nmcli is included in the network-manager package
-
postInstall = ''
-
rm $out/share/bash-completion/completions/nmcli
-
'';
-
-
meta = {
-
homepage = "http://bash-completion.alioth.debian.org/";
+
meta = with stdenv.lib; {
+
homepage = https://github.com/scop/bash-completion;
description = "Programmable completion for the bash shell";
-
license = "GPL";
-
-
platforms = stdenv.lib.platforms.unix;
-
maintainers = [ stdenv.lib.maintainers.peti ];
+
license = licenses.gpl2Plus;
+
platforms = platforms.unix;
+
maintainers = [ maintainers.peti ];
};
}
+2 -2
pkgs/tools/audio/beets/default.nix
···
, enableAlternatives ? false
, enableCopyArtifacts ? false
-
, bashInteractive, bashCompletion
+
, bashInteractive, bash-completion
}:
assert enableAcoustid -> pythonPackages.pyacoustid != null;
···
allEnabledPlugins = pluginsWithoutDeps ++ enabledOptionalPlugins;
testShell = "${bashInteractive}/bin/bash --norc";
-
completion = "${bashCompletion}/share/bash-completion/bash_completion";
+
completion = "${bash-completion}/share/bash-completion/bash_completion";
in pythonPackages.buildPythonApplication rec {
name = "beets-${version}";
+2 -2
pkgs/tools/misc/colord/default.nix
···
-
{ stdenv, fetchzip, fetchgit, bashCompletion
+
{ stdenv, fetchzip, fetchgit, bash-completion
, glib, polkit, pkgconfig, intltool, gusb, libusb1, lcms2, sqlite, systemd, dbus
, automake, autoconf, libtool, gtk_doc, which, gobjectIntrospection, argyllcms
, libgudev, sane-backends }:
···
'';
buildInputs = [ glib polkit pkgconfig intltool gusb libusb1 lcms2 sqlite systemd dbus gobjectIntrospection
-
bashCompletion argyllcms automake autoconf libgudev sane-backends ];
+
bash-completion argyllcms automake autoconf libgudev sane-backends ];
postInstall = ''
mkdir -p $out/etc/bash_completion.d
+2 -2
pkgs/tools/package-management/createrepo_c/default.nix
···
-
{ stdenv, fetchFromGitHub, cmake, pkgconfig, bzip2, expat, glib, curl, libxml2, python, rpm, openssl, sqlite, file, xz, pcre, bashCompletion }:
+
{ stdenv, fetchFromGitHub, cmake, pkgconfig, bzip2, expat, glib, curl, libxml2, python, rpm, openssl, sqlite, file, xz, pcre, bash-completion }:
stdenv.mkDerivation rec {
rev = "0.10.0";
···
"set (PYTHON_INSTALL_DIR "$out/${python.sitePackages}")"
'';
-
buildInputs = [ cmake pkgconfig bzip2 expat glib curl libxml2 python rpm openssl sqlite file xz pcre bashCompletion ];
+
buildInputs = [ cmake pkgconfig bzip2 expat glib curl libxml2 python rpm openssl sqlite file xz pcre bash-completion ];
meta = with stdenv.lib; {
description = "C implementation of createrepo";
+2 -2
pkgs/tools/package-management/packagekit/default.nix
···
, gobjectIntrospection, vala_0_23, gtk_doc, autoreconfHook, autoconf-archive
, nix, boost
, enableCommandNotFound ? false
-
, enableBashCompletion ? false, bashCompletion ? null }:
+
, enableBashCompletion ? false, bash-completion ? null }:
stdenv.mkDerivation rec {
name = "packagekit-${version}";
···
};
buildInputs = [ glib polkit systemd python gobjectIntrospection vala_0_23 ]
-
++ lib.optional enableBashCompletion bashCompletion;
+
++ lib.optional enableBashCompletion bash-completion;
propagatedBuildInputs = [ sqlite nix boost ];
nativeBuildInputs = [ intltool pkgconfig autoreconfHook autoconf-archive gtk_doc ];
+1
pkgs/top-level/aliases.nix
···
asciidocFull = asciidoc-full; # added 2014-06-22
bar = lemonbar; # added 2015-01-16
bar-xft = lemonbar-xft; # added 2015-01-16
+
bashCompletion = bash-completion; # Added 2016-09-28
bridge_utils = bridge-utils; # added 2015-02-20
btrfsProgs = btrfs-progs; # added 2016-01-03
bundler_HEAD = bundler; # added 2015-11-15
+1 -1
pkgs/top-level/all-packages.nix
···
interactive = true;
});
-
bashCompletion = callPackage ../shells/bash-completion { };
+
bash-completion = callPackage ../shells/bash-completion { };
dash = callPackage ../shells/dash { };