GNU bug report logs - #49942
[PATCH] gnu: Add shell-color-scripts

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: phodina <phodina@HIDDEN>; Keywords: patch; dated Sun, 8 Aug 2021 11:51:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 49942 <at> debbugs.gnu.org:


Received: (at 49942) by debbugs.gnu.org; 18 Sep 2021 14:10:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 18 10:10:39 2021
Received: from localhost ([127.0.0.1]:36353 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mRb35-00032R-AZ
	for submit <at> debbugs.gnu.org; Sat, 18 Sep 2021 10:10:39 -0400
Received: from mail-4322.protonmail.ch ([185.70.43.22]:27619)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <phodina@HIDDEN>) id 1mRb31-000327-Em
 for 49942 <at> debbugs.gnu.org; Sat, 18 Sep 2021 10:10:33 -0400
Date: Sat, 18 Sep 2021 14:10:22 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
 s=protonmail; t=1631974224;
 bh=/jWvDv3ZNZQBGv/1vl+ygibVyUUyEYvpUSCc+mzOvrw=;
 h=Date:To:From:Cc:Reply-To:Subject:From;
 b=BQxqHtwReK/gYHdwXL9Z9tJbL/ktn6NTr+bGF6xmi1t5YdlaoJgfD9JiDc6Q0pR8n
 98nnVEJyW6X4Ra+gt/5nClXkgcWyz8EuHwsk5AHtlI5NFzKJhdZMHEoOkg6+YurCbs
 untfy0vYfMufOce49uIfQ5Nc070j+mADNq5wqyIE=
To: Maxime Devos <maximedevos@HIDDEN>
From: phodina <phodina@HIDDEN>
Subject: [PATCH v2] gnu: Add shell-color-scripts.
Message-ID: <8r1GXqISfNJpN9TzGPo7yBAkgpq6gthRXhZYLjQkU-kWQkNvdsDZ-uXem9rTlugAAVzJLZ9zzmeaBioQzUdY8GSN1o3Tu3pwlofd6ccxTD4=@protonmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED,
 DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no
 autolearn=disabled version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
 mailout.protonmail.ch
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 49942
Cc: 49942 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: phodina <phodina@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi Maxime,

thanks for hints on improvements!

--8<---------------cut here---------------start------------->8--

* gnu/packages/terminals.scm (shell-color-scripts): New variable.

diff --git a/gnu/packages/terminals.scm b/gnu/packages/terminals.scm
index de9bec9e66..d7e3199606 100644
--- a/gnu/packages/terminals.scm
+++ b/gnu/packages/terminals.scm
@@ -27,6 +27,7 @@
 ;;; Copyright =C2=A9 2021 Rapha=C3=ABl M=C3=A9lotte <raphael.melotte@mind.=
be>
 ;;; Copyright =C2=A9 2021 ikasero <ahmed@HIDDEN>
 ;;; Copyright =C2=A9 2021 Brice Waegeneire <brice@HIDDEN>
+;;; Copyright =C2=A9 2021 Petr Hodina <phodina@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -47,6 +48,7 @@
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix build-system cargo)
   #:use-module (guix build-system cmake)
+  #:use-module (guix build-system copy)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system glib-or-gtk)
   #:use-module (guix build-system go)
@@ -58,6 +60,7 @@
   #:use-module (guix utils)
   #:use-module (gnu packages)
   #:use-module (gnu packages autotools)
+  #:use-module (gnu packages base)
   #:use-module (gnu packages build-tools)   ;for meson-0.55
   #:use-module (gnu packages check)
   #:use-module (gnu packages cmake)
@@ -69,6 +72,7 @@
   #:use-module (gnu packages fontutils)
   #:use-module (gnu packages freedesktop)
   #:use-module (gnu packages fribidi)
+  #:use-module (gnu packages gawk)
   #:use-module (gnu packages gettext)
   #:use-module (gnu packages ghostscript)
   #:use-module (gnu packages gl)
@@ -810,6 +814,57 @@ It's a terminal emulator with few dependencies, so you=
 don't need a full GNOME
 desktop installed to have a decent terminal emulator.")
     (license license:gpl2)))

