Hi Nicolas,

I’m very late to the party.  Well, I’ve lost the track of the
discussion.  Is it still on the table?

On Thu, 12 Feb 2026 at 10:39, Nicolas Graves <[email protected]> wrote:

> 1) pisemky proposes the following style
> ```
>     (properties '((commit . "1354b63eb7120e5d0d40855c18d69e413a636ef2")
>                   (revision . "1")))
>     (version (git-version "0"
>                           (assoc-ref properties 'revision)
>                           (assoc-ref properties 'commit)))
> ```

[...]

> 2) lilyp proposes
> ```
> (package 
>   (shorthands
>     (revision "0")
>     (commit "…"))
>   (name "le-package")
>   (version (git-version "1.0" revision commit))
>   …)
> ```

Well, as I suggested in [1] I’d be in favor about properties because it
adds nothing.  However, although I’ve not carefully checked, my
understanding is that storing the ’commit’ and ’revision’ inside
’properties’, then it does not change the derivation.  So the two-lines
update will not trigger a rebuild of the package.

Therefore, maybe adding another package field as ’shorthands’ might be
the direction to go.

Cheers,
simon

1: https://codeberg.org/guix/guix/pulls/1571#issuecomment-6703138 

Reply via email to