[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#50960] [PATCH v2 01/11] packages: Add 'package-development-inputs'.
From: |
zimoun |
Subject: |
[bug#50960] [PATCH v2 01/11] packages: Add 'package-development-inputs'. |
Date: |
Tue, 12 Oct 2021 13:52:45 +0200 |
On Tue, 12 Oct 2021 at 11:54, Ludovic Courtès <ludo@gnu.org> wrote:
> 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.
Sorry if I miss, to me, ’system’ is not bounded when calling:
--8<---------------cut here---------------start------------->8---
;; Remove non-package inputs such as origin records.
(filter-map input->manifest-entry
- (bag-transitive-inputs (package->bag package))))
+ (package-development-inputs package system)))
--8<---------------cut here---------------end--------------->8---
and it seems bounded to something:
;;; (#<procedure system (#:optional _)>)”
and I do not know from where this definition comes.
Maybe I misread what optional means. From my understanding, it means:
(package-development-inputs foo)
will use ’(%current-system)’ as default. And it also means that:
(package-development-inputs foo system)
where ’system’ is bounded to something and from my understanding this
something is not necessary ’(%current-system)’.
Again, sorry if I misread something.
Cheers,
simon
- [bug#50960] [PATCH 00/10] Add 'guix shell' to subsume 'guix environment', (continued)
[bug#50960] [PATCH v2 07/11] environment: Skip derivation computation when '--profile' is used., Ludovic Courtès, 2021/10/11
[bug#50960] [PATCH v2 04/11] DRAFT shell: By default load the local 'guix.scm' or 'manifest.scm' file., Ludovic Courtès, 2021/10/11
[bug#50960] [PATCH v2 06/11] environment: Add tests for '--profile'., Ludovic Courtès, 2021/10/11
[bug#50960] [PATCH v2 10/11] cache: Gracefully handle non-existent cache., Ludovic Courtès, 2021/10/11
[bug#50960] [PATCH v2 08/11] environment: Do not connect to the daemon when '--profile' is used., Ludovic Courtès, 2021/10/11
[bug#50960] [PATCH v2 05/11] DRAFT shell: Honor in ~/.config/guix/shell-authorized-directories., Ludovic Courtès, 2021/10/11
[bug#50960] [PATCH v2 09/11] environment: Autoload some modules., Ludovic Courtès, 2021/10/11
[bug#50960] [PATCH v2 03/11] Add 'guix shell'., Ludovic Courtès, 2021/10/11
[bug#50960] [PATCH v2 11/11] shell: Maintain a profile cache., Ludovic Courtès, 2021/10/11