nixpkgs/pkgs/shells/bash/bash-completion/default.nix

26 lines
716 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 {
pname = "bash-completion";
version = "2.8";
2013-04-10 16:39:03 +01:00
src = fetchurl {
url = "https://github.com/scop/bash-completion/releases/download/${version}/${pname}-${version}.tar.xz";
sha256 = "0kgmflrr1ga9wfk770vmakna3nj46ylb5ky9ipd0v2k9ymq5a7y0";
};
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 ];
};
}