From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UcD5BvTzRWHwnAAAgWs5BA (envelope-from ) for ; Sat, 18 Sep 2021 16:13:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id gIv8AfTzRWF3KQAAbx9fmQ (envelope-from ) for ; Sat, 18 Sep 2021 14:13:08 +0000 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 88F4AAA70 for ; Sat, 18 Sep 2021 16:13:07 +0200 (CEST) Received: from localhost ([::1]:60018 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRb5W-0004jI-Jz for larch@yhetil.org; Sat, 18 Sep 2021 10:13:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50530) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRb3W-0003NX-S3 for guix-patches@gnu.org; Sat, 18 Sep 2021 10:11:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53040) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRb3W-0008Er-HJ for guix-patches@gnu.org; Sat, 18 Sep 2021 10:11:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mRb3W-000337-D4 for guix-patches@gnu.org; Sat, 18 Sep 2021 10:11:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49942] [PATCH v2] gnu: Add shell-color-scripts. References: In-Reply-To: Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 18 Sep 2021 14:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49942 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos Cc: 49942@debbugs.gnu.org Received: via spool by 49942-submit@debbugs.gnu.org id=B49942.163197423911691 (code B ref 49942); Sat, 18 Sep 2021 14:11:02 +0000 Received: (at 49942) by debbugs.gnu.org; 18 Sep 2021 14:10:39 +0000 Received: from localhost ([127.0.0.1]:36353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRb35-00032R-AZ for submit@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 ) id 1mRb31-000327-Em for 49942@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= Message-ID: <8r1GXqISfNJpN9TzGPo7yBAkgpq6gthRXhZYLjQkU-kWQkNvdsDZ-uXem9rTlugAAVzJLZ9zzmeaBioQzUdY8GSN1o3Tu3pwlofd6ccxTD4=@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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" Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches From: phodina via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631974387; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=/jWvDv3ZNZQBGv/1vl+ygibVyUUyEYvpUSCc+mzOvrw=; b=G8x0Fycn+7DLsljMQG9XlmDzIA0JyDaZXKscMDynsTsa0eCtgOVE+n7DpazEJSMvr2xnJH 3b+1vhnfX91opfP7MqhOp3EPErZj3If9qEL76WSGmABDz1DtMlNVMru2bHDFhQJEX0MeiU 8HWMAi+U22j8d1lj99G1c8g8hLU0zqZU0qbE8GMyzfAEd4GDjXVlqv2OinfK6zjOyww/IN 5qQr2rSezliY8mKmxoMUAUkpc+t04/Xl4cfwkhoTaNN4B3wXKsIzksDw0NmCW59LryOMkk 0ftVywMxt36rf1q6xjXBVEZnoiEIXWTNENV5bJ4JqztlFNlj+6gBPBfc3/e48A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631974387; a=rsa-sha256; cv=none; b=dBRWkXeC8eknalLupxUfN/iEQ4n7ajTjUQ/XEpzzNYYtXUn8dqDSVrS7atSbgRIKaaITaD Ac5ahaBMeyXB82w8W8DBRZ2zKEdgPWm+JQvBph5DRBdaJUjCGZ9lsRjtEzHQkEFt6aLtBw iJM3Kq2PLXA6YbsD9QKacAe8DPqGx7CmO8qQ7KcLw/gUKo50+vx/0WY4R3SnwuUbuLYZ0X CTILvLhxCN0U1R211u8VkpkezPbNOLaLiZLhXttbYk72SeL/Hjhc5YVSkDMvRKHD41Gws9 LNxkRR5FCDazPsEvd+aq0+NMhlNbCKvYVhmODHWJGfd8CXbOQ1fsYmYLN8JfKg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=BQxqHtwR; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.39 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=BQxqHtwR; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 88F4AAA70 X-Spam-Score: -1.39 X-Migadu-Scanner: scn0.migadu.com X-TUID: 8Do1o+gVQujV 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 ;;; Copyright =C2=A9 2021 ikasero ;;; Copyright =C2=A9 2021 Brice Waegeneire +;;; Copyright =C2=A9 2021 Petr Hodina ;;; ;;; 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