guix-patches
[Top][All Lists]
Advanced

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

[bug#50578] [PATCH] gnu: Add minipro


From: Bruno Victal
Subject: [bug#50578] [PATCH] gnu: Add minipro
Date: Mon, 3 Apr 2023 12:17:10 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1

On 2023-04-02 23:13, Thomas Albers Raviola via Guix-patches via wrote:
> 
> I fail to see the purpose of G-Expressions over normal backticks for the
> build phases as no file-like or package is being used inside of them. I
> am missing something?

They allow for a separation between host and build code.
There's a post at <https://guix.gnu.org/blog/2021/the-big-change/> and
a chapter in the manual which explains them in further detail.

One bonus point is that for outputs, instead of writing:

--8<---------------cut here---------------start------------->8---
#~(let ((out (assoc-ref %outputs "out")))
    (list (string-append "VERSION=" #$version)
          (string-append "PREFIX=" out)
--8<---------------cut here---------------end--------------->8---

you can directly write this without the assoc-ref machinery:

--8<---------------cut here---------------start------------->8---
#~(list (string-append "VERSION=" #$version)
        (string-append "PREFIX=" #$output)
--8<---------------cut here---------------end--------------->8---


HTH!


Cheers,
Bruno





reply via email to

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