[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20/23: gnu: Add rebar3.
From: |
guix-commits |
Subject: |
20/23: gnu: Add rebar3. |
Date: |
Wed, 15 Jun 2022 05:05:35 -0400 (EDT) |
htgoebel pushed a commit to branch master
in repository guix.
commit 00eea05ab893d79a9f48877cd0774e1f010d6bba
Author: Hartmut Goebel <h.goebel@crazy-compilers.com>
AuthorDate: Sat May 23 22:06:22 2020 +0200
gnu: Add rebar3.
* 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 f48b84c476..3350005277 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://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)))
- branch master updated (8a04ac4b2f -> 9cccf6490d), guix-commits, 2022/06/15
- 04/23: gnu: Add erlang-cf., guix-commits, 2022/06/15
- 07/23: gnu: Add erlang-cth-readable., guix-commits, 2022/06/15
- 17/23: gnu: Add erlang-jsone., guix-commits, 2022/06/15
- 03/23: import: Add hex.pm importer., guix-commits, 2022/06/15
- 13/23: gnu: Add erlang-hex-core., guix-commits, 2022/06/15
- 23/23: gnu: Add rebar3-proper., guix-commits, 2022/06/15
- 22/23: gnu: Add rebar3-git-vsn., guix-commits, 2022/06/15
- 20/23: gnu: Add rebar3.,
guix-commits <=
- 15/23: gnu: Add erlang-relx., guix-commits, 2022/06/15
- 11/23: gnu: Add erlang-providers., guix-commits, 2022/06/15
- 02/23: build-system: Add 'rebar-build-system'., guix-commits, 2022/06/15
- 01/23: Revert "Add (guix extracting-download).", guix-commits, 2022/06/15
- 05/23: gnu: Add erlang-certifi., guix-commits, 2022/06/15
- 06/23: gnu: Add erlang-erlware-commons., guix-commits, 2022/06/15
- 09/23: gnu: Add erlang-getopt., guix-commits, 2022/06/15
- 18/23: gnu: Add erlang-proper., guix-commits, 2022/06/15
- 14/23: gnu: Add erlang-ssl-verify-fun., guix-commits, 2022/06/15
- 19/23: gnu: Add erlang-covertool., guix-commits, 2022/06/15