2021-03-09 03:18:52 +00:00
|
|
|
{ lib, fetchFromGitHub, buildPythonApplication }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "grc";
|
2021-03-09 03:18:52 +00:00
|
|
|
version = "1.12";
|
2020-04-24 23:36:52 +00:00
|
|
|
format = "other";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-03-09 03:18:52 +00:00
|
|
|
owner = "garabik";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-XJj1j6sDt0iL3U6uMbB1j0OfpXRdP+x66gc6sKxrQIA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
for f in grc grcat; do
|
|
|
|
substituteInPlace $f \
|
|
|
|
--replace /usr/local/ $out/
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
./install.sh "$out" "$out"
|
|
|
|
install -Dm444 -t $out/share/zsh/vendor-completions _grc
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-03-09 03:18:52 +00:00
|
|
|
homepage = "http://korpus.juls.savba.sk/~garabik/software/grc.html";
|
|
|
|
description = "A generic text colouriser";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
Generic Colouriser is yet another colouriser (written in Python) for
|
|
|
|
beautifying your logfiles or output of commands.
|
|
|
|
'';
|
2021-03-09 03:18:52 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ lovek323 AndersonTorres peterhoeg ];
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|