all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#52939] [PATCH] gnu: Add grc.
@ 2022-01-01 22:38 Hartmut Goebel
       [not found] ` <handler.52939.B.16410767182918.ack@debbugs.gnu.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Hartmut Goebel @ 2022-01-01 22:38 UTC (permalink / raw)
  To: 52939

* gnu/packages/shellutils.scm (grc): New variable.
---
 gnu/packages/shellutils.scm | 54 +++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)

diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm
index 7a868f0789..f59b009f19 100644
--- a/gnu/packages/shellutils.scm
+++ b/gnu/packages/shellutils.scm
@@ -32,6 +32,7 @@
 
 (define-module (gnu packages shellutils)
   #:use-module ((guix licenses) #:prefix license:)
+  #:use-module (guix gexp)
   #:use-module (guix utils)
   #:use-module (guix packages)
   #:use-module (guix download)
@@ -570,3 +571,56 @@ set of programs designed to make renaming of files faster and less cumbersome.
 The file renaming utilities consists of five programs: @command{qmv},
 @command{qcp}, @command{imv}, @command{icp}, and @command{deurlname}.")
     (license license:gpl3+)))
+
+(define-public grc
+  (package
+    (name "grc")
+    (version "1.13")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/garabik/grc")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1h0h88h484a9796hai0wasi1xmjxxhpyxgixn6fgdyc5h69gv8nl"))))
+    (build-system gnu-build-system)
+    (inputs
+     (list python))
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (delete 'configure)
+          (replace 'build
+            (lambda _
+              (substitute* "grc"
+                (("conffilenames = \\[.*\\]")
+                 (string-append
+                  "conffilenames = ["
+                  "os.environ.get('GUIX_ENVIRONMENT', '" #$output "') "
+                  "+ '/etc/grc.conf']")))
+              (substitute* "grcat"
+                (("conffilepath \\+= \\['/usr/.*\\]")
+                 (string-append
+                  "conffilepath += ["
+                  "os.environ.get('GUIX_ENVIRONMENT', '" #$output "') "
+                  "+ '/share/grc/']"))))) ;; trailing slash!
+          (delete 'check)
+          (replace 'install
+            (lambda _
+              (invoke "sh" "install.sh" #$output #$output))))))
+    (home-page "http://kassiopeia.juls.savba.sk/~garabik/software/grc.html")
+    (synopsis "Generic colouriser for everything")
+    (description "@code{grc} can be used to colourise logfiles, output of
+shell commands, arbitrary text, etc.  Many shell commands are supported out of
+the box.
+
+You might want to add these lines you your @code{~/.bashrc}:
+@example
+GRC_ALIASES=true
+source ${GUIX_ENVIRONMENT:-$HOME/.guix-profile}/etc/profile.d/grc.sh
+@end example
+")
+    (license license:gpl2)))
-- 
2.30.2





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#52939] Acknowledgement ([PATCH] gnu: Add grc.)
       [not found] ` <handler.52939.B.16410767182918.ack@debbugs.gnu.org>
@ 2022-01-24 22:30   ` Hartmut Goebel
  2022-01-24 22:42     ` bug#52939: " Hartmut Goebel
  0 siblings, 1 reply; 3+ messages in thread
From: Hartmut Goebel @ 2022-01-24 22:30 UTC (permalink / raw)
  To: 52939

Pushed as 483731c816ba1090937ed06b4847e5c4c27a97f2




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#52939: Acknowledgement ([PATCH] gnu: Add grc.)
  2022-01-24 22:30   ` [bug#52939] Acknowledgement ([PATCH] gnu: Add grc.) Hartmut Goebel
@ 2022-01-24 22:42     ` Hartmut Goebel
  0 siblings, 0 replies; 3+ messages in thread
From: Hartmut Goebel @ 2022-01-24 22:42 UTC (permalink / raw)
  To: 52939-close






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-01-24 22:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-01 22:38 [bug#52939] [PATCH] gnu: Add grc Hartmut Goebel
     [not found] ` <handler.52939.B.16410767182918.ack@debbugs.gnu.org>
2022-01-24 22:30   ` [bug#52939] Acknowledgement ([PATCH] gnu: Add grc.) Hartmut Goebel
2022-01-24 22:42     ` bug#52939: " Hartmut Goebel

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.