3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/shells/bash-completion/default.nix

26 lines
714 B
Nix
Raw Normal View History

2013-04-10 16:39:03 +01:00
{ stdenv, fetchurl }:
2013-04-10 16:39:03 +01:00
stdenv.mkDerivation rec {
2016-09-28 16:45:45 +01:00
name = "bash-completion-${version}";
2017-07-19 22:58:53 +01:00
version = "2.7";
2013-04-10 16:39:03 +01:00
src = fetchurl {
2016-09-28 16:45:45 +01:00
url = "https://github.com/scop/bash-completion/releases/download/${version}/${name}.tar.xz";
2017-07-19 22:58:53 +01:00
sha256 = "07j484vb3k90f4989xh1g1x99g01akrp69p3dml4lza27wnqkfj1";
};
doCheck = true;
prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
sed -i -e 's/readlink -f/readlink/g' bash_completion completions/*
'';
2016-09-28 16:45:45 +01:00
meta = with stdenv.lib; {
homepage = https://github.com/scop/bash-completion;
description = "Programmable completion for the bash shell";
2016-09-28 16:45:45 +01:00
license = licenses.gpl2Plus;
platforms = platforms.unix;
maintainers = [ maintainers.peti ];
};
}