1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 15:11:35 +00:00
nixpkgs/pkgs/tools/misc/grc/default.nix

47 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, python3Packages, makeWrapper }:
2013-07-31 05:11:31 +01:00
stdenv.mkDerivation rec {
name = "grc-${version}";
2018-04-30 09:11:37 +01:00
version = "1.11.3";
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
};
buildInputs = with python3Packages; [ wrapPython makeWrapper ];
2013-07-31 05:11:31 +01:00
installPhase = ''
2017-04-26 15:44:57 +01:00
runHook preInstall
./install.sh "$out" "$out"
for f in $out/bin/* ; do
patchPythonScript $f
substituteInPlace $f \
--replace ' /usr/bin/env python3' '${python3Packages.python.interpreter}' \
--replace "'/etc/grc.conf'" "'$out/etc/grc.conf'" \
--replace "'/usr/share/grc/'" "'$out/share/grc/'"
wrapProgram $f \
--prefix PATH : $out/bin
done
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";
2013-07-31 05:11:31 +01:00
homepage = http://korpus.juls.savba.sk/~garabik/software/grc.html;
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.
'';
};
}