2017-03-01 07:56:54 +00:00
|
|
|
{ stdenv, fetchFromGitHub, python3Packages, makeWrapper }:
|
2013-07-31 05:11:31 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-01-10 08:16:41 +00:00
|
|
|
name = "grc-${version}";
|
2017-03-01 07:56:54 +00:00
|
|
|
version = "1.10.1";
|
2013-07-31 05:11:31 +01:00
|
|
|
|
2017-03-01 07:56:54 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "garabik";
|
|
|
|
repo = "grc";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1c2ndnbyznb608h3s99fbcyh4qb1ccipxm15lyszrrks0w2llbah";
|
2013-07-31 05:11:31 +01:00
|
|
|
};
|
|
|
|
|
2017-03-01 07:56:54 +00:00
|
|
|
buildInputs = with python3Packages; [ wrapPython makeWrapper ];
|
|
|
|
|
2013-07-31 05:11:31 +01:00
|
|
|
installPhase = ''
|
2017-03-01 07:56:54 +00:00
|
|
|
./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
|
2013-07-31 05:11:31 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2013-10-06 10:49:53 +01:00
|
|
|
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;
|
2015-04-05 22:17:07 +01:00
|
|
|
maintainers = with maintainers; [ lovek323 AndersonTorres ];
|
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.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|