guix-patches
[Top][All Lists]
Advanced

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

[bug#50960] [PATCH v2 01/11] packages: Add 'package-development-inputs'.


From: Ludovic Courtès
Subject: [bug#50960] [PATCH v2 01/11] packages: Add 'package-development-inputs'.
Date: Tue, 12 Oct 2021 11:54:24 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

zimoun <zimon.toutoune@gmail.com> skribis:

>> +(define* (package-development-inputs package
>> +                                     #:optional (system (%current-system))
>> +                                     #:key target)
>> +  "Return the list of inputs required by PACKAGE for development purposes on
>> +SYSTEM.  When TARGET is true, return the inputs needed to cross-compile
>> +PACKAGE from SYSTEM to TRIPLET, where TRIPLET is a triplet such as
>> +\"aarch64-linux-gnu\"."
>> +  (bag-transitive-inputs (package->bag package system target)))
>
> [...]
>
>>    ;; Remove non-package inputs such as origin records.
>>    (filter-map input->manifest-entry
>> -              (bag-transitive-inputs (package->bag package))))
>> +              (package-development-inputs package system)))
>
> Why ’system’ is used here?  Why is not simply?
>
>  +              (package-development-inputs package)))
>
> because ’system’ should be not defined, or I do not know where IIUC.

It’s an optional parameter above.

Ludo’.





reply via email to

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