From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oOQCGR0pU2JPQgAAgWs5BA (envelope-from ) for ; Sun, 10 Apr 2022 20:59:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wGp9ER0pU2LixgAAG6o9tA (envelope-from ) for ; Sun, 10 Apr 2022 20:59:41 +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 DD1FB30425 for ; Sun, 10 Apr 2022 20:59:40 +0200 (CEST) Received: from localhost ([::1]:41146 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndcmi-0006S8-44 for larch@yhetil.org; Sun, 10 Apr 2022 14:59:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57686) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndcm7-0005rf-VQ for guix-patches@gnu.org; Sun, 10 Apr 2022 14:59:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47606) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ndcm7-0006cN-Mi for guix-patches@gnu.org; Sun, 10 Apr 2022 14:59:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ndcm7-0005mQ-Lf for guix-patches@gnu.org; Sun, 10 Apr 2022 14:59:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54796] [PATCH v4 21/22] gnu: Add rebar3-git-vsn. Resent-From: Hartmut Goebel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 10 Apr 2022 18:59:03 +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.164961709822117 (code B ref 54796); Sun, 10 Apr 2022 18:59:03 +0000 Received: (at 54796) by debbugs.gnu.org; 10 Apr 2022 18:58:18 +0000 Received: from localhost ([127.0.0.1]:41495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndclN-0005kf-SP for submit@debbugs.gnu.org; Sun, 10 Apr 2022 14:58:18 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:51143) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndclM-0005jt-Bp for 54796@debbugs.gnu.org; Sun, 10 Apr 2022 14:58:16 -0400 Received: from hermia.goebel-consult.de ([87.176.137.15]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MKbTo-1nPOCU2hB6-00Ktun for <54796@debbugs.gnu.org>; Sun, 10 Apr 2022 20:58:10 +0200 Received: from thisbe.goebel-consult.de (hermia.goebel-consult.de [192.168.110.7]) by hermia.goebel-consult.de (Postfix) with ESMTP id DEDB96648D; Sun, 10 Apr 2022 20:57:33 +0200 (CEST) From: Hartmut Goebel Date: Sun, 10 Apr 2022 20:57:19 +0200 Message-Id: <349cec253c9e68e1836cc85d0d435271a3fa191f.1649616716.git.h.goebel@crazy-compilers.com> 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:svT/oX0CmsOLN4KzU6sffPqmOTGLPsLbxBEShye9Bb90EXvHXr3 5VXs5QFRrZwo5Q8OtCqVUQJYhnIY2lg4GeLZumBiwWuApUV8jMB1t8tdoq8By5eynN1Ebkx dpxnBXLl7ke7SxHGki+WqdRdeQP4Fya1f15DX/GhJJm6GT6RlwaAALKj+KY2pnqghIFDMuH Dyn/gfnGJSD3nLGY3abCw== X-UI-Out-Filterresults: notjunk:1;V03:K0:lKfg9Y2ugpg=:wM3hlOfm+8h6Ax1HvsjJbH HIX8X0BCdL/EeND5Nl9gXOtgXmKhnYBwMrNyyJRYIxGsOnVIWZz4bsuo34Ml9pQeq6haMjUBb FASjuAlxOL+Lp0Oehhg70nM7bArQwz1lGZuHJn1tLQVpIRbs4RQ1vGUH9Mj/9EFwU13Rmc8Gf 2TQZwpF5xnwSEi6WUE5P1nw/5BtpGST3YoETBk/Jud4Nbc3LMKK2qdlQ7aQt+JEB5tsc15Prf HaRgbFIvAkU9X03PEkY2MMtZhcuEaeD9bCDov5Z0yz4yRouvgcrgrKlUCTxiXo3Sf21xAB+vv XR7iasLVhDooRB0PKjXgRevDHqGQ9HSIsbqZL3bvGCBehduWbhLXvdIcO1KDmH8KVaYxtjHxh 9N6zn46DdzGGnvRZvo/MH6Ddjh/Pd/u1ps5hUFIruovaussaawcjVcCWHyLBWJPfrxuCQzkXV hphUDKzoLEJqw0/zPTIKrFLp0oIvO0d7p8JokisNexfLFpVp1vO5hmClB0FzI5UdKRnANajls aAVMF4F6zehXy9+GH4IQSqOWy6dKSwnYB2Ojsz1g6Qe3dI8G0r476bVMG5gmY18ZyJRKdX3wF kJqdyWtMUOW2jNI0oNjdLA6t0P3OalpfvNuRjWhY2tpmrSiBLqovgKV7SJWW6Q/MLCn/2hwpr BH/SrOG0PllT2JzZgp6L1KwCNcBVk5ZeKrK5VdFEF/QeitM69hg9MZyJwPa9/guL77xA4yPVj cqID78ZL0V4pmj/q 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=1649617180; 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=tC02AbukGOGICb8t7h62s+Tb1lW4OzGBO+SYIa5+pHg=; b=N7SQ02FnOvA/a0p1VkZzF/L7CBtR4XtstOLsepZg8QP/UfnSaMpjyVngwPTFnTPxbF/7ua JxgHFhjLsGAwnIgkmqGSWjo2GlXKD5lyrDSPqZSFqVkz45hSDB8GY9+cI+iBTNUuRc0ObL IVOroNR3bjz+fsIcue1wiGFwRsovnsBLX1HDOZv/1WIOA0qQX2kOr7kZ3ur4G/P8aDBIaD AgdEuilMw2iBhzYUTOyBcJGhomfPlBLoFAA/TLOLLHXbOjiG2/WmDK0F1xEhL+49FxKc4O mgHpVd3coDT8vPSsqTrghLEtxbLu4BtU8niJtzZOUu1nNQn3lKd2PKhSO7RZEg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649617180; a=rsa-sha256; cv=none; b=HxnNi8dWlueTmXlY3zwuDtiysIS8qgoNS3Fy+cvWX8jg5ZAF7426/i57dNDVqOa0Qug51I nk3uniuQagh0TAJKnbc/wc3u50rYUZDKTHre8vt/wCiZb736Pu59xIXyi9vjwpawYEqy4F n/gTKLq3IoJosoi0NU1AaghMyCMncYXcoZPF4IkynAG3trBO5fqsUm/Z9zodjDsxA6fUGc uvslk1Xyu5OpBvDvNNQcWFyAzyQCboWJ+IU7UNpWHhZISS7430GLnoQ916ugGh3PBNmcs3 RY73ucG1GPa9oZiTAZsc1LE17cIsHEaqQ6u+sgkx2Dq+YkgWGnJJqGX8yZlXnA== 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: DD1FB30425 X-Spam-Score: -1.57 X-Migadu-Scanner: scn1.migadu.com X-TUID: s3OSPyRb9lkW * 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 e5331a37a5..c6cffd9906 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 rebar3-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))) -- 2.30.2