guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#74849] [PATCH 3/6] import: utils: Move guix-name to (guix utils).


From: Ludovic Courtès
Subject: [bug#74849] [PATCH 3/6] import: utils: Move guix-name to (guix utils).
Date: Tue, 17 Dec 2024 14:52:26 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Herman Rimm <herman@rimm.ee> skribis:

> * guix/import/elpa.scm: Import (guix utils).
> * guix/import/texlive.scm (guix-name): Remove.
> * guix/import/utils.scm (guix-name): Move to ...
> * guix/utils.scm (guix-name): ... here.
>
> Change-Id: If56a452f64ed06c8bb06a96a283a5067cb54d602

LGTM!  I let Vagrant & co. validate the bootloader side of things.

> +(define (guix-name prefix name)
> +  "Return a Guix package name for a given package name."
> +  (string-append prefix (string-map (match-lambda
> +                                      (#\_ #\-)
> +                                      (#\. #\-)
> +                                      (chr (char-downcase chr)))
> +                                    name)))

If it’s “promoted” to (guix utils), perhaps we could also rename it to
‘downstream-package-name’, but that can come in a separate commit.

Ludo’.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]