2011-07-21 23:02:01 +01:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
let
|
2012-08-20 09:34:30 +01:00
|
|
|
version = "2.0";
|
2011-07-21 23:02:01 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "bash-completion-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://bash-completion.alioth.debian.org/files/bash-completion-${version}.tar.bz2";
|
2012-08-20 09:34:30 +01:00
|
|
|
sha256 = "e5a490a4301dfb228361bdca2ffca597958e47dd6056005ef9393a5852af5804";
|
2011-07-21 23:02:01 +01:00
|
|
|
};
|
|
|
|
|
2012-08-20 15:36:20 +01:00
|
|
|
postInstall = ''
|
|
|
|
sed -i "$out/share/bash-completion/bash_completion" \
|
|
|
|
-e 's|: .{BASH_COMPLETION_COMPAT_DIR:=.*}|BASH_COMPLETION_COMPAT_DIR="$HOME/.nix-profile/etc/bash_completion.d"|'
|
|
|
|
'';
|
|
|
|
|
2012-08-20 09:34:30 +01:00
|
|
|
doCheck = true;
|
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 ];
|
|
|
|
};
|
|
|
|
}
|