depot/third_party/nixpkgs/pkgs/tools/misc/grc/default.nix
Default email a5adf1ddd8 Project import generated by Copybara.
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
2021-01-15 23:18:51 +01:00

43 lines
1.1 KiB
Nix

{ lib, stdenv, fetchFromGitHub, python3Packages }:
python3Packages.buildPythonApplication rec {
pname = "grc";
version = "1.11.3";
format = "other";
src = fetchFromGitHub {
owner = "garabik";
repo = "grc";
rev = "v${version}";
sha256 = "0b3wx9zr7l642hizk93ysbdss7rfymn22b2ykj4kpkf1agjkbv35";
};
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
'';
meta = with lib; {
description = "Yet another colouriser for beautifying your logfiles or output of commands";
homepage = "http://korpus.juls.savba.sk/~garabik/software/grc.html";
license = licenses.gpl2;
maintainers = with maintainers; [ lovek323 AndersonTorres peterhoeg ];
platforms = platforms.unix;
longDescription = ''
Generic Colouriser is yet another colouriser (written in Python) for
beautifying your logfiles or output of commands.
'';
};
}