From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yCxmBORrUGKCQgEAgWs5BA (envelope-from ) for ; Fri, 08 Apr 2022 19:07:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GMJWAeRrUGKLCAAAauVa8A (envelope-from ) for ; Fri, 08 Apr 2022 19:07:48 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 96E302D3F5 for ; Fri, 8 Apr 2022 19:07:47 +0200 (CEST) Received: from localhost ([::1]:37860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ncs5K-0000uC-RM for larch@yhetil.org; Fri, 08 Apr 2022 13:07:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53790) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncs2p-0005v1-SK for guix-patches@gnu.org; Fri, 08 Apr 2022 13:05:12 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41947) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ncs2p-0005g0-Jd for guix-patches@gnu.org; Fri, 08 Apr 2022 13:05:11 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ncs2p-0001eF-Eo for guix-patches@gnu.org; Fri, 08 Apr 2022 13:05:11 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54796] [PATCH v3 20/22] gnu: Add rebar3-git-vsn. Resent-From: Hartmut Goebel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 08 Apr 2022 17:05:11 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54796 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54796@debbugs.gnu.org Received: via spool by 54796-submit@debbugs.gnu.org id=B54796.16494374886134 (code B ref 54796); Fri, 08 Apr 2022 17:05:11 +0000 Received: (at 54796) by debbugs.gnu.org; 8 Apr 2022 17:04:48 +0000 Received: from localhost ([127.0.0.1]:35819 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncs2S-0001ar-IX for submit@debbugs.gnu.org; Fri, 08 Apr 2022 13:04:48 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:34789) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncs2R-0001a7-CD for 54796@debbugs.gnu.org; Fri, 08 Apr 2022 13:04:47 -0400 Received: from hermia.goebel-consult.de ([79.211.184.115]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1McYP5-1oFm9k37y1-00cuvf for <54796@debbugs.gnu.org>; Fri, 08 Apr 2022 19:04:41 +0200 Received: from lenashee.fritz.box (lenashee.goebel-consult.de [192.168.110.2]) by hermia.goebel-consult.de (Postfix) with ESMTP id 6404B66486; Fri, 8 Apr 2022 19:04:07 +0200 (CEST) From: Hartmut Goebel Date: Fri, 8 Apr 2022 19:03:53 +0200 Message-Id: X-Mailer: git-send-email 2.30.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:xFi0rCZeWj2EydWjMEY+fq2k4v1++mcBtQCLD9aGr1E0+aw46ea 34OhdNIUhBIX7HKI3URFC3cqDTS24j43kCix4AjY0xAWXhlcvXGQJ71RJF8OAUMwtHPK48z UYjSDVB1veJvEoqdTLVx7j/jKBbrNWDxd08WMD7LBtpqw8tZMMuqneeD9V4ATuxMSpQbih8 kHl/GW4IKZJRWAOCL/7sg== X-UI-Out-Filterresults: notjunk:1;V03:K0:nSU13q9jpMs=:nlCy/7/iqLCX2TTDl02FLu i/t9Q5kmCv3VFvf6noQNYo9N7DN+3P+zyXfKziik1FuuXpvvkbJhNVtxtf0LO2ftUgUUMs5PB 8bQleoiO1k9Dqp+jyH07Tc1e27QF4mIuCAM5D4JgJ2iVR9QdYqaC8RnEaDaW0vPDPKAPBU4f7 z9HId+WVIh3VUnXItGv3v83vi1zP/akB8KrYg3+r9Uk9fH58SXNAoN1v5MKJSqg1+g3a1Gr1q ZHaqoZMrTRc5kt+oEK5c8Ez9jKlRzb8J48eRVV6k1Juk08tOQ5ow+zM1mBYEJW0LskKDkC86P GXK0/TaM3J6G6LXemsCCKK3sCF7CPzKgazTVZKRX/p/jOpguDdZuxpBQLFE2xd6o6ExzgFVbJ +f9J2XzC8/cF2nwnCOfi272t4HQYwOoUNMV0QHXtMpCx40SPVi0VDmfT4OXrzscYZHpc/I3R/ iuFQeiUTcdFHP37MDahuZ3qAcUrAcKI+UKVsreKVngHkZh+xaGr65/5AA23HA8h4uxDFgZrox EJfZ4ONh5izKH2ELR+HCTG3KNkMDKlruar7gRIz2dbTONcW/5llruW+AG0NOjyOkhuBZB++Mi 79K0wKx5Gqn2t+zC6vPFYaEfjX2KnN/SuKUSYRGPvKi/jgVfLL0MvJm686oECLmgeB3lpOK2B yhVO+YCLItBeh70lbi4UWEDb5odlKeDFk7AjKvZ3ojeGYBDRCaDYUrqkdmkicSTUsOUdRsCv8 /4U5d3E2H/Xr4EGH 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1649437667; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=AquRn9CMKS6Ny2cGwqLqI+k2MqOVtrtnvbn6JV1/ysQ=; b=WuHxIjv6Mgnrwi8HVHU+kKAjM6te00OMwra0nBzxcdyi95nRRwDq8NSSUlJYS56Gg/qJ53 oN9DzhqGnT5qOTr+ytkTEpWWGrvdhDOkyOqIuYVzmSTGTl+s5vNnABjtivomL5sk32a/E2 Tn1Necsm6K5irVo9X2E1MzySenSlQtuI0Pd5Bza6mnd5aKYmkoOBkkefotWf6AUJsYNvj6 xD2jfkZCa3GBfqdOFIIWzcM5rWzk0Ms4qaW5qKmIOVQBaY4L35HtEx1ACdt+cVi1gOTQ0n dgmU3Mf3wY349bFxPYpdmVnL0hw37gIvYfkDyXyMj/Ikf49RQcU2D1AuWqnZzA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649437667; a=rsa-sha256; cv=none; b=gIPBLHLhPoTc5zEyzB8IuVZnx7mueyPHlmfxX5+2ew6iUiy2T0xccpY1u+K/5xycOFdA80 Aje/4KNEhJw++YBcgD9U+g0MzHAUlqBWdpwB29WLOrtqMFvfF9pQJ26BKHrofRlJw7pupy DPtD7RCd66i9aACpY7v/b5364+3KYhO48PvVTvKLGEvbP4icN5uwuhQQxnaB+Wb+H6i7VB tRfoAFhTKMbKdKWZaNNU8rwmQhooDGg9iOsvXOBzeECbz2+EW5q/l1ftPSLVDMekkRl7x5 aNPQZZisxrpCW0u8o/zwtEN/mmSnumQm3jXQ2on+3nMyrHgMIq0h9wgGs2NioA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.57 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 96E302D3F5 X-Spam-Score: -1.57 X-Migadu-Scanner: scn1.migadu.com X-TUID: qsuRYbIJFvMK * 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