From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EBS9IxbY0GHXiwAAgWs5BA (envelope-from ) for ; Sat, 01 Jan 2022 23:39:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gPIWIRbY0GGjwwAA9RJhRA (envelope-from ) for ; Sat, 01 Jan 2022 23:39:18 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0BBE13CB3A for ; Sat, 1 Jan 2022 23:39:18 +0100 (CET) Received: from localhost ([::1]:38806 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n3n1x-0005k5-3o for larch@yhetil.org; Sat, 01 Jan 2022 17:39:17 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33950) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3n1j-0005jv-5B for guix-patches@gnu.org; Sat, 01 Jan 2022 17:39:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47984) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n3n1i-0001iW-MO for guix-patches@gnu.org; Sat, 01 Jan 2022 17:39:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n3n1i-0000lz-Fe for guix-patches@gnu.org; Sat, 01 Jan 2022 17:39:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52939] [PATCH] gnu: Add grc. Resent-From: Hartmut Goebel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 01 Jan 2022 22:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52939 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52939@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16410767182918 (code B ref -1); Sat, 01 Jan 2022 22:39:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 Jan 2022 22:38:38 +0000 Received: from localhost ([127.0.0.1]:59530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3n1J-0000kz-KL for submit@debbugs.gnu.org; Sat, 01 Jan 2022 17:38:37 -0500 Received: from lists.gnu.org ([209.51.188.17]:40464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n3n1I-0000kq-8M for submit@debbugs.gnu.org; Sat, 01 Jan 2022 17:38:36 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33900) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3n1I-0005i2-29 for guix-patches@gnu.org; Sat, 01 Jan 2022 17:38:36 -0500 Received: from mout.kundenserver.de ([212.227.126.134]:40697) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3n1F-0001Nn-Ro for guix-patches@gnu.org; Sat, 01 Jan 2022 17:38:35 -0500 Received: from hermia.goebel-consult.de ([46.87.137.33]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1M9Ib1-1n1I360HBf-006KuB for ; Sat, 01 Jan 2022 23:38:31 +0100 Received: from thisbe.fritz.box (thisbe.fritz.box [192.168.110.24]) by hermia.goebel-consult.de (Postfix) with ESMTP id 302CD6316E; Sat, 1 Jan 2022 23:38:40 +0100 (CET) From: Hartmut Goebel Date: Sat, 1 Jan 2022 23:38:27 +0100 Message-Id: <123c6bfc52dbc71f24dd85941c94ea074bcb1702.1641076627.git.h.goebel@crazy-compilers.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:pMzti+lKnOQRIuaFI1kprPxv3qOL8+9isKd+Jv7cVGPwoqxgyhA nHpoQv5oFDHKvly/EyPGQ3Y5COvTzbWLfxeFyHYJ2WXR/DSy2EjocdOsV/AfgBQ0OxxyJMP FUqZTWFnDvr8BErVT3WUiNG533nMRDCTt3g507Cdf0sE61ug86ca44b9mAU7uEccjTxUwnV ECpSIyjuw0dGEJiEHr4Mg== X-UI-Out-Filterresults: notjunk:1;V03:K0:nChbrhdkVZQ=:nqZaI6RtlVvp+6LA8VTEZO iHYWrF2veZgfrScQxVKY1gKuP1U47Whrye44GmiFuw8XzHgnS4/ji9nourd7yy5RvbJosvvv3 Q3RSE/DM73reBtCWM1NBBEEiZzJEHYovzlYikE751M0z+ISjvlH4LQsjPyOS16e+JOGtQhY8K lMRZr4LcvWJ3V/GbGJiZsO150Gm1lQnTv5cuLYFfwTuiQJ0THJ10QhoPzuzh/5axX+29kgGpH vneYV9v0gonicwPKEWU/8pajA/Qrk3OAb57gg38Z0gWbyTpkg9B49tBNJEbg3TpZO4oVnzWdK jMM3AhmzE+UGZ4DsWMvLpv+7+8VIW1YC2z455Uoaf2oU0MPZRoHAf0nEx22bTXqd3UQsJ/oRz 3FDsoX1vFDmtTbi9x9ncQWRXY9Ihrs8+PEFRXMHEpTq3kUmUEnn6O/K+4mfl0uso1RQAW/BMR c8/9jNpNhiRaBWmlcxYFbSMoimr1kySxsx/wXL7RC6hkxq7d7vfO1be5OzOQTIBh+Dx0+C8hj st7MobY4iEb7JpR/Rwzu3inBWR1rZ5K6pHbDsWbMe6XmqkOc3yyU4qGgMs27292GdUgOqncJT f7NRvMcA6D0nWIiZCy5aPJihadewJmoSeh/xhCI5a635SGrTzAcCsKRKk6UBT9IaVrjcSjJnl 038iUxHN64KgcqSD2fb0wyAdqvFb7Tx6q0FLP3efoc6e5m+fhCEAYTEKPRYqB/WFZ9u7ph8MF +RJroGYtvUBfHQDy Received-SPF: none client-ip=212.227.126.134; envelope-from=h.goebel@crazy-compilers.com; helo=mout.kundenserver.de X-Spam_score_int: 0 X-Spam_score: 0.0 X-Spam_bar: / X-Spam_report: (0.0 / 5.0 requ) RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641076758; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=rgNkICnpnB3ZqHUqG4RE044GzwoY/NBbc33YXAhGcTo=; b=A6D6C5H3B//DO5nqBLC18U2+hD5s2rCXeLk6/5K2rs3QJmR37K+pAa1GOQQbCVTp0CY/bg +/8xpVf2kQI8YpP9fwADSIo2oHrwhpaK9SizW46cOZVPZNYp28Z+JptgUnVR8FIi5OKf3Y CJhYGe0eSPMVd6VsEMFxwqBXq9DZLuhsHlRLfglD188HMNs6FH6ItKIDrErrkUG7XJDaz5 xuPa+7Mv6W1otYGuPLW+zpUsMv3Izojb0t3zrYp67wS4AQ+n3EShiaAzqO9lU+VcFEhTYD 1+Wfy5w5kQzMhptD65JeA3YY1HFwiKCxdZUm+7GIvNdXOl7RnMUZqw7Wzw1dLw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641076758; a=rsa-sha256; cv=none; b=KqtiBUG9rvfniEwo1alyN4pQA1H1a2i4RarF6kcZYY+63phwVs6dIFLdFsJIoGDy1K7m9m OPUNs4HY1cQQr63pqAsTmcfkg7idGVTFOYfkkGoRM7Ee0xVW7EIHQYj+FA7K4hCTaDmQVr 5rbipgco1mxVR7Ait3DH/mgl0ajq+i59wjym1pG7WRjcq16skHVuP8/USc+4FQDtJDYWBe 0ScuMYlqT8kqLvYlImOSag2rOkY1U664Mt1BJXxuHTMv2phdnyjggkA8HrGpxHr4s8Twsr Jg4FZmtvgux9efccLrHDSG8aYSPMALUOGiYHW6kc4VNJS9mVy18P7mWwNosX/g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.28 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0BBE13CB3A X-Spam-Score: -3.28 X-Migadu-Scanner: scn0.migadu.com X-TUID: GMncquCLrT/b * 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