[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
22/23: gnu: Add rebar3-git-vsn.
From: |
guix-commits |
Subject: |
22/23: gnu: Add rebar3-git-vsn. |
Date: |
Wed, 15 Jun 2022 05:05:35 -0400 (EDT) |
htgoebel pushed a commit to branch master
in repository guix.
commit ffc18b87f9d34ef44a977af8c83d103ae5c56050
Author: Hartmut Goebel <h.goebel@crazy-compilers.com>
AuthorDate: Fri Jul 3 18:31:35 2020 +0200
gnu: Add rebar3-git-vsn.
* 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 76e386baf2..5b93902f61 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))
@@ -647,3 +648,34 @@ of locations (git, hg, etc).")
(description "This plugin provides support for handling non-OTP
applications as a dependent libraries.")
(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 rebar-build-system)
+ (inputs
+ (list git-minimal/fixed))
+ (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-minimal")))
+ (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)))
- 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 <=
- 20/23: gnu: Add rebar3., guix-commits, 2022/06/15
- 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