From patchwork Wed Oct 6 15:20:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hartmut Goebel X-Patchwork-Id: 33657 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A559927BBE3; Wed, 6 Oct 2021 16:50:05 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 633BE27BBE1 for ; Wed, 6 Oct 2021 16:50:05 +0100 (BST) Received: from localhost ([::1]:42808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mY9BD-0002pq-13 for patchwork@mira.cbaines.net; Wed, 06 Oct 2021 11:50:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48338) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mY8kJ-00058f-Bb for guix-patches@gnu.org; Wed, 06 Oct 2021 11:22:15 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33778) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mY8kJ-0000q9-2q for guix-patches@gnu.org; Wed, 06 Oct 2021 11:22:15 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mY8kI-0005Fq-V9 for guix-patches@gnu.org; Wed, 06 Oct 2021 11:22:14 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42180] [PATCH v2 21/23] gnu: Add erlang-rebar3-git-vsn. Resent-From: Hartmut Goebel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 06 Oct 2021 15:22:14 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42180 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42180@debbugs.gnu.org X-Debbugs-Original-To: 42180@debbugs.gnu.org, guix-patches@gnu.org Received: via spool by 42180-submit@debbugs.gnu.org id=B42180.163353371019890 (code B ref 42180); Wed, 06 Oct 2021 15:22:14 +0000 Received: (at 42180) by debbugs.gnu.org; 6 Oct 2021 15:21:50 +0000 Received: from localhost ([127.0.0.1]:45276 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mY8jt-0005Ae-IV for submit@debbugs.gnu.org; Wed, 06 Oct 2021 11:21:49 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:54260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mY8jo-00058i-AN for 42180@debbugs.gnu.org; Wed, 06 Oct 2021 11:21:44 -0400 Received: from frontend02.mail.m-online.net (unknown [192.168.8.183]) by mail-out.m-online.net (Postfix) with ESMTP id 4HPdTg5vyMz1sCwl; Wed, 6 Oct 2021 17:21:43 +0200 (CEST) Received: from localhost (dynscan2.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 4HPdTg5pQLz1qqkD; Wed, 6 Oct 2021 17:21:43 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan2.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id T-6ts7i8aJ2N; Wed, 6 Oct 2021 17:21:42 +0200 (CEST) Received: from hermia.goebel-consult.de (ppp-188-174-52-121.dynamic.mnet-online.de [188.174.52.121]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Wed, 6 Oct 2021 17:21:42 +0200 (CEST) Received: from thisbe.goebel-consult.de (hermia.goebel-consult.de [192.168.110.7]) by hermia.goebel-consult.de (Postfix) with ESMTP id ADEA361486; Wed, 6 Oct 2021 17:20:45 +0200 (CEST) From: Hartmut Goebel Date: Wed, 6 Oct 2021 17:20:19 +0200 Message-Id: X-Mailer: git-send-email 2.30.2 In-Reply-To: <626e4718c45c95a7278460f132bd38e08835e9f4.1633533541.git.h.goebel@crazy-compilers.com> References: <626e4718c45c95a7278460f132bd38e08835e9f4.1633533541.git.h.goebel@crazy-compilers.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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 6003bec251..0e8a277970 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,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 +a git checkout.") + (license license:expat))) + (define-public erlang-rebar3-raw-deps (package (name "erlang-rebar3-raw-deps")