summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/tools/misc/grc/default.nix32
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/tools/misc/grc/default.nix b/pkgs/tools/misc/grc/default.nix
new file mode 100644
index 00000000000..ea54ab4a543
--- /dev/null
+++ b/pkgs/tools/misc/grc/default.nix
@@ -0,0 +1,32 @@
+{ stdenv, fetchurl, python }:
+
+stdenv.mkDerivation rec {
+  version = "1.4";
+  name    = "grc_${version}";
+
+  src = fetchurl {
+    url    = "http://korpus.juls.savba.sk/~garabik/software/grc/${name}.tar.gz";
+    sha256 = "1l7lskxfjk32kkv4aaqw5qcxvh972nab3x2jzy67m1aa0zpcbzdv";
+  };
+
+  installPhase = ''
+    sed -i s%/usr%% install.sh
+    sed -i "s% /usr/bin/python%${python}/bin/python%" grc
+    sed -i "s% /usr/bin/python%${python}/bin/python%" grc
+    ./install.sh "$out"
+  '';
+
+  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;
+    license     = licenses.gpl2;
+    maintainers = with maintainers; [ lovek323 ];
+    platforms   = platforms.unix;
+
+    longDescription = ''
+      Generic Colouriser is yet another colouriser (written in Python) for
+      beautifying your logfiles or output of commands.
+    '';
+  };
+}
+
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index c10e737ba97..310a9b9dd6c 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -446,6 +446,8 @@ let
 
   apg = callPackage ../tools/security/apg { };
 
+  grc = callPackage ../tools/misc/grc { };
+
   otool = callPackage ../os-specific/darwin/otool { };
 
   setfile = callPackage ../os-specific/darwin/setfile { };