[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
21/23: gnu: Add erlang-rebar3-git-vsn.
From: |
guix-commits |
Subject: |
21/23: gnu: Add erlang-rebar3-git-vsn. |
Date: |
Thu, 7 Oct 2021 16:53:25 -0400 (EDT) |
htgoebel pushed a commit to branch master
in repository guix.
commit 0402da848b60bfd4f1c66768122208739f9cfa6d
Author: Hartmut Goebel <h.goebel@crazy-compilers.com>
AuthorDate: Fri Jul 3 18:31:35 2020 +0200
gnu: Add erlang-rebar3-git-vsn.
* gnu/packages/erlang.scm (erlang-rebar3-git-vsn): New variable.
---
gnu/packages/erlang.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/erlang.scm b/gnu/packages/erlang.scm
index 6003bec..9255ede 100644
--- a/gnu/packages/erlang.scm
+++ b/gnu/packages/erlang.scm
@@ -38,6 +38,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))
@@ -511,6 +512,37 @@ 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
+ `(;; Running the tests require binary artifact (tar-file containing
+ ;; samples git repos)
+ #:tests? #f
+ #: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
+a git checkout.")
+ (license license:expat)))
+
(define-public erlang-rebar3-raw-deps
(package
(name "erlang-rebar3-raw-deps")
- 12/23: gnu: Add erlang-parse-trans., (continued)
- 12/23: gnu: Add erlang-parse-trans., guix-commits, 2021/10/07
- 14/23: gnu: Add erlang-ssl-verify-fun., guix-commits, 2021/10/07
- 15/23: gnu: Add erlang-relx., guix-commits, 2021/10/07
- 16/23: gnu: Add rebar3., guix-commits, 2021/10/07
- 17/23: gnu: Add erlang-edown., guix-commits, 2021/10/07
- 18/23: gnu: Add erlang-jsone., guix-commits, 2021/10/07
- 19/23: gnu: Add erlang-proper., guix-commits, 2021/10/07
- 23/23: gnu: Add erlang-covertool., guix-commits, 2021/10/07
- 20/23: gnu: Add erlang-rebar3-raw-deps., guix-commits, 2021/10/07
- 22/23: gnu: Add erlang-rebar3-proper., guix-commits, 2021/10/07
- 21/23: gnu: Add erlang-rebar3-git-vsn.,
guix-commits <=