From: Hartmut Goebel <h.goebel@crazy-compilers.com>
To: 54796@debbugs.gnu.org
Subject: [bug#54796] [PATCH v4 19/22] gnu: Add rebar3.
Date: Sun, 10 Apr 2022 20:57:17 +0200 [thread overview]
Message-ID: <120da897838074daac150b733b46c2716f24da2c.1649616716.git.h.goebel@crazy-compilers.com> (raw)
In-Reply-To: <cover.1649616716.git.h.goebel@crazy-compilers.com>
* gnu/packages/erlang.scm (rebar3): New variable.
---
gnu/packages/erlang.scm | 76 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 76 insertions(+)
diff --git a/gnu/packages/erlang.scm b/gnu/packages/erlang.scm
index 18ea933333..e8f43e7de2 100644
--- a/gnu/packages/erlang.scm
+++ b/gnu/packages/erlang.scm
@@ -554,3 +554,79 @@ a well configured release directory.")
(description "This package provides SSL verification functions for
Erlang.")
(license license:expat)))
+
+(define-public rebar3
+ (package
+ (name "rebar3")
+ (version "3.18.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/erlang/rebar3")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "09648hzc2mnjwf9klm20cg4hb5rn2xv2gmzcg98ffv37p5yfl327"))))
+ (build-system gnu-build-system)
+ ;; TODO: remove vendored modules, install man-page, install lib(?)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (delete 'bootstrap)
+ (add-after 'unpack 'unpack-dependency-sources
+ (lambda* (#:key inputs #:allow-other-keys)
+ (for-each
+ (lambda (pkgname)
+ (let* ((src (string-append pkgname "-source"))
+ (input (assoc-ref inputs src))
+ (checkouts-dir (string-append "_checkouts/" pkgname))
+ (lib-dir (string-append "_build/default/lib/" pkgname)))
+ (mkdir-p checkouts-dir)
+ (invoke "tar" "-xf" input "-C" checkouts-dir)
+ (invoke "tar" "-xzf"
+ (pk (string-append checkouts-dir "/contents.tar.gz"))
+ "-C" checkouts-dir)
+ (mkdir-p lib-dir)
+ (copy-recursively checkouts-dir lib-dir)))
+ (list "bbmustache" "certifi" "cf" "cth_readable"
+ "eunit_formatters" "getopt" "hex_core" "erlware_commons"
+ "parse_trans" "relx" "ssl_verify_fun" "providers"))))
+ (delete 'configure)
+ (replace 'build
+ (lambda _
+ (setenv "HOME" (getcwd))
+ (invoke "./bootstrap")))
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out")))
+ (install-file "rebar3" (string-append out "/bin")))))
+ (delete 'check))))
+ (native-inputs
+ (list erlang))
+ (inputs
+ `(("bbmustache-source" ,(package-source erlang-bbmustache))
+ ("certifi-source" ,(package-source erlang-certifi))
+ ("cf-source" ,(package-source erlang-cf))
+ ("cth_readable-source" ,(package-source erlang-cth-readable))
+ ("erlware_commons-source" ,(package-source erlang-erlware-commons))
+ ("eunit_formatters-source" ,(package-source erlang-eunit-formatters))
+ ("getopt-source" ,(package-source erlang-getopt))
+ ("hex_core-source" ,(package-source erlang-hex-core))
+ ("parse_trans-source" ,(package-source erlang-parse-trans))
+ ("relx-source" ,(package-source erlang-relx))
+ ("ssl_verify_fun-source" ,(package-source erlang-ssl-verify-fun))
+ ("providers-source" ,(package-source erlang-providers))))
+ (home-page "https://www.rebar3.org/")
+ (synopsis "Sophisticated build-tool for Erlang projects that follows OTP
+principles")
+ (description "@code{rebar3} is an Erlang build tool that makes it easy to
+compile and test Erlang applications, port drivers and releases.
+
+@code{rebar3} is a self-contained Erlang script, so it's easy to distribute or
+even embed directly in a project. Where possible, rebar uses standard
+Erlang/OTP conventions for project structures, thus minimizing the amount of
+build configuration work. @code{rebar3} also provides dependency management,
+enabling application writers to easily re-use common libraries from a variety
+of locations (git, hg, etc).")
+ (license license:asl2.0)))
--
2.30.2
next prev parent reply other threads:[~2022-04-10 19:00 UTC|newest]
Thread overview: 98+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-08 17:01 [bug#54796] [PATCH v3 00/22] Add importer for hex.pm and rebar3 build-system for Erlang Hartmut Goebel
2022-04-08 17:03 ` [bug#54796] [PATCH v3 01/22] import: Add hex.pm importer Hartmut Goebel
2022-04-09 11:52 ` Maxime Devos
2022-04-09 16:31 ` Hartmut Goebel
2022-04-09 11:53 ` Maxime Devos
2022-04-09 11:55 ` Maxime Devos
2022-04-09 16:50 ` Hartmut Goebel
2022-04-09 11:56 ` Maxime Devos
2022-04-09 11:58 ` Maxime Devos
2022-04-09 16:01 ` Hartmut Goebel
2022-04-09 11:59 ` Maxime Devos
2022-04-10 11:22 ` Hartmut Goebel
2022-04-09 12:07 ` Maxime Devos
2022-04-10 10:36 ` Hartmut Goebel
2022-04-10 12:26 ` Maxime Devos
2022-04-08 17:03 ` [bug#54796] [PATCH v3 02/22] gnu: Add erlang-cf Hartmut Goebel
2022-04-08 17:03 ` [bug#54796] [PATCH v3 03/22] gnu: Add erlang-certifi Hartmut Goebel
2022-04-09 11:39 ` Maxime Devos
2022-04-10 10:27 ` Hartmut Goebel
2022-04-08 17:03 ` [bug#54796] [PATCH v3 04/22] gnu: Add erlang-erlware-commons Hartmut Goebel
2022-04-09 10:58 ` Maxime Devos
2022-04-09 15:33 ` Hartmut Goebel
2022-04-08 17:03 ` [bug#54796] [PATCH v3 05/22] gnu: Add erlang-cth-readable Hartmut Goebel
2022-04-08 17:03 ` [bug#54796] [PATCH v3 06/22] gnu: Add erlang-bbmustache Hartmut Goebel
2022-04-08 17:03 ` [bug#54796] [PATCH v3 07/22] gnu: Add erlang-getopt Hartmut Goebel
2022-04-08 17:03 ` [bug#54796] [PATCH v3 08/22] gnu: Add erlang-eunit-formatters Hartmut Goebel
2022-04-08 17:03 ` [bug#54796] [PATCH v3 09/22] gnu: Add erlang-providers Hartmut Goebel
2022-04-08 17:03 ` [bug#54796] [PATCH v3 10/22] gnu: Add erlang-parse-trans Hartmut Goebel
2022-04-09 11:41 ` Maxime Devos
2022-04-09 15:19 ` Hartmut Goebel
2022-04-08 17:03 ` [bug#54796] [PATCH v3 11/22] gnu: Add erlang-hex-core Hartmut Goebel
2022-04-08 17:03 ` [bug#54796] [PATCH v3 12/22] gnu: Add erlang-ssl-verify-fun Hartmut Goebel
2022-04-08 17:03 ` [bug#54796] [PATCH v3 13/22] gnu: Add erlang-relx Hartmut Goebel
2022-04-09 11:43 ` Maxime Devos
2022-04-09 15:32 ` Hartmut Goebel
2022-04-09 11:45 ` Maxime Devos
2022-04-09 15:18 ` Hartmut Goebel
2022-04-08 17:03 ` [bug#54796] [PATCH v3 14/22] gnu: Add erlang-edown Hartmut Goebel
2022-04-08 17:03 ` [bug#54796] [PATCH v3 15/22] gnu: Add erlang-jsone Hartmut Goebel
2022-04-08 17:03 ` [bug#54796] [PATCH v3 16/22] gnu: Add erlang-proper Hartmut Goebel
2022-04-08 17:03 ` [bug#54796] [PATCH v3 17/22] gnu: Add erlang-covertool Hartmut Goebel
2022-04-09 11:48 ` Maxime Devos
2022-04-09 15:40 ` Hartmut Goebel
2022-04-08 17:03 ` [bug#54796] [PATCH v3 18/22] gnu: Add rebar3 Hartmut Goebel
2022-04-08 17:03 ` [bug#54796] [PATCH v3 19/22] gnu: Add rebar3-raw-deps Hartmut Goebel
2022-04-09 11:49 ` Maxime Devos
2022-04-09 15:50 ` Hartmut Goebel
2022-04-08 17:03 ` [bug#54796] [PATCH v3 20/22] gnu: Add rebar3-git-vsn Hartmut Goebel
2022-04-08 17:03 ` [bug#54796] [PATCH v3 21/22] gnu: Add rebar3-proper Hartmut Goebel
2022-04-08 17:03 ` [bug#54796] [PATCH v3 22/22] build-system: Add 'rebar3-build-system' Hartmut Goebel
2022-04-09 13:16 ` Maxime Devos
2022-04-09 16:04 ` Hartmut Goebel
2022-04-09 20:56 ` Maxime Devos
2022-04-10 18:49 ` Hartmut Goebel
2022-04-09 13:19 ` Maxime Devos
2022-04-09 16:28 ` Hartmut Goebel
2022-04-09 17:57 ` Maxime Devos
2022-04-10 18:47 ` Hartmut Goebel
2022-04-10 18:57 ` [bug#54796] [PATCH v4 00/22] Add importer for hex.pm and rebar3 build-system for Erlang Hartmut Goebel
2022-04-10 18:56 ` [bug#54796] [PATCH v4 01/22] import: Add hex.pm importer Hartmut Goebel
2022-04-29 13:13 ` [bug#54796] [PATCH v3 00/22] Add importer for hex.pm and rebar3 build-system for Erlang Ludovic Courtès
2022-05-05 12:40 ` Hartmut Goebel
2022-05-05 20:48 ` Ludovic Courtès
2022-05-05 21:06 ` Hartmut Goebel
2022-04-10 18:57 ` [bug#54796] [PATCH v4 02/22] build-system: Add 'rebar3-build-system' Hartmut Goebel
2022-04-29 13:06 ` [bug#54796] [PATCH v3 00/22] Add importer for hex.pm and rebar3 build-system for Erlang Ludovic Courtès
2022-05-05 12:46 ` Hartmut Goebel
2022-04-10 18:57 ` [bug#54796] [PATCH v4 03/22] gnu: Add erlang-cf Hartmut Goebel
2022-04-10 18:57 ` [bug#54796] [PATCH v4 04/22] gnu: Add erlang-certifi Hartmut Goebel
2022-04-10 18:57 ` [bug#54796] [PATCH v4 05/22] gnu: Add erlang-erlware-commons Hartmut Goebel
2022-04-10 18:57 ` [bug#54796] [PATCH v4 06/22] gnu: Add erlang-cth-readable Hartmut Goebel
2022-04-10 18:57 ` [bug#54796] [PATCH v4 07/22] gnu: Add erlang-bbmustache Hartmut Goebel
2022-04-10 18:57 ` [bug#54796] [PATCH v4 08/22] gnu: Add erlang-getopt Hartmut Goebel
2022-04-10 18:57 ` [bug#54796] [PATCH v4 09/22] gnu: Add erlang-eunit-formatters Hartmut Goebel
2022-04-10 18:57 ` [bug#54796] [PATCH v4 10/22] gnu: Add erlang-providers Hartmut Goebel
2022-04-10 18:57 ` [bug#54796] [PATCH v4 11/22] gnu: Add erlang-parse-trans Hartmut Goebel
2022-04-10 18:57 ` [bug#54796] [PATCH v4 12/22] gnu: Add erlang-hex-core Hartmut Goebel
2022-04-10 18:57 ` [bug#54796] [PATCH v4 13/22] gnu: Add erlang-ssl-verify-fun Hartmut Goebel
2022-04-10 18:57 ` [bug#54796] [PATCH v4 14/22] gnu: Add erlang-relx Hartmut Goebel
2022-04-10 18:57 ` [bug#54796] [PATCH v4 15/22] gnu: Add erlang-edown Hartmut Goebel
2022-04-10 18:57 ` [bug#54796] [PATCH v4 16/22] gnu: Add erlang-jsone Hartmut Goebel
2022-04-10 18:57 ` [bug#54796] [PATCH v4 17/22] gnu: Add erlang-proper Hartmut Goebel
2022-04-10 18:57 ` [bug#54796] [PATCH v4 18/22] gnu: Add erlang-covertool Hartmut Goebel
2022-04-10 18:57 ` Hartmut Goebel [this message]
2022-04-29 13:16 ` [bug#54796] [PATCH v3 00/22] Add importer for hex.pm and rebar3 build-system for Erlang Ludovic Courtès
2022-05-06 14:58 ` Hartmut Goebel
2022-05-09 8:25 ` Ludovic Courtès
2022-05-09 10:15 ` Hartmut Goebel
2022-04-10 18:57 ` [bug#54796] [PATCH v4 20/22] gnu: Add rebar3-raw-deps Hartmut Goebel
2022-04-10 18:57 ` [bug#54796] [PATCH v4 21/22] gnu: Add rebar3-git-vsn Hartmut Goebel
2022-04-10 18:57 ` [bug#54796] [PATCH v4 22/22] gnu: Add rebar3-proper Hartmut Goebel
2022-04-11 12:04 ` [bug#54796] [PATCH v4 00/22] Add importer for hex.pm and rebar3 build-system for Erlang Maxime Devos
2022-05-05 12:56 ` Hartmut Goebel
2022-04-29 13:18 ` [bug#54796] [PATCH v3 " Ludovic Courtès
2022-04-29 14:33 ` Maxime Devos
2022-06-14 21:29 ` Ludovic Courtès
2022-06-15 9:20 ` bug#54796: [PATCH v4 " Hartmut Goebel
[not found] ` <1a53c4c0-3516-e337-2e51-ff45ee44cd8d@crazy-compilers.com>
2022-06-17 15:25 ` [bug#54796] " Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=120da897838074daac150b733b46c2716f24da2c.1649616716.git.h.goebel@crazy-compilers.com \
--to=h.goebel@crazy-compilers.com \
--cc=54796@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.