[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#42180] [PATCH 21/22] gnu: Add erlang-rebar3-git-vsn.
From: |
Hartmut Goebel |
Subject: |
[bug#42180] [PATCH 21/22] gnu: Add erlang-rebar3-git-vsn. |
Date: |
Fri, 3 Jul 2020 19:43:46 +0200 |
* gnu/packages/erlang.scm (erlang-rebar3-git-vsn): New variable.
---
gnu/packages/erlang.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/erlang.scm b/gnu/packages/erlang.scm
index 9c267250a0..e927f5db11 100644
--- a/gnu/packages/erlang.scm
+++ b/gnu/packages/erlang.scm
@@ -37,6 +37,7 @@
#:use-module (gnu packages gl)
#:use-module (gnu packages ncurses)
#:use-module (gnu packages perl)
+ #:use-module (gnu packages version-control)
#:use-module (gnu packages tls)
#:use-module (gnu packages wxwidgets))
@@ -503,6 +504,35 @@ testing of stateful systems.")
(description "This package provides an Erlang providers library.")
(license license:asl2.0)))
+(define-public erlang-rebar3-git-vsn
+ (package
+ (name "erlang-rebar3-git-vsn")
+ (version "1.1.1")
+ (source
+ (origin
+ (method hexpm-fetch)
+ (uri (hexpm-uri "rebar3_git_vsn" version))
+ (sha256
+ (base32 "1ra4xjyc40r97aqb8aq2rll1v8wkf9jyisnbk34xdqcgv9s9iw7d"))))
+ (build-system rebar3-build-system)
+ (inputs
+ `(("git" ,git)))
+ (arguments
+ `(#:tests? #f ;; depends on rebar TODO: remove this dependency
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-path
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((git (assoc-ref inputs "git")))
+ (substitute* "src/rebar3_git_vsn.erl"
+ (("rebar_utils:sh\\(\"git " _)
+ (string-append "rebar_utils:sh(\"" git "/bin/git ")))))))))
+ (home-page "https://github.com/soranoba/rebar3_git_vsn")
+ (synopsis "rebar3 plugin for generating the version from git")
+ (description "This plugin adds support for generating the version from
+git.")
+ (license license:expat)))
+
(define-public erlang-rebar3-raw-deps
(package
(name "erlang-rebar3-raw-deps")
--
2.21.3
- [bug#42180] [PATCH 09/22] gnu: Add erlang-getopt., (continued)
- [bug#42180] [PATCH 09/22] gnu: Add erlang-getopt., Hartmut Goebel, 2020/07/03
- [bug#42180] [PATCH 03/22] guix: Add rebar3 build-system., Hartmut Goebel, 2020/07/03
- [bug#42180] [PATCH 11/22] gnu: Add erlang-providers., Hartmut Goebel, 2020/07/03
- [bug#42180] [PATCH 14/22] gnu: Add erlang-ssl-verify-fun., Hartmut Goebel, 2020/07/03
- [bug#42180] [PATCH 15/22] gnu: Add erlang-relx., Hartmut Goebel, 2020/07/03
- [bug#42180] [PATCH 16/22] gnu: Add rebar3., Hartmut Goebel, 2020/07/03
- [bug#42180] [PATCH 17/22] gnu: Add erlang-edown., Hartmut Goebel, 2020/07/03
- [bug#42180] [PATCH 18/22] gnu: Add erlang-jsone., Hartmut Goebel, 2020/07/03
- [bug#42180] [PATCH 20/22] gnu: Add erlang-rebar3-raw-deps., Hartmut Goebel, 2020/07/03
- [bug#42180] [PATCH 19/22] gnu: Add erlang-proper., Hartmut Goebel, 2020/07/03
- [bug#42180] [PATCH 21/22] gnu: Add erlang-rebar3-git-vsn.,
Hartmut Goebel <=
- [bug#42180] [PATCH 22/22] gnu: Add erlang-rebar3-proper., Hartmut Goebel, 2020/07/03