Subject: Re: [bug#28744] guile-colorized

From: [email-masked] (Ludovic Courtès)
Date: Sun, 08 Oct 2017 21:51:08 +0200

Hi!

ng0 <[email-masked]> skribis:

> Colors for your REPL.
>
> In the light of recent github mismatches:
> should this use the git checkout instead?

I think it’s (still) fine this way.

> From d5160f7e3ca160dd6ee9336770fdf2d6dc7b279f Mon Sep 17 00:00:00 2001
> From: ng0 <[email-masked]>
> Date: Sun, 8 Oct 2017 10:30:39 +0000
> Subject: [PATCH] gnu: Add guile-colorized.
>
> * gnu/packages/guile.scm (guile-colorized): New variable.

Pushed with the slight simplification below.

Thank you!

Ludo’.

diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index caecd2b6b..e32ca84a7 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -1995,12 +1995,9 @@ It has a nice, simple s-expression based syntax.")
                     (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"))
+               (install-file "ice-9/colorized.scm" language-dir)
 
                ;; compile to the destination
                (compile-file "ice-9/colorized.scm"