mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
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.
This commit is contained in:
parent
7f8246c76e
commit
a886d4f2ab
@ -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/";
|
||||
|
Loading…
Reference in New Issue
Block a user