3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/grc/default.nix

44 lines
1.1 KiB
Nix
Raw Normal View History

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