From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 YBUAOtFrUGLJOQEAgWs5BA (envelope-from ) for ; Fri, 08 Apr 2022 19:07:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kD5yN9FrUGJ/HgEA9RJhRA (envelope-from ) for ; Fri, 08 Apr 2022 19:07:29 +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 7F1D73A027 for ; Fri, 8 Apr 2022 19:07:29 +0200 (CEST) Received: from localhost ([::1]:37216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ncs52-0000To-Md for larch@yhetil.org; Fri, 08 Apr 2022 13:07:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncs2o-0005uu-TN for guix-patches@gnu.org; Fri, 08 Apr 2022 13:05:12 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41945) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ncs2o-0005fm-KU for guix-patches@gnu.org; Fri, 08 Apr 2022 13:05:10 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ncs2o-0001dw-Fl for guix-patches@gnu.org; Fri, 08 Apr 2022 13:05:10 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54796] [PATCH v3 18/22] gnu: Add rebar3. Resent-From: Hartmut Goebel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 08 Apr 2022 17:05:10 +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.16494374846102 (code B ref 54796); Fri, 08 Apr 2022 17:05:10 +0000 Received: (at 54796) by debbugs.gnu.org; 8 Apr 2022 17:04:44 +0000 Received: from localhost ([127.0.0.1]:35813 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncs2O-0001aK-1u for submit@debbugs.gnu.org; Fri, 08 Apr 2022 13:04:44 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:38235) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncs2M-0001ZY-LV for 54796@debbugs.gnu.org; Fri, 08 Apr 2022 13:04:43 -0400 Received: from hermia.goebel-consult.de ([79.211.184.115]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MBDvU-1npTkR0EnO-00Cgwr for <54796@debbugs.gnu.org>; Fri, 08 Apr 2022 19:04:37 +0200 Received: from lenashee.fritz.box (lenashee.goebel-consult.de [192.168.110.2]) by hermia.goebel-consult.de (Postfix) with ESMTP id 46D9E66484; Fri, 8 Apr 2022 19:04:07 +0200 (CEST) From: Hartmut Goebel Date: Fri, 8 Apr 2022 19:03:51 +0200 Message-Id: <9e3e90c9240599c212e5f8025e0967f9894b668f.1649436566.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:1e0T7+iJbVtVGxnoIqQ2pSvD/odAPPQjLlX/Qo+gM+lPWIbbWUh s+lcMwGep1JKeLzvvT8ctBG2JKm8d92TlxDK6oKzx2tP6QScJfRL8lnLm1fL7B0zS0Vbf1x ZHlrc7RW1OFHAqOs1KY+OUEb2qiQd3dxVffmwelmmO6+LQWW3JMyEbHpzJkyg3EKOK45bpi q2KOCmdRj0+1ub6KN5dIQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:wuZqBVl5pbs=:vYJ1sfNHUgmO9+nLLSGmwU 7vlbVNlAVHNYttADbQMSAQkc94LeGw0Ch+Thd46SERNUrhF+ispx1CmNsz+kUNQEs5hQIvOSs +9yl8RmcOety2xQhVmyYNdSY6bgpVr0LS7KKhsnnlSF2kYuThh5HyDmDgF9nHdRmn70TQqlf9 jnmtAt84kHcmiE3d4u2sbGm7H5/98S91v6fktkv/GQ9/N3UKbnn4SoS8W810gPMVM91Pvh51/ rHXA1q6ebWNU15zKirqWsq3VuyKHa1HzOQz3z43BoSYtUOu0PD6l01LBtg1o7kh8r0qQAkZsU I74RlRoLOLchDlDQuwuO5ay3ehYi/m2BvL2yphwLH8ulPQ6DcSVYO6YPr8aiqj9XM+24uZFxX rZTvPnpmPuVCjuvpbVggSz7atHSutX2hvY5Me24SA4Qk8ldzA4etdPQMEnoFiTVIJo1qbTFtL OpTfeE1AltpSFbAgygp+kU2+omajByLQSzkGNLwoyYyQ09caN4JLuXet709ETedKwP8Q/beLC 7HDcTRsFbRGnaPJXFRz4pAZiC1ouj7gFn22absuSqBxJZfO4DknSEQ3H7FJoY9Qxw8yPOsC7N omVIE/y+nPwaZaDRoIjQMOurrb3RgtaMrvYkpmFiceshidC2I3EejK619ngWHHYlXumlnF1WQ yco7FvoQmFpAARrGvyRS293GbiJaKk0XDh+TA7/xy2Gu3zH5hL6nrnvRJpv/8YaJDM5XZw3lH EwtSE73t1XaAnyIM 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=1649437649; 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=L7I8bN70v/+GWuJNG2QJm87mwcQ/hHUI80GRyWOsMqM=; b=SrUd7R7pRf10qfKIYQ3xMq+VTk2iXidLtfTXPuoTaa2EmwEq2AGbgKjaCL/eIyL8fGepBX zvLMl+ocdF3OtulKGrDjETnGvphtUoJYFXuxlyNVqMAESneKCk9dX4MZ8ol3v4I+3gZ51K YZRiBr6W2kx/l7uLzskXzEuTj15HlCyozU0b51mG5UiNyMMAMgq9g52MTx7cZA2tLPsZol CWNHCAI0Mc12h036c5ylc7oUYpITBFGFXIi1XbKuy83RxXWYOwJxhpq/pWzMVKv5zLhn1w Fq09N+s46GYL9Qhiumrd8RkUPW6yYPp93RGI71/M9rmDGQUctTm44b0BV7kBVg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649437649; a=rsa-sha256; cv=none; b=JkWa9oyUtO1aUCEyBNoGjh0Q3howfR3I1JidM9n3AQG3C6HHym9cnIcOEyKDj3k26FNjHT 58svq/N+CWTbiuWGWZ3BYuqw4UmewyAkCHDUtpWwPaIZ6kjW5lu6sLI8xGthA4tqpS12Hr d6SDsxju/3fswWBbRrEgKD5lH6CwG/FML8XkEHi3o00Ad0opeYbWEBIUaR91YzmnT6RUp+ CWduocNC00aJ95Mxd+jXfQFsuSDQAlGrRvVA3i+V4OMFLYl48oX9unVbVrF2L34upvVBK+ j3vJj3fzBxSVMoMMcwl/M2Jz8rAW2OnDT63uvHH/t97Qba5UzdAKg2Ug8cW50A== 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: -2.07 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: 7F1D73A027 X-Spam-Score: -2.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: y5ch7YPjaIj7 * gnu/packages/erlang.scm (rebar3): New variable. --- gnu/packages/erlang.scm | 76 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/gnu/packages/erlang.scm b/gnu/packages/erlang.scm index 256b622fa3..35681e9a73 100644 --- a/gnu/packages/erlang.scm +++ b/gnu/packages/erlang.scm @@ -549,3 +549,79 @@ a well configured release directory.") (description "This package provides SSL verification functions for Erlang.") (license license:expat))) + +(define-public rebar3 + (package + (name "rebar3") + (version "3.18.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/erlang/rebar3") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "09648hzc2mnjwf9klm20cg4hb5rn2xv2gmzcg98ffv37p5yfl327")))) + (build-system gnu-build-system) + ;; TODO: remove vendored modules, install man-page, install lib(?) + (arguments + `(#:phases + (modify-phases %standard-phases + (delete 'bootstrap) + (add-after 'unpack 'unpack-dependency-sources + (lambda* (#:key inputs #:allow-other-keys) + (for-each + (lambda (pkgname) + (let* ((src (string-append pkgname "-source")) + (input (assoc-ref inputs src)) + (checkouts-dir (string-append "_checkouts/" pkgname)) + (lib-dir (string-append "_build/default/lib/" pkgname))) + (mkdir-p checkouts-dir) + (invoke "tar" "-xf" input "-C" checkouts-dir) + (invoke "tar" "-xzf" + (pk (string-append checkouts-dir "/contents.tar.gz")) + "-C" checkouts-dir) + (mkdir-p lib-dir) + (copy-recursively checkouts-dir lib-dir))) + (list "bbmustache" "certifi" "cf" "cth_readable" + "eunit_formatters" "getopt" "hex_core" "erlware_commons" + "parse_trans" "relx" "ssl_verify_fun" "providers")))) + (delete 'configure) + (replace 'build + (lambda _ + (setenv "HOME" (getcwd)) + (invoke "./bootstrap"))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out"))) + (install-file "rebar3" (string-append out "/bin"))))) + (delete 'check)))) + (native-inputs + (list erlang)) + (inputs + `(("bbmustache-source" ,(package-source erlang-bbmustache)) + ("certifi-source" ,(package-source erlang-certifi)) + ("cf-source" ,(package-source erlang-cf)) + ("cth_readable-source" ,(package-source erlang-cth-readable)) + ("erlware_commons-source" ,(package-source erlang-erlware-commons)) + ("eunit_formatters-source" ,(package-source erlang-eunit-formatters)) + ("getopt-source" ,(package-source erlang-getopt)) + ("hex_core-source" ,(package-source erlang-hex-core)) + ("parse_trans-source" ,(package-source erlang-parse-trans)) + ("relx-source" ,(package-source erlang-relx)) + ("ssl_verify_fun-source" ,(package-source erlang-ssl-verify-fun)) + ("providers-source" ,(package-source erlang-providers)))) + (home-page "https://www.rebar3.org/") + (synopsis "Sophisticated build-tool for Erlang projects that follows OTP +principles") + (description "@code{rebar3} is an Erlang build tool that makes it easy to +compile and test Erlang applications, port drivers and releases. + +@code{rebar3} is a self-contained Erlang script, so it's easy to distribute or +even embed directly in a project. Where possible, rebar uses standard +Erlang/OTP conventions for project structures, thus minimizing the amount of +build configuration work. @code{rebar3} also provides dependency management, +enabling application writers to easily re-use common libraries from a variety +of locations (git, hg, etc).") + (license license:asl2.0))) -- 2.30.2