2019-08-06 21:06:17 -07:00
|
|
|
{ stdenv, fetchFromGitHub, python3Packages }:
|
2013-07-30 21:11:31 -07:00
|
|
|
|
2019-08-06 21:06:17 -07:00
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "grc";
|
2018-04-30 01:11:37 -07:00
|
|
|
version = "1.11.3";
|
2019-08-06 21:06:17 -07:00
|
|
|
format = "other";
|
2013-07-30 21:11:31 -07:00
|
|
|
|
2017-02-28 23:56:54 -08:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "garabik";
|
|
|
|
repo = "grc";
|
|
|
|
rev = "v${version}";
|
2018-04-30 01:11:37 -07:00
|
|
|
sha256 = "0b3wx9zr7l642hizk93ysbdss7rfymn22b2ykj4kpkf1agjkbv35";
|
2013-07-30 21:11:31 -07:00
|
|
|
};
|
|
|
|
|
2019-08-06 21:06:17 -07:00
|
|
|
postPatch = ''
|
|
|
|
for f in grc grcat; do
|
|
|
|
substituteInPlace $f \
|
|
|
|
--replace /usr/local/ $out/
|
|
|
|
done
|
|
|
|
'';
|
2017-02-28 23:56:54 -08:00
|
|
|
|
2013-07-30 21:11:31 -07:00
|
|
|
installPhase = ''
|
2017-04-26 07:44:57 -07:00
|
|
|
runHook preInstall
|
|
|
|
|
2017-02-28 23:56:54 -08:00
|
|
|
./install.sh "$out" "$out"
|
2019-08-06 21:06:17 -07:00
|
|
|
install -Dm444 -t $out/share/zsh/vendor-completions _grc
|
2017-04-26 07:44:57 -07:00
|
|
|
|
|
|
|
runHook postInstall
|
2013-07-30 21:11:31 -07:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2013-10-06 02:49:53 -07:00
|
|
|
description = "Yet another colouriser for beautifying your logfiles or output of commands";
|
2013-07-30 21:11:31 -07:00
|
|
|
homepage = http://korpus.juls.savba.sk/~garabik/software/grc.html;
|
|
|
|
license = licenses.gpl2;
|
2017-04-26 07:44:57 -07:00
|
|
|
maintainers = with maintainers; [ lovek323 AndersonTorres peterhoeg ];
|
2013-07-30 21:11:31 -07:00
|
|
|
platforms = platforms.unix;
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
Generic Colouriser is yet another colouriser (written in Python) for
|
|
|
|
beautifying your logfiles or output of commands.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|