+(define-public shell-color-scripts
+  (let ((commit "3dbdfac24bb629238fdc3e1c8909e2c8577f8735")
+        (revision "1"))
+    (package
+      (name "colorscript")
+      (version commit)
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://gitlab.com/dwt1/shell-color-scripts")
+                      (commit version)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "0lkiz6fkrqryr1vh0lh067q7hp8ba8887pkk8caipqphjswp2z16"))=
))
+      (build-system copy-build-system)
+      (arguments
+       `(#:install-plan '(("colorscript.sh" "bin/colorscript.sh")
+                          ("colorscripts" "colorscripts"))
+         #:phases
+         (modify-phases %standard-phases
+           (add-after 'unpack 'fix-colorscipts-location
+             (lambda* (#:key outputs #:allow-other-keys)
+               (substitute* "colorscript.sh"
+                 (("/opt/shell-color-scripts/colorscripts")
+                  (string-append (assoc-ref outputs "out") "/colorscripts"=
))
+                 (("sed") (string-append
+                            (assoc-ref %build-inputs "sed") "/bin/sed"))
+                 (("awk") (string-append
+                            (assoc-ref %build-inputs "gawk") "/bin/awk"))
+                 (("wc") (string-append
+                           (assoc-ref %build-inputs "coreutils") "/bin/wc"=
))
+                 (("nl") (string-append
+                           (assoc-ref %build-inputs "coreutils") "/bin/nl"=
))
+                 (("cut") (string-append
+                            (assoc-ref %build-inputs "coreutils") "/bin/cu=
t"))
+                 (("echo") (string-append
+                            (assoc-ref %build-inputs "coreutils") "/bin/ec=
ho"))
+                 (("printf") (string-append
+                    (assoc-ref %build-inputs "coreutils") "/bin/printf"))
+                 (("tr") (string-append
+                    (assoc-ref %build-inputs "coreutils") "/bin/tr")))))))=
)
+      (inputs `(("ncurses" ,ncurses)
+                ("gawk" ,gawk)
+                ("sed" ,sed)
+                ("coreutils" ,coreutils)))
+      (synopsis "Collection of terminal color scripts")
+      (description "Collection of terminal color scripts")
+      (home-page "https://gitlab.com/dwt1/shell-color-scripts")
+      (license license:expat))))
+
 (define-public go-github.com-nsf-termbox-go
   (let ((commit "288510b9734e30e7966ec2f22b87c5f8e67345e3")
         (revision "1"))
--
2.32.0




Information forwarded to guix-patches@HIDDEN:
bug#49942; Package guix-patches. Full text available.

Message received at 49942 <at> debbugs.gnu.org:


Received: (at 49942) by debbugs.gnu.org; 18 Sep 2021 13:09:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 18 09:09:21 2021
Received: from localhost ([127.0.0.1]:33836 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mRa5p-0000oQ-6v
	for submit <at> debbugs.gnu.org; Sat, 18 Sep 2021 09:09:21 -0400
Received: from andre.telenet-ops.be ([195.130.132.53]:48022)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maximedevos@HIDDEN>) id 1mRa5l-0000oE-LG
 for 49942 <at> debbugs.gnu.org; Sat, 18 Sep 2021 09:09:20 -0400
Received: from butterfly.local ([213.119.235.61])
 by andre.telenet-ops.be with bizsmtp
 id vR9E2500F1L9TAD01R9FVt; Sat, 18 Sep 2021 15:09:15 +0200
Message-ID: <975a441334b97bb04d18e2fc39f98d1cfffa5ccc.camel@HIDDEN>
Subject: Re: [bug#49942] [PATCH] gnu: Add shell-color-scripts
From: Maxime Devos <maximedevos@HIDDEN>
To: phodina <phodina@HIDDEN>, 49942 <at> debbugs.gnu.org
Date: Sat, 18 Sep 2021 15:09:07 +0200
In-Reply-To: <j8v3TScCyT2ee_PoedHUN88Wwq32xEEoM11Asud9wWugE58sgw1tSxrWz7rtR9O-rJjZyZDk5xP7LkTJFLkwn8ZQgj9rFI75SGEsb8D3cw4=@protonmail.com>
References: <j8v3TScCyT2ee_PoedHUN88Wwq32xEEoM11Asud9wWugE58sgw1tSxrWz7rtR9O-rJjZyZDk5xP7LkTJFLkwn8ZQgj9rFI75SGEsb8D3cw4=@protonmail.com>
Content-Type: multipart/signed; micalg="pgp-sha512";
 protocol="application/pgp-signature"; boundary="=-j8xeQhVxRf3evXxByNWO"
User-Agent: Evolution 3.34.2 
MIME-Version: 1.0
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21;
 t=1631970556; bh=91iaajeZke+wmz4/56QSrBHKAmYpK7V53jrbx3rpWQQ=;
 h=Subject:From:To:Date:In-Reply-To:References;
 b=ZA8okmqkoIHdckm/HJaoRSyEClELI2CGBtOvKs/Du79uioy5ttW32nl5bBrYJ1erK
 aFlKcwnl59RaYZHI7ueHgXR82stwB1U57jqpzL0JsbpQ7vp3cf+UstYDaVdOvv98cf
 Jfthvwxpwd0dxmz3fkT5udGsXJvxS6CjTsftQjgrPJFz4f7Zecp42jdV+gofgo3WtA
 5ZHCJjhZI4Uvhfiz4TrnRnfs3r/38UKykLlcwC4n8BCrXwKUNiUYl4XWnOwHe/m7pM
 1DEPW7PY5n3BrtPHfcvvwQa6xXMyaiXoortm2TP4QSP/trQDChHEDubFPEteu5IvEt
 hc7uAF01fazzw==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 49942
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)


--=-j8xeQhVxRf3evXxByNWO
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi,

> +(define-public shell-color-scripts
> + (package
> +  (name "colorscript")
> +  (version "3dbdfac24bb629238fdc3e1c8909e2c8577f8735") ; no tags
> +  (source (origin
> +            (method git-fetch)
> +            (uri (git-reference
> +                   (url "https://gitlab.com/dwt1/shell-color-scripts")
> +                   (commit version)))
> +            (file-name (git-file-name name version))
> +            (sha256
> +             (base32
> +              "0lkiz6fkrqryr1vh0lh067q7hp8ba8887pkk8caipqphjswp2z16"))))
> +  (build-system copy-build-system)
> +  (arguments
> +    `(#:install-plan '(("colorscript.sh" "bin/colorscript.sh")
> +                       ("colorscripts" "colorscripts"))
> +      #:phases
> +      (modify-phases %standard-phases
> +        (add-after 'unpack 'fix-colorscipts-location
> +          (lambda* (#:key outputs #:allow-other-keys)
> +            (substitute* "colorscript.sh"
> +              (("/opt/shell-color-scripts/colorscripts")
> +               (string-append (assoc-ref outputs "out") "/colorscripts")=
)))))))
> +  (inputs `(("ncurses" ,ncurses)))

Missing: 'awk', 'sed' and 'coreugils'.
The colorscript.sh needs some =E2=80=98absolutification=E2=80=99, e.g. usin=
g 'substitute*',
to refer to awk, sed, tr, wc ... by their absolute path instead of using
whatever is in the profile.

Some script in =E2=80=98colorscripts=E2=80=99 may need changes as well

> +  (synopsis "Collection of terminal color scripts")
> +  (description "Collection of terminal color scripts")
> +  (home-page "https://gitlab.com/dwt1/shell-color-scripts")
> +  (license license:expat))) ; MIT

"; MIT" isn't necessary, as license:expat is unambigious,
whereas MIT is sometimes used for the X11 license and can theoretically
refer to any license ever used by MIT.  (Though in practice =E2=80=98the MI=
T license=E2=80=99
either refers to the X11 or the expat license.)

Greetings,
Maxime

--=-j8xeQhVxRf3evXxByNWO
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYUXk9BccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7nd7AP4uN4dHRnXPYsyp2Pr/3Mrfrygi
sFQc4fYpLeITbbZVVgEA323KLu18QmzeGZpo3V26rYIJYD2aR93k1Tx3RoxEYAM=
=YkUX
-----END PGP SIGNATURE-----

--=-j8xeQhVxRf3evXxByNWO--





Information forwarded to guix-patches@HIDDEN:
bug#49942; Package guix-patches. Full text available.

Message received at 49942 <at> debbugs.gnu.org:


Received: (at 49942) by debbugs.gnu.org; 18 Sep 2021 08:09:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 18 04:09:24 2021
Received: from localhost ([127.0.0.1]:33485 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mRVPX-000878-U0
	for submit <at> debbugs.gnu.org; Sat, 18 Sep 2021 04:09:24 -0400
Received: from mail-4322.protonmail.ch ([185.70.43.22]:52567)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <phodina@HIDDEN>) id 1mRVPV-00086r-EC
 for 49942 <at> debbugs.gnu.org; Sat, 18 Sep 2021 04:09:22 -0400
Date: Sat, 18 Sep 2021 08:09:13 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
 s=protonmail; t=1631952555;
 bh=s2gWxgS8jmLesrM+keUh1bhokP9MG2uPKM3i9oGYdAE=;
 h=Date:To:From:Reply-To:Subject:From;
 b=K4LOOzfukjrQthtA5guhvwLrwnRLs0RteR8N15GwGUuQgTzzkaL7j9ELuMlyhyyLc
 Xi46P7qqDpUMFC1bne69Vch1N9TI4S8KO3XGWFoaMLHMK/R5pj8VD3UQ9e9Iau5ZZM
 vtTuOpF/Qssg11x3xgDHzUElNDZWct2wjvf8EsZM=
To: "49942 <at> debbugs.gnu.org" <49942 <at> debbugs.gnu.org>
From: phodina <phodina@HIDDEN>
Subject: Patch status
Message-ID: <rXN_KFHHIhVD7i1DFAqfffLYODOAmIBUBsHXi_NkjnVeDLInIhYF7esDwSeaBsxiscg3UoHuUvND4PuwIHWzr5roOglA8wApPofqE9OdLTI=@protonmail.com>
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="b1_WAcxfH0hY7yPB6YmpbtcUgcBizbLlYR1hIhSZ1oGSI"
X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED,
 DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE
 shortcircuit=no autolearn=disabled version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
 mailout.protonmail.ch
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 49942
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: phodina <phodina@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

This is a multi-part message in MIME format.

--b1_WAcxfH0hY7yPB6YmpbtcUgcBizbLlYR1hIhSZ1oGSI
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: base64

SGkhCklzIHRoZXJlIGFueXRoaW5nIHRvIGJlIGltcHJvdmVkIHRvIHVwc3RyZWFtIHRoaXMgcGF0
Y2g/

--b1_WAcxfH0hY7yPB6YmpbtcUgcBizbLlYR1hIhSZ1oGSI
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: base64

PGRpdj48c3BhbiBzdHlsZT0iYm94LXNpemluZzogYm9yZGVyLWJveDsgbWFyZ2luOiAwcHg7IHBh
ZGRpbmc6IDBweDsgYm9yZGVyOiAwcHg7IGZvbnQtc3R5bGU6IG5vcm1hbDsgZm9udC12YXJpYW50
LWxpZ2F0dXJlczogbm9ybWFsOyBmb250LXZhcmlhbnQtY2Fwczogbm9ybWFsOyBmb250LXZhcmlh
bnQtbnVtZXJpYzogaW5oZXJpdDsgZm9udC12YXJpYW50LWVhc3QtYXNpYW46IGluaGVyaXQ7IGZv
bnQtd2VpZ2h0OiA0MDA7IGZvbnQtc3RyZXRjaDogaW5oZXJpdDsgbGluZS1oZWlnaHQ6IGluaGVy
aXQ7IHZlcnRpY2FsLWFsaWduOiBiYXNlbGluZTsgd2hpdGUtc3BhY2U6IHByZS13cmFwOyBkaXNw
bGF5OiBibG9jazsgY29sb3I6IHJnYigzMywgMzcsIDQxKTsgbGV0dGVyLXNwYWNpbmc6IG5vcm1h
bDsgb3JwaGFuczogMjsgdGV4dC1hbGlnbjogbGVmdDsgdGV4dC1pbmRlbnQ6IDBweDsgdGV4dC10
cmFuc2Zvcm06IG5vbmU7IHdpZG93czogMjsgd29yZC1zcGFjaW5nOiAwcHg7IC13ZWJraXQtdGV4
dC1zdHJva2Utd2lkdGg6IDBweDsgYmFja2dyb3VuZC1jb2xvcjogcmdiKDI1NSwgMjU1LCAyNTUp
OyB0ZXh0LWRlY29yYXRpb24tdGhpY2tuZXNzOiBpbml0aWFsOyB0ZXh0LWRlY29yYXRpb24tc3R5
bGU6IGluaXRpYWw7IHRleHQtZGVjb3JhdGlvbi1jb2xvcjogaW5pdGlhbDsiIGNsYXNzPSJsaW5l
Ij48c3BhbiBjbGFzcz0iZm9udCIgc3R5bGU9ImZvbnQtZmFtaWx5Om1vbm9zcGFjZSI+PHNwYW4g
Y2xhc3M9InNpemUiIHN0eWxlPSJmb250LXNpemU6MTZweCI+SGkhPC9zcGFuPjwvc3Bhbj48L3Nw
YW4+PGJyPjwvZGl2PjxkaXY+PHNwYW4gc3R5bGU9ImJveC1zaXppbmc6IGJvcmRlci1ib3g7IG1h
cmdpbjogMHB4OyBwYWRkaW5nOiAwcHg7IGJvcmRlcjogMHB4OyBmb250LXN0eWxlOiBub3JtYWw7
IGZvbnQtdmFyaWFudC1saWdhdHVyZXM6IG5vcm1hbDsgZm9udC12YXJpYW50LWNhcHM6IG5vcm1h
bDsgZm9udC12YXJpYW50LW51bWVyaWM6IGluaGVyaXQ7IGZvbnQtdmFyaWFudC1lYXN0LWFzaWFu
OiBpbmhlcml0OyBmb250LXdlaWdodDogNDAwOyBmb250LXN0cmV0Y2g6IGluaGVyaXQ7IGxpbmUt
aGVpZ2h0OiBpbmhlcml0OyB2ZXJ0aWNhbC1hbGlnbjogYmFzZWxpbmU7IHdoaXRlLXNwYWNlOiBw
cmUtd3JhcDsgZGlzcGxheTogYmxvY2s7IGNvbG9yOiByZ2IoMzMsIDM3LCA0MSk7IGxldHRlci1z
cGFjaW5nOiBub3JtYWw7IG9ycGhhbnM6IDI7IHRleHQtYWxpZ246IGxlZnQ7IHRleHQtaW5kZW50
OiAwcHg7IHRleHQtdHJhbnNmb3JtOiBub25lOyB3aWRvd3M6IDI7IHdvcmQtc3BhY2luZzogMHB4
OyAtd2Via2l0LXRleHQtc3Ryb2tlLXdpZHRoOiAwcHg7IGJhY2tncm91bmQtY29sb3I6IHJnYigy
NTUsIDI1NSwgMjU1KTsgdGV4dC1kZWNvcmF0aW9uLXRoaWNrbmVzczogaW5pdGlhbDsgdGV4dC1k
ZWNvcmF0aW9uLXN0eWxlOiBpbml0aWFsOyB0ZXh0LWRlY29yYXRpb24tY29sb3I6IGluaXRpYWw7
IiBjbGFzcz0ibGluZSI+PHNwYW4gY2xhc3M9ImZvbnQiIHN0eWxlPSJmb250LWZhbWlseTptb25v
c3BhY2UiPjxzcGFuIGNsYXNzPSJzaXplIiBzdHlsZT0iZm9udC1zaXplOjE2cHgiPklzIHRoZXJl
IGFueXRoaW5nIHRvIGJlIGltcHJvdmVkIHRvIHVwc3RyZWFtIHRoaXMgcGF0Y2g/PC9zcGFuPjwv
c3Bhbj48L3NwYW4+PGJyPjwvZGl2Pg==


--b1_WAcxfH0hY7yPB6YmpbtcUgcBizbLlYR1hIhSZ1oGSI--





Information forwarded to guix-patches@HIDDEN:
bug#49942; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 8 Aug 2021 11:50:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 08 07:50:57 2021
Received: from localhost ([127.0.0.1]:53767 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mChKN-0000y5-Us
	for submit <at> debbugs.gnu.org; Sun, 08 Aug 2021 07:50:57 -0400
Received: from lists.gnu.org ([209.51.188.17]:34258)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <phodina@HIDDEN>) id 1mChKJ-0000xv-Gy
 for submit <at> debbugs.gnu.org; Sun, 08 Aug 2021 07:50:50 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:53438)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <phodina@HIDDEN>)
 id 1mChKI-0004lb-VF
 for guix-patches@HIDDEN; Sun, 08 Aug 2021 07:50:47 -0400
