2021-03-02 12:20:01 -08:00
|
|
|
{ lib, fetchFromGitHub, buildPythonApplication }:
|
2013-07-30 21:11:31 -07:00
|
|
|
|
2021-03-02 12:20:01 -08:00
|
|
|
buildPythonApplication rec {
|
2019-08-06 21:06:17 -07:00
|
|
|
pname = "grc";
|
2021-03-02 12:20:01 -08:00
|
|
|
version = "1.12";
|
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 {
|
2021-03-02 12:20:01 -08:00
|
|
|
owner = "garabik";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-XJj1j6sDt0iL3U6uMbB1j0OfpXRdP+x66gc6sKxrQIA=";
|
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
|
|
|
'';
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2021-03-02 12:20:01 -08:00
|
|
|
homepage = "http://korpus.juls.savba.sk/~garabik/software/grc.html";
|
|
|
|
description = "A generic text colouriser";
|
2013-07-30 21:11:31 -07:00
|
|
|
longDescription = ''
|
|
|
|
Generic Colouriser is yet another colouriser (written in Python) for
|
|
|
|
beautifying your logfiles or output of commands.
|
|
|
|
'';
|
2021-03-02 12:20:01 -08:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ lovek323 AndersonTorres peterhoeg ];
|
|
|
|
platforms = platforms.unix;
|
2013-07-30 21:11:31 -07:00
|
|
|
};
|
|
|
|
}
|