2011-07-21 23:02:01 +01:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
let
|
|
|
|
version = "1.3";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "bash-completion-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://bash-completion.alioth.debian.org/files/bash-completion-${version}.tar.bz2";
|
|
|
|
sha256 = "8ebe30579f0f3e1a521013bcdd183193605dab353d7a244ff2582fb3a36f7bec";
|
|
|
|
};
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
rm $out/etc/profile.d/bash_completion.sh
|
|
|
|
rmdir $out/etc/profile.d
|
2011-09-12 18:31:11 +01:00
|
|
|
sed -i -e "s|/etc/bash_completion|$out/etc/bash_completion|g" $out/etc/bash_completion
|
2011-07-21 23:02:01 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://bash-completion.alioth.debian.org/";
|
|
|
|
description = "Programmable completion for the bash shell";
|
|
|
|
license = "GPL";
|
|
|
|
|
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
|
|
|
};
|
|
|
|
}
|