Received: from mail2.protonmail.ch ([185.70.40.22]:59209)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <phodina@HIDDEN>)
 id 1mChKE-0001fL-TJ
 for guix-patches@HIDDEN; Sun, 08 Aug 2021 07:50:45 -0400
Date: Sun, 08 Aug 2021 11:50:35 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
 s=protonmail; t=1628423439;
 bh=JnVJlG3muDgm8LDb6/w+mKUiV1zLAv6NWuYN3KLbJ+Y=;
 h=Date:To:From:Reply-To:Subject:From;
 b=AmOrxMvo4XEQ4fEZV+Itc0c9Nimx/yxMF09N4qF80etGHNNkqW7pabl3JPFa7AIJ3
 TmZlSlDRVXwTvTVXTKwp1GQQbcl/m2C3HLqdBjEViM8Vy/g/ldviDqcPxhCHC5WNGz
 SGxspFKiWj7tZaHtJh+n3UAX4Us58z1y1n/TB2/M=
To: "guix-patches@HIDDEN" <guix-patches@HIDDEN>
From: phodina <phodina@HIDDEN>
Subject: [PATCH] gnu: Add shell-color-scripts
Message-ID: <j8v3TScCyT2ee_PoedHUN88Wwq32xEEoM11Asud9wWugE58sgw1tSxrWz7rtR9O-rJjZyZDk5xP7LkTJFLkwn8ZQgj9rFI75SGEsb8D3cw4=@protonmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED,
 DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no
 autolearn=disabled version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
 mailout.protonmail.ch
