From a886d4f2ab30befdfabbc124b745c322314fddcf Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 20 Aug 2012 10:34:30 +0200 Subject: [PATCH] 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. --- pkgs/shells/bash-completion/default.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pkgs/shells/bash-completion/default.nix b/pkgs/shells/bash-completion/default.nix index 916c7600dfd0..7e4c0f230155 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/";