about summary refs log tree commit diff
path: root/pkgs/shells
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2012-08-20 10:34:30 +0200
committerPeter Simons <simons@cryp.to>2012-08-20 10:34:56 +0200
commita886d4f2ab30befdfabbc124b745c322314fddcf (patch)
tree9aeb07c5683b4882a515263186cf56323465d318 /pkgs/shells
parent7f8246c76ed97a7ffc941aa266a99409d624288a (diff)
bash-completion: update to version 2.0
Please note that this update changes the directory structure quite a bit. In
particular, the file "/etc/bash_completion" no longer exists, which means that
shell code which relies on that path must be updated. I'll commit appropriate
changes for NixOS in a moment.
Diffstat (limited to 'pkgs/shells')
-rw-r--r--pkgs/shells/bash-completion/default.nix10
1 files changed, 3 insertions, 7 deletions
diff --git a/pkgs/shells/bash-completion/default.nix b/pkgs/shells/bash-completion/default.nix
index 916c7600dfd0f..7e4c0f230155e 100644
--- a/pkgs/shells/bash-completion/default.nix
+++ b/pkgs/shells/bash-completion/default.nix
@@ -1,21 +1,17 @@
 { stdenv, fetchurl }:
 
 let
-  version = "1.3";
+  version = "2.0";
 in
 stdenv.mkDerivation {
   name = "bash-completion-${version}";
 
   src = fetchurl {
     url = "http://bash-completion.alioth.debian.org/files/bash-completion-${version}.tar.bz2";
-    sha256 = "8ebe30579f0f3e1a521013bcdd183193605dab353d7a244ff2582fb3a36f7bec";
+    sha256 = "e5a490a4301dfb228361bdca2ffca597958e47dd6056005ef9393a5852af5804";
   };
 
-  postInstall = ''
-    rm $out/etc/profile.d/bash_completion.sh
-    rmdir $out/etc/profile.d
-    sed -i -e "s|/etc/bash_completion|$out/etc/bash_completion|g" $out/etc/bash_completion
-  '';
+  doCheck = true;
 
   meta = {
     homepage = "http://bash-completion.alioth.debian.org/";