git.iko.soy/typeable/nixpkgs
on master help sign in
bash-completion: 2.1 -> 2.4
commitdbe350f5d002579b124a1420e5d78e6b201533bf authorRobert Helgesson <robert@rycee.net> dateWed 28 Sep 2016, 17:45 (10 years ago) parent347af08
2 files changed+9−38
pkgs/shells/bash-completion/bash-4.3.patch−22 pkgs/shells/bash-completion/default.nix+9−16
pkgs/shells/bash-completion/bash-4.3.patchdeleted−22
@@ -1,22 +0,0 @@
1−commit a9c556ccad819869a6a5d932aac0a75a99372f08
2−Author: Barry Warsaw <barry@python.org>
3−Date: Wed Sep 17 19:32:43 2014 +0300
4−
5− _init_completion: Handle cword < 0 (LP: #1289597)
6−
7− Previously only bash 4.3 seemed to provoke this, but now with the
8− empty command consistency tweak it occurs with earlier as well.
9−
10−diff --git a/bash_completion b/bash_completion
11−index 7e01ae4..3bb4bc2 100644
12−--- a/bash_completion
13−+++ b/bash_completion
14−@@ -727,7 +727,7 @@ _init_completion()
15− fi
16− done
17−
18−- [[ $cword -eq 0 ]] && return 1
19−+ [[ $cword -le 0 ]] && return 1
20− prev=${words[cword-1]}
21−
22− [[ ${split-} ]] && _split_longopt && split=true
pkgs/shells/bash-completion/default.nix+9−16
@@ -1,28 +1,21 @@
11{ stdenv, fetchurl }:
22
33stdenv.mkDerivation rec {
4− name = "bash-completion-2.1";
4+ name = "bash-completion-${version}";
5+ version = "2.4";
56
67 src = fetchurl {
7− url = "http://bash-completion.alioth.debian.org/files/${name}.tar.bz2";
8− sha256 = "0kxf8s5bw7y50x0ksb77d3kv0dwadixhybl818w27y6mlw26hq1b";
8+ url = "https://github.com/scop/bash-completion/releases/download/${version}/${name}.tar.xz";
9+ sha256 = "1xlhd09sb2w3bw8qaypxgkr0782w082mcbx8zf7yzjgy0996pxy0";
910 };
1011
11− patches = [ ./bash-4.3.patch ];
12−
1312 doCheck = true;
1413
15− # nmcli is included in the network-manager package
16− postInstall = ''
17− rm $out/share/bash-completion/completions/nmcli
18− '';
19−
20− meta = {
21− homepage = "http://bash-completion.alioth.debian.org/";
14+ meta = with stdenv.lib; {
15+ homepage = https://github.com/scop/bash-completion;
2216 description = "Programmable completion for the bash shell";
23− license = "GPL";
24−
25− platforms = stdenv.lib.platforms.unix;
26− maintainers = [ stdenv.lib.maintainers.peti ];
17+ license = licenses.gpl2Plus;
18+ platforms = platforms.unix;
19+ maintainers = [ maintainers.peti ];
2720 };
2821}