summary refs log tree commit diff
path: root/pkgs/shells/bash/bash-completion
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-04-17 14:03:07 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2018-04-17 14:47:32 -0500
commitddaea6ac77177c91576568af4b6f6d85195559af (patch)
tree0292a346327a613a52b95492aea9ed76d8c55dfe /pkgs/shells/bash/bash-completion
parentd308ac923376b76183a0b4078f808ce40af8f86b (diff)
downloadnixpkgs-ddaea6ac77177c91576568af4b6f6d85195559af.tar
nixpkgs-ddaea6ac77177c91576568af4b6f6d85195559af.tar.gz
nixpkgs-ddaea6ac77177c91576568af4b6f6d85195559af.tar.bz2
nixpkgs-ddaea6ac77177c91576568af4b6f6d85195559af.tar.lz
nixpkgs-ddaea6ac77177c91576568af4b6f6d85195559af.tar.xz
nixpkgs-ddaea6ac77177c91576568af4b6f6d85195559af.tar.zst
nixpkgs-ddaea6ac77177c91576568af4b6f6d85195559af.zip
pkgs/shells: move extensions to subdirs
These are not reaal shells and should go into their parent shell
directory.
Diffstat (limited to 'pkgs/shells/bash/bash-completion')
-rw-r--r--pkgs/shells/bash/bash-completion/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/shells/bash/bash-completion/default.nix b/pkgs/shells/bash/bash-completion/default.nix
new file mode 100644
index 00000000000..b5f600da8f7
--- /dev/null
+++ b/pkgs/shells/bash/bash-completion/default.nix
@@ -0,0 +1,25 @@
+{ stdenv, fetchurl }:
+
+stdenv.mkDerivation rec {
+  name = "bash-completion-${version}";
+  version = "2.8";
+
+  src = fetchurl {
+    url = "https://github.com/scop/bash-completion/releases/download/${version}/${name}.tar.xz";
+    sha256 = "0kgmflrr1ga9wfk770vmakna3nj46ylb5ky9ipd0v2k9ymq5a7y0";
+  };
+
+  doCheck = true;
+
+  prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
+    sed -i -e 's/readlink -f/readlink/g' bash_completion completions/*
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = https://github.com/scop/bash-completion;
+    description = "Programmable completion for the bash shell";
+    license = licenses.gpl2Plus;
+    platforms = platforms.unix;
+    maintainers = [ maintainers.peti ];
+  };
+}