From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2H3CMnHFXWHIjAAAgWs5BA (envelope-from ) for ; Wed, 06 Oct 2021 17:49:05 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id SKdaLnHFXWEhVAAAbx9fmQ (envelope-from ) for ; Wed, 06 Oct 2021 15:49:05 +0000 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 4FAC31C819 for ; Wed, 6 Oct 2021 17:49:05 +0200 (CEST) Received: from localhost ([::1]:40174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mY9AF-0000zn-Vn for larch@yhetil.org; Wed, 06 Oct 2021 11:49:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48294) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mY8kE-0004rq-Bk for guix-patches@gnu.org; Wed, 06 Oct 2021 11:22:10 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33766) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mY8kE-0000kW-21 for guix-patches@gnu.org; Wed, 06 Oct 2021 11:22:10 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mY8kD-0005EN-UM for guix-patches@gnu.org; Wed, 06 Oct 2021 11:22:09 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51061] [PATCH v2 16/23] gnu: Add rebar3. Resent-From: Hartmut Goebel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 06 Oct 2021 15:22:09 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51061 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42180@debbugs.gnu.org, 51061@debbugs.gnu.org X-Debbugs-Original-To: 42180@debbugs.gnu.org, guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163353371019897 (code B ref -1); Wed, 06 Oct 2021 15:22:09 +0000 Received: (at submit) by debbugs.gnu.org; 6 Oct 2021 15:21:50 +0000 Received: from localhost ([127.0.0.1]:45278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mY8jt-0005Al-S2 for submit@debbugs.gnu.org; Wed, 06 Oct 2021 11:21:50 -0400 Received: from lists.gnu.org ([209.51.188.17]:58394) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mY8jp-000590-Bt for submit@debbugs.gnu.org; Wed, 06 Oct 2021 11:21:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48064) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mY8jo-0003c3-Rj for guix-patches@gnu.org; Wed, 06 Oct 2021 11:21:45 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:38209) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mY8jZ-0000A5-8V for guix-patches@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 4HPdTJ1bQSz1qwyD; Wed, 6 Oct 2021 17:21:24 +0200 (CEST) Received: from localhost (dynscan2.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 4HPdTJ1PnTz1qqkD; Wed, 6 Oct 2021 17:21:24 +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 ZATC1DYYuISt; Wed, 6 Oct 2021 17:21:22 +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:22 +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 D478D6147F; Wed, 6 Oct 2021 17:20:42 +0200 (CEST) From: Hartmut Goebel Date: Wed, 6 Oct 2021 17:20:14 +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 Content-Transfer-Encoding: 8bit Received-SPF: none client-ip=212.18.0.9; envelope-from=h.goebel@crazy-compilers.com; helo=mail-out.m-online.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633535345; 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=YKjD8tQuyu6kVBjPjeAL0cJMPKKmnrx993AvpebJWuE=; b=SaktyHE4w2egJBLnvNlqwY0h8a/epmVIsYCyp6Oi5pagxlau54LNiko2AdIbuBdliSiFH6 1TCtkdzIPrGiq38uC1WmcDYUWtvA/xs2p1BQgM45LumEiPxnxO5aaiGK7THkxT/bMTjUWS rMr0aa+8h9mMpZ/57XvBjiCEFYI5tHFMXDQs6kPEcvxxTHsw0DkcroTA3u6GcWEoqwGTEZ aJg9MpkkCMyMe3lv4lSeCg6EAUmtVtrf0oGg/x1bXiQF5xWaJt0RYrqDo6zt9UDT5HBCrv Jy9hgRFL9nVRC9t9k7jc2ULDCAamJYyymqtkpaCqaP8SpKuTxPPMpzThtYuUSw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633535345; a=rsa-sha256; cv=none; b=rBbHSG2Je/hTmNa98dW8Y3PKkXeTPWWwLLblPDLZTT1gDbYJGR5YOU+bkVhixzE2G/XeYm gYV8yf/lp+06HfnVOeXPYGZD/JSgeV9iOsRBSMyQyeK6VXnYhia3rAJMhxwSDwIwJJ3wuw hPt6rw975XokfrdigCoLc9bXRH497/EslazGspMNCIjsn6BEkTCDyyojqZS8oKrDZ0nPdm PYsgF3Lq+hELLU9tMcSmwvHXppiN/iu5OwypCObFZyEtJ3vvlmq7QmlLnbxKtHJ9i9ziAq l81HXUQWTK622o9oegdW4hZSAU/RxH7tqVO0LG2oiAOSZ5X85NtHg55SvHLtJQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 2.58 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 4FAC31C819 X-Spam-Score: 2.58 X-Migadu-Scanner: scn0.migadu.com X-TUID: 2DvUy8S/cgra * gnu/packages/erlang.scm (rebar3): New variable. --- gnu/packages/erlang.scm | 74 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/gnu/packages/erlang.scm b/gnu/packages/erlang.scm index fcb7ba65b5..c424fb1420 100644 --- a/gnu/packages/erlang.scm +++ b/gnu/packages/erlang.scm @@ -487,3 +487,77 @@ 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.17.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/erlang/rebar3.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "02sk3whrbprzlih4pgcsd6ngmassfjfmkz21gwvb7mq64pib40k6")))) + (build-system gnu-build-system) + (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" "-xzf" input "-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")) + #t)) + (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"))) + #t)) + (delete 'check)))) + (native-inputs + `(("erlang" ,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