[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#54796] [PATCH v3 20/22] gnu: Add rebar3-git-vsn.
From: |
Hartmut Goebel |
Subject: |
[bug#54796] [PATCH v3 20/22] gnu: Add rebar3-git-vsn. |
Date: |
Fri, 8 Apr 2022 19:03:53 +0200 |
* gnu/packages/erlang.scm (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 8bd7ba3739..acd7c76aa1 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))
@@ -642,3 +643,34 @@ of locations (git, hg, etc).")
(description "This plugin adds support for \"raw\" dependencies to
rebar3.")
(license license:expat)))
+
+(define-public rebar3-git-vsn
+ (package
+ (name "rebar3-git-vsn")
+ (version "1.1.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (hexpm-uri "rebar3_git_vsn" version))
+ (sha256
+ (base32 "1dfz56034pa25axly9vqdzv3phkn8ll0qwrkws96pbgcprhky1hx"))))
+ (build-system rebar3-build-system)
+ (inputs
+ (list git))
+ (arguments
+ `(;; Running the tests require binary artifact (tar-file containing
+ ;; samples git repos) TODO: remove these from the source
+ #: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)))
--
2.30.2
- [bug#54796] [PATCH v3 01/22] import: Add hex.pm importer., (continued)
[bug#54796] [PATCH v3 02/22] gnu: Add erlang-cf., Hartmut Goebel, 2022/04/08
[bug#54796] [PATCH v3 08/22] gnu: Add erlang-eunit-formatters., Hartmut Goebel, 2022/04/08
[bug#54796] [PATCH v3 11/22] gnu: Add erlang-hex-core., Hartmut Goebel, 2022/04/08
[bug#54796] [PATCH v3 17/22] gnu: Add erlang-covertool., Hartmut Goebel, 2022/04/08
[bug#54796] [PATCH v3 20/22] gnu: Add rebar3-git-vsn.,
Hartmut Goebel <=
[bug#54796] [PATCH v4 00/22] Add importer for hex.pm and rebar3 build-system for Erlang, Hartmut Goebel, 2022/04/10
- [bug#54796] [PATCH v4 02/22] build-system: Add 'rebar3-build-system'., Hartmut Goebel, 2022/04/10
- [bug#54796] [PATCH v4 01/22] import: Add hex.pm importer., Hartmut Goebel, 2022/04/10
- [bug#54796] [PATCH v4 03/22] gnu: Add erlang-cf., Hartmut Goebel, 2022/04/10
- [bug#54796] [PATCH v4 04/22] gnu: Add erlang-certifi., Hartmut Goebel, 2022/04/10
- [bug#54796] [PATCH v4 05/22] gnu: Add erlang-erlware-commons., Hartmut Goebel, 2022/04/10
- [bug#54796] [PATCH v4 06/22] gnu: Add erlang-cth-readable., Hartmut Goebel, 2022/04/10
- [bug#54796] [PATCH v4 08/22] gnu: Add erlang-getopt., Hartmut Goebel, 2022/04/10