Received-SPF: pass client-ip=185.70.40.22; envelope-from=phodina@HIDDEN;
 helo=mail2.protonmail.ch
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: phodina <phodina@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

* gnu/packages/terminals.scm (shell-color-scripts): New variable.

diff --git a/gnu/packages/terminals.scm b/gnu/packages/terminals.scm
index 9377e5622b..c2028956fd 100644
--- a/gnu/packages/terminals.scm
+++ b/gnu/packages/terminals.scm
@@ -25,6 +25,7 @@
 ;;; Copyright =C2=A9 2020 Leo Famulari <leo@HIDDEN>
 ;;; Copyright =C2=A9 2021 Ekaitz Zarraga <ekaitz@HIDDEN>
 ;;; Copyright =C2=A9 2021 Rapha=C3=ABl M=C3=A9lotte <raphael.melotte@mind.=
be>
+;;; Copyright =C2=A9 2021 Petr Hodina <phodina@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -45,6 +46,7 @@
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix build-system cargo)
   #:use-module (guix build-system cmake)
+  #:use-module (guix build-system copy)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system glib-or-gtk)
   #:use-module (guix build-system go)
@@ -766,6 +768,36 @@ It's a terminal emulator with few dependencies, so you=
 don't need a full GNOME
 desktop installed to have a decent terminal emulator.")
     (license license:gpl2)))

