From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GPn8Cq3lRWGkhQAAgWs5BA (envelope-from ) for ; Sat, 18 Sep 2021 15:12:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id oNu0Bq3lRWGPRgAA1q6Kng (envelope-from ) for ; Sat, 18 Sep 2021 13:12:13 +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 AA9F77387 for ; Sat, 18 Sep 2021 15:12:12 +0200 (CEST) Received: from localhost ([::1]:35458 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRa8Z-0001Bv-R5 for larch@yhetil.org; Sat, 18 Sep 2021 09:12:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRa6W-000075-2q for guix-patches@gnu.org; Sat, 18 Sep 2021 09:10:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50523) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRa6U-0006dy-Fh for guix-patches@gnu.org; Sat, 18 Sep 2021 09:10:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mRa6U-0000pT-75 for guix-patches@gnu.org; Sat, 18 Sep 2021 09:10:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49942] [PATCH] gnu: Add shell-color-scripts Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 18 Sep 2021 13:10: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: phodina , 49942@debbugs.gnu.org Received: via spool by 49942-submit@debbugs.gnu.org id=B49942.16319705613130 (code B ref 49942); Sat, 18 Sep 2021 13:10:02 +0000 Received: (at 49942) by debbugs.gnu.org; 18 Sep 2021 13:09:21 +0000 Received: from localhost ([127.0.0.1]:33836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRa5p-0000oQ-6v for submit@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 ) id 1mRa5l-0000oE-LG for 49942@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@telenet.be> From: Maxime Devos Date: Sat, 18 Sep 2021 15:09:07 +0200 In-Reply-To: References: 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-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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631970732; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: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=91iaajeZke+wmz4/56QSrBHKAmYpK7V53jrbx3rpWQQ=; b=Jrhpxcc/Lg86bjZ6D010fd9U0FK4uo3BCAb9ZOrgbaC90l/qrJOlhloKr2HqhLOPt/1TDS RiBvxcAhZFRm90yAzUPjL24V0Vk/ZRse6uu0EjNE9TTBUbeCQfOzhIpRWZ8LGh5q/XILyg FeZnVX17buMtqrzP4HpOjL/lETHUA9xgVcJFPRrPILnK45fLjusIr2ONkDlzTIYhEKNWYv LwDcRK4w8Enn3cgeRlqxP+YPqQi4CFURIITOoY/IpNYa054sAYjD7bceysT42va5LYAYer u37R0T9F8f6icCuBY5Mpatgp/1aNEJiwjffSvv3GvaEJganosxGSjmCU9A3ITg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631970732; a=rsa-sha256; cv=none; b=cO8fRWmCSVILNneT5CrfioGbWgg1RpscIz+9Z29pX8xTBjVX6R0mX8fyy1pv32huMK7rPf v0jVFZqyETQUb6tOhmGiZb5n4Qm3fT2EgIPpLXimpsvlFaRSHXBxAu4w9kwTpJ+Jou4m9e RBS2b2CVgkoyhuPNaBCGq24XJzCkAHnNuUn7dO5DtqiJQ8ArOVYoON2/DXd8f2qUDElPze fX35hHvaBOKTUcTgyXzJA7shxMWj3KBoxrYT3Irw5PCBKWQuNnuopBDsjdfp+OKQfD8UGk nd8E9nnoLi5zkaZ/FR441DcFLGsiD21s/7S9aXcN+ahjSeYQpOlPlA6UHkW2BA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=ZA8okmqk; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); 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.89 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=ZA8okmqk; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); 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: AA9F77387 X-Spam-Score: -1.89 X-Migadu-Scanner: scn0.migadu.com X-TUID: tuS4MTgGSwqv --=-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--