From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60245) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e18yD-0005Ae-9X for guix-patches@gnu.org; Sun, 08 Oct 2017 06:38:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e18yA-0007jC-6G for guix-patches@gnu.org; Sun, 08 Oct 2017 06:38:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:46828) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e18yA-0007j4-1c for guix-patches@gnu.org; Sun, 08 Oct 2017 06:38:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e18y9-00045u-Ow for guix-patches@gnu.org; Sun, 08 Oct 2017 06:38:01 -0400 Subject: [bug#28744] guile-colorized Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60087) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e18x6-00054u-7J for guix-patches@gnu.org; Sun, 08 Oct 2017 06:36:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e18x3-0007BS-3E for guix-patches@gnu.org; Sun, 08 Oct 2017 06:36:56 -0400 Received: from aibo.runbox.com ([91.220.196.211]:55142) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e18x2-0007Ak-RY for guix-patches@gnu.org; Sun, 08 Oct 2017 06:36:53 -0400 Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1e18x0-0000hm-Hy for guix-patches@gnu.org; Sun, 08 Oct 2017 12:36:50 +0200 Received: from tor-exit-relay-0.anonymizing-proxy.digitalcourage.de ([31.185.104.20] helo=localhost) by mailfront10.runbox.com with esmtpsa (uid:892961 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1e18wq-0003Lc-4R for guix-patches@gnu.org; Sun, 08 Oct 2017 12:36:40 +0200 Date: Sun, 8 Oct 2017 10:36:37 +0000 From: ng0 Message-ID: <20171008103637.6vwpp5s75ixvbemz@abyayala> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="wq3goqhzskepc4g7" Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 28744@debbugs.gnu.org --wq3goqhzskepc4g7 Content-Type: multipart/mixed; boundary="vp2ximesjx52bdww" Content-Disposition: inline --vp2ximesjx52bdww Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Colors for your REPL. In the light of recent github mismatches: should this use the git checkout instead? --=20 ng0 GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588 GnuPG: https://dist.krosos.org/dist/keys/ https://www.infotropique.org https://krosos.org --vp2ximesjx52bdww Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0001-gnu-Add-guile-colorized.patch" Content-Transfer-Encoding: quoted-printable =46rom d5160f7e3ca160dd6ee9336770fdf2d6dc7b279f Mon Sep 17 00:00:00 2001 =46rom: ng0 Date: Sun, 8 Oct 2017 10:30:39 +0000 Subject: [PATCH] gnu: Add guile-colorized. * gnu/packages/guile.scm (guile-colorized): New variable. --- gnu/packages/guile.scm | 49 ++++++++++++++++++++++++++++++++++++++++++++++= +++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm index 65d252617..caecd2b6b 100644 --- a/gnu/packages/guile.scm +++ b/gnu/packages/guile.scm @@ -14,6 +14,7 @@ ;;; Copyright =C2=A9 2017 David Thompson ;;; Copyright =C2=A9 2017 Mathieu Othacehe ;;; Copyright =C2=A9 2017 Theodoros Foradis +;;; Copyright =C2=A9 2017 ng0 ;;; ;;; This file is part of GNU Guix. ;;; @@ -1966,4 +1967,52 @@ HTML (via SXML) or any other format for rendering.") It has a nice, simple s-expression based syntax.") (license license:lgpl3+))) =20 +(define-public guile-colorized + (package + (name "guile-colorized") + (version "0.1") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/NalaGinrut/guile-col= orized/" + "archive/v" version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "16xhc3an6aglnca8xl3mvgi8hsqzqn68vsl5ga4bz8bvbap5fn4p")))) + (build-system gnu-build-system) + (arguments + `(#:modules ((system base compile) + ,@%gnu-build-system-modules) + #:tests? #f ;No tests included + #:phases + (modify-phases %standard-phases + (delete 'configure) ;No configure script + (replace 'install + (lambda* (#:key outputs inputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (module-dir (string-append out "/share/guile/site/2.2"= )) + (language-dir (string-append module-dir "/ice-9")) + (guild (string-append (assoc-ref inputs "guile") + "/bin/guild"))) + ;; The original 'make install' is too primitive. + (mkdir-p module-dir) + (mkdir-p language-dir) + + ;; copy the source + (copy-file "ice-9/colorized.scm" + (string-append language-dir "/colorized.scm")) + + ;; compile to the destination + (compile-file "ice-9/colorized.scm" + #:output-file (string-append + language-dir "/colorized.go")) + #t)))))) + (inputs + `(("guile" ,guile-2.2))) + (home-page "https://github.com/NalaGinrut/guile-colorized") + (synopsis "Colorized REPL for Guile") + (description + "Guile-colorized provides you with a colorized REPL for GNU Guile.") + (license license:gpl3+))) + ;;; guile.scm ends here --=20 2.14.2 --vp2ximesjx52bdww-- --wq3goqhzskepc4g7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEqIyK3RKYKNfqwC5S4i+bv+40hYgFAlnZ/7QACgkQ4i+bv+40 hYjEBA/7BbVoJAvflDxPS5mqhjyo3o78/PpaiYEhHEPPsZp6aa+hBgKAnYp1s3dA vzAb29qFZ0pT8ETUBkMfBO+HiouJYVLHZEID8f5vUNbxMVF81o1wwkDOWZK4br2K JP7PvGbDuoPlTPgGpUORqImYm59XW1Ja/zHIc+Ske9JU7IrofaavLwZR45QCz5bf kwkGgLDTsvyXh9dZEIUfVXJa+g9NgTS7Ktz6HRxO+YqG0jLgF1IJgWoUPUV213CC 6+ujTyoTO/MFqIbmhPq/JM/tJZsP3YQuJLn7sPLzgPHOLmcibBClhYE55rIMGfK0 8dyG39OcepriktPaZciTH0/PcCE9bPvPgPSyJ4Knk14YQ3BuYsivYfRxucGgxuc/ xjvNOay29ftSX4CitVcmQzEHHHypUljpP03GKkvccrcNkfiUgbDOIniBQ5t7uQrG q6qfgYCG4+6dBsvEsHO11TnTHDZbsTNu/P7jwc9R4tYjU9cJzkUb/a81NJ6Nh6rY 3pahghjUJugWIb+y7yi/3Okr3iUFix2dhUguU01q3VWdxl6jFI7tIu2Ot66Zsefk D4poeSlATsbUeC9GiOhEVBSegUO5AVXWzd+RAw7ed9QotDSCxKs6ektiD1E21uHh 1Qn6+sCrAOKhUZJygyotnwzv+t3tc3ILRYvQkhFc1lgOKBGeeUo= =IuUC -----END PGP SIGNATURE----- --wq3goqhzskepc4g7--