2013-04-10 17:39:03 +02:00
|
|
|
{ stdenv, fetchurl }:
|
2011-07-22 00:02:01 +02:00
|
|
|
|
2013-04-10 17:39:03 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2016-09-28 17:45:45 +02:00
|
|
|
name = "bash-completion-${version}";
|
2018-03-20 06:12:04 +01:00
|
|
|
version = "2.8";
|
2011-07-22 00:02:01 +02:00
|
|
|
|
2013-04-10 17:39:03 +02:00
|
|
|
src = fetchurl {
|
2016-09-28 17:45:45 +02:00
|
|
|
url = "https://github.com/scop/bash-completion/releases/download/${version}/${name}.tar.xz";
|
2018-03-20 06:12:04 +01:00
|
|
|
sha256 = "0kgmflrr1ga9wfk770vmakna3nj46ylb5ky9ipd0v2k9ymq5a7y0";
|
2011-07-22 00:02:01 +02:00
|
|
|
};
|
|
|
|
|
2012-08-20 10:34:30 +02:00
|
|
|
doCheck = true;
|
2011-07-22 00:02:01 +02:00
|
|
|
|
2017-02-10 21:42:12 +01:00
|
|
|
prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
|
|
sed -i -e 's/readlink -f/readlink/g' bash_completion completions/*
|
|
|
|
'';
|
|
|
|
|
2016-09-28 17:45:45 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/scop/bash-completion;
|
2011-07-22 00:02:01 +02:00
|
|
|
description = "Programmable completion for the bash shell";
|
2016-09-28 17:45:45 +02:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.peti ];
|
2011-07-22 00:02:01 +02:00
|
|
|
};
|
|
|
|
}
|