guix-devel
[Top][All Lists]
Advanced

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

Syntax for package inputs


From: Ludovic Courtès
Subject: Syntax for package inputs
Date: Mon, 18 May 2015 21:28:30 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

David Thompson <address@hidden> skribis:

> Ludovic Courtès <address@hidden> writes:
>
>> (FWIW I’m not fond of the `(,gcc-toolchain "debug") notation that we
>> also use in packages, but it has the advantage of being concise.)
>
> Do you have plans to introduce a better notation?  G-exps?

No concrete plan yet.  A remote possibility might be to indeed rely more
on gexps and maybe get rid of input labels, like:

  (define foo
    (package
      ;; ...
      (inputs (list guile-2.0 gtk+ (gexp-input glib "bin")))))

but this introduces other challenges in particular wrt. package
customizations.  So, we’ll see.

However, for new APIs, I find it usually better to use the above gexp
style rather than the current package-input style.

Ludo’.



reply via email to

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