nixpkgs/pkgs/tools/misc/grc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.0 KiB
Nix
Raw Normal View History

2022-01-05 00:47:15 +03:00
{ lib
, fetchFromGitHub
, buildPythonApplication
}:
2013-07-31 08:11:31 +04:00
2021-03-02 23:20:01 +03:00
buildPythonApplication rec {
pname = "grc";
2021-08-08 16:03:21 +03:00
version = "1.13";
format = "other";
2013-07-31 08:11:31 +04:00
src = fetchFromGitHub {
2021-03-02 23:20:01 +03:00
owner = "garabik";
repo = pname;
rev = "v${version}";
2021-08-08 16:03:21 +03:00
sha256 = "1h0h88h484a9796hai0wasi1xmjxxhpyxgixn6fgdyc5h69gv8nl";
2013-07-31 08:11:31 +04:00
};
postPatch = ''
for f in grc grcat; do
substituteInPlace $f \
--replace /usr/local/ $out/
done
'';
2013-07-31 08:11:31 +04:00
installPhase = ''
2017-04-26 17:44:57 +03:00
runHook preInstall
./install.sh "$out" "$out"
install -Dm444 -t $out/share/zsh/vendor-completions _grc
2017-04-26 17:44:57 +03:00
runHook postInstall
2013-07-31 08:11:31 +04:00
'';
meta = with lib; {
2022-01-05 00:47:15 +03:00
homepage = "http://kassiopeia.juls.savba.sk/~garabik/software/grc.html";
2021-03-02 23:20:01 +03:00
description = "A generic text colouriser";
2013-07-31 08:11:31 +04:00
longDescription = ''
Generic Colouriser is yet another colouriser (written in Python) for
beautifying your logfiles or output of commands.
'';
2021-03-02 23:20:01 +03:00
license = licenses.gpl2Plus;
maintainers = with maintainers; [ lovek323 AndersonTorres peterhoeg ];
platforms = platforms.unix;
2013-07-31 08:11:31 +04:00
};
}