[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#42180] [bug#51061] [PATCH v2 03/23] guix: Add rebar3 build-system.
From: |
Maxime Devos |
Subject: |
[bug#42180] [bug#51061] [PATCH v2 03/23] guix: Add rebar3 build-system. |
Date: |
Wed, 06 Oct 2021 20:56:17 +0200 |
User-agent: |
Evolution 3.34.2 |
Hartmut Goebel schreef op wo 06-10-2021 om 17:20 [+0200]:
> +(define* (lower name
> + #:key source inputs native-inputs outputs system target
> + (rebar (default-rebar3))
> + (erlang (default-erlang))
> + #:allow-other-keys
> + #:rest arguments)
> + "Return a bag for NAME."
> + (define private-keywords
> + '(#:source #:target #:rebar #:inputs #:native-inputs))
> +
> + (and (not target) ;XXX: no cross-compilation
> + (bag
> + (name name)
> + (system system)
> + (host-inputs `(,@(if source
> + `(("source" ,source))
> + '())
> + ,@inputs
> + ;; Keep the standard inputs of 'gnu-build-system'.
> + ,@(standard-packages)))
(standard-packages) contains packages like gcc, coreutils, bash, ...,
which should be in build-inputs. Not that it matters much here,
as this procedure doesn't support cross-compilation.
> + (build-inputs `(("rebar" ,rebar)
> + ("erlang" ,erlang) ;; for escriptize
> + ,@native-inputs))
> + (outputs outputs)
> + (build rebar3-build)
> + (arguments (strip-keyword-arguments private-keywords arguments)))))
Greetings,
Maxime.
signature.asc
Description: This is a digitally signed message part
- [bug#51061] [PATCH v2 01/23] guix: Add extracting-download., Hartmut Goebel, 2021/10/06
- [bug#42180] [PATCH v2 02/23] guix: Add importer for hex.pm., Hartmut Goebel, 2021/10/06
- [bug#42180] [PATCH v2 03/23] guix: Add rebar3 build-system., Hartmut Goebel, 2021/10/06
- [bug#42180] [bug#51061] [PATCH v2 03/23] guix: Add rebar3 build-system.,
Maxime Devos <=
- [bug#42180] [bug#51061] [PATCH v2 03/23] guix: Add rebar3 build-system., Hartmut Goebel, 2021/10/06
- [bug#42180] [bug#51061] [PATCH v2 03/23] guix: Add rebar3 build-system., Maxime Devos, 2021/10/06
- [bug#42180] [bug#51061] [PATCH v2 03/23] guix: Add rebar3 build-system., Hartmut Goebel, 2021/10/06
- [bug#51061] [PATCH v2 03/23] guix: Add rebar3 build-system., Maxime Devos, 2021/10/06
- [bug#42180] [bug#51061] [PATCH v2 03/23] guix: Add rebar3 build-system., Hartmut Goebel, 2021/10/07
- [bug#51061] [PATCH v2 01/23] guix: Add extracting-download., Ludovic Courtès, 2021/10/07
- [bug#42180] bug#51061: [PATCH v2 01/23] guix: Add extracting-download., Hartmut Goebel, 2021/10/08
- [bug#42180] bug#51061: [PATCH v2 01/23] guix: Add extracting-download., Ludovic Courtès, 2021/10/09
- [bug#42180] bug#51061: [PATCH v2 01/23] guix: Add extracting-download., Hartmut Goebel, 2021/10/08
[bug#42180] bug#51061: [PATCH v2 01/23] guix: Add extracting-download., Ludovic Courtès, 2021/10/07