blob: d79c9774569b14cc4a0b7ddc629e980aedb3f7d5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{ stdenv, fetchurl }:
let
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 = "e5a490a4301dfb228361bdca2ffca597958e47dd6056005ef9393a5852af5804";
};
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"|'
'';
doCheck = true;
meta = {
homepage = "http://bash-completion.alioth.debian.org/";
description = "Programmable completion for the bash shell";
license = "GPL";
maintainers = [ stdenv.lib.maintainers.simons ];
};
}
|