+(define-public shell-color-scripts
+ (package
+  (name "colorscript")
+  (version "3dbdfac24bb629238fdc3e1c8909e2c8577f8735") ; no tags
+  (source (origin
+            (method git-fetch)
+            (uri (git-reference
+                   (url "https://gitlab.com/dwt1/shell-color-scripts")
+                   (commit version)))
+            (file-name (git-file-name name version))
+            (sha256
+             (base32
+              "0lkiz6fkrqryr1vh0lh067q7hp8ba8887pkk8caipqphjswp2z16"))))
+  (build-system copy-build-system)
+  (arguments
+    `(#:install-plan '(("colorscript.sh" "bin/colorscript.sh")
+                       ("colorscripts" "colorscripts"))
+      #:phases
+      (modify-phases %standard-phases
+        (add-after 'unpack 'fix-colorscipts-location
+          (lambda* (#:key outputs #:allow-other-keys)
+            (substitute* "colorscript.sh"
+              (("/opt/shell-color-scripts/colorscripts")
+               (string-append (assoc-ref outputs "out") "/colorscripts")))=
)))))
+  (inputs `(("ncurses" ,ncurses)))
+  (synopsis "Collection of terminal color scripts")
+  (description "Collection of terminal color scripts")
+  (home-page "https://gitlab.com/dwt1/shell-color-scripts")
+  (license license:expat))) ; MIT
+
 (define-public go-github.com-nsf-termbox-go
   (let ((commit "288510b9734e30e7966ec2f22b87c5f8e67345e3")
         (revision "1"))
--
2.32.0




Acknowledgement sent to phodina <phodina@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#49942; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 18 Sep 2021 14:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.