guix-devel
[Top][All Lists]
Advanced

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

Re: ‘snippet’ in <origin>


From: Ludovic Courtès
Subject: Re: ‘snippet’ in <origin>
Date: Fri, 08 Nov 2013 22:15:14 +0100
User-agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux)

address@hidden (Ludovic Courtès) skribis:

> Now, I think we could replace ‘snippet’ by ‘phases’.  That field would
> contain an <origin-phases> object with exactly 4 fields: unpack, patch,
> user (default to #f), and repack.
>
> In the LAPACK case, we’d do:
>
>   (origin
>     (uri ...)
>     (sha256 ...)
>     (phases (origin-phases (inherit %standard-origin-phases)
>               (user '(for-each delete-file ...)))))
>
> I think that would address your problem.  The set of phases would be
> fixed, though, unlike what ‘gnu-build-system’ does, but I think that’s
> fine.

The problem with that is that it makes the semantics less obvious: the
‘phases’ field is only used when it has a ‘user’ value other than #f, or
when the origin has a ‘patches’ field.

It seems that it needs more thought.

Ludo’.



reply via email to

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