From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0NsuKsMoU2LAKgAAgWs5BA (envelope-from ) for ; Sun, 10 Apr 2022 20:58:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id oLyjIsMoU2I2xgAAG6o9tA (envelope-from ) for ; Sun, 10 Apr 2022 20:58:11 +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 001872F5BD for ; Sun, 10 Apr 2022 20:58:10 +0200 (CEST) Received: from localhost ([::1]:37152 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndclF-0003jF-PL for larch@yhetil.org; Sun, 10 Apr 2022 14:58:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57332) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndcl8-0003i3-FY for guix-patches@gnu.org; Sun, 10 Apr 2022 14:58:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47560) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ndcl8-0006Mc-6j for guix-patches@gnu.org; Sun, 10 Apr 2022 14:58:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ndcl8-0005gu-6L for guix-patches@gnu.org; Sun, 10 Apr 2022 14:58:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54796] [PATCH v4 00/22] Add importer for hex.pm and rebar3 build-system for Erlang References: In-Reply-To: Resent-From: Hartmut Goebel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 10 Apr 2022 18:58:02 +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.164961705021644 (code B ref 54796); Sun, 10 Apr 2022 18:58:02 +0000 Received: (at 54796) by debbugs.gnu.org; 10 Apr 2022 18:57:30 +0000 Received: from localhost ([127.0.0.1]:41414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndckb-0005d2-SW for submit@debbugs.gnu.org; Sun, 10 Apr 2022 14:57:30 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:45673) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndcka-0005cl-41 for 54796@debbugs.gnu.org; Sun, 10 Apr 2022 14:57:28 -0400 Received: from hermia.goebel-consult.de ([87.176.137.15]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MZCOl-1nQCdU43Mn-00VCVY for <54796@debbugs.gnu.org>; Sun, 10 Apr 2022 20:57:22 +0200 Received: from thisbe.goebel-consult.de (hermia.goebel-consult.de [192.168.110.7]) by hermia.goebel-consult.de (Postfix) with ESMTP id BD91266479; Sun, 10 Apr 2022 20:57:31 +0200 (CEST) From: Hartmut Goebel Date: Sun, 10 Apr 2022 20:57:19 +0200 Message-Id: X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:Lpn2QQ8PWZAtH1k8YTirlTh1woPOKlTLTbBw8WNR9xWvJLJOPTv 3Nh/yByeptTWBgWiiNTgA59PJ9yWklhWKuGEGqMKrfculTyJ3/2tgWqS6QQlqLaN3JJPztr +4taun28xYR3t12hZOBZAMRXZ9vnD7+2jzfLoQXkkHqZ7vVC5y3xuFbIRQAEpJqIEonOOFH ODtdUMQLJVwMKKYxDgqtg== X-UI-Out-Filterresults: notjunk:1;V03:K0:dNF0iXmbbes=:Q3pYujk9WqdYcXqh85sBmX LwHEqTJtgs7SxW1xHKmDcIyRZlnJJ0XoRsLFFzUR5i+HVfrawefFyGvS6XnforzNxrltgaY9E p3390yMLp+jF4Hqii8pdPRIAqXuh8hyd/ppC5YMBrIDN7NmBQuV4cXaHYhrFdwzfPHWumHZ/X 7A5a7YkOLFnHPsWqAvmycWJnE17qrbArVII5x23WCAP4CkCvV/YBVw9oSU3qASVfJhKx2WkFb GL0zGBN3LeG4VwZPa0fdk10N2fwi+z/ZXKR7o4KJeP1jcH//AVfP6ddrrScTFdkUPmhMBcFqt 2S7zJoYBq1jt0JsTVCXu5wnt9hWNOl/taNpMglw9Pto7BTgBjIu8M7JOk2zKpfIoVEBmqjXtz /1eiWnnM1dTr4rnyT79JF1miQ6+nerjZs13dldtzjJN+WYiyKypG+VhpNptxrBu49peNH58xg 5wsQSw7wTA6+9lLXfmUrR24O3OMtR3tDVHFuBow/YtbEaYezeBS6VSUOlnA2B+Pv+MlB7BSI1 EMbHNy1ywmK7X2jnGov0JYI7kfURTAY+8NDQidnQ7+0uKu4oFxYXImxXtiQcxx057zTQyzDyD bmaKEGv27Aa08DxhCOF05EJ4Z+sVwnA2ZJ4sKEXxyuJhhtGl0LTLA9kHYMvuXTc+zHxWiwkaC ou4Vp9bWMdBHWvcn97ugzPaG4zwlleqHbaV7wIefW2cecixOhHusxq3rKSJPS3h73/DE94siu uzLa51NRVt2YndPL 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=1649617091; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: 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=eGXiOsqQyKhS1OCScOHwWDqv/ys9BMXWp0duMvWYO7E=; b=rvUFXyVXbIU5h9BBMWQv2y9L3FePqX1/1/ZqnmfX3AvvpVk4DQeCZ2Sb+Frwpy4M38eO6d rrvavSUL7k/2RREYiVScGic3X85kOCx8Tp3Q/2ZzDHedLNfeteuf8b67xMN1/HtUXYoZbk t12jjD3pfhMCACayZ9hPZy/mPnuenm1ZZaIlK0id+NW13d0ftuBNCcLfma/0p5olkPIM/Z +0l4w98Xhpuce2EnXKwFMxXTnVBDhxyzuU2Vnh6bOavKUDEpOuFudn7xJjwk0pkitz1/JB +UHy6nf9Kn10Y0HdI2Ixbka6vZSwMl8FoLf2pIASJ9JIYYEg4460LCm++xyyQg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649617091; a=rsa-sha256; cv=none; b=qPWLFyjnvUBpz+T8f3AwRg1r+GwgcsHlR5B6AKElRUwOisS/l5uva8spvTWiM2Kv/Ugtoy xhUEqa3ylJr1oP0YaLe72HvF1jyGbCPR/l0k6qTCDEmHQtYzythmcs2IoNRd4wd4OwYmOq YmzePv92Upz8NeQVDqdZhDxCMBdMH8zXRpKlvkh7lFR+opxV1olY4OpdbgOudwoB/TDp9O J9Xtw3fVJL4MxSwbYmjIcwi7gzPiE4YmV7EoA8AOjl3OZhDlViQuzZt3z38HIxdPXpIv/M gZ3dwlfPExQ37lS5DYZSgmdU+BAeRytae2LmW3fzRKSxjyJ65epNtqa4G03ZFg== 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.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: 001872F5BD X-Spam-Score: -2.57 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1pRkhTR8VcU5 Thanks to Maxime Devos for the review of V3. Do ease review for other reviewers, here is a complete set of updated patches, incorporating Maxime's comments. Cover text from v3: this is an updated version of #42180 and #51061 (both are closed already). Notable changes are: * the „extracting downloader“ and „hexpm-fetch” are gone * documentation added for both the importer and the rebar3-build-system * tests added for the importer Some remarks on the patches: * First patch adds a file guix/hexpm-download.scm, containing definitions for the hex.pm repository. These are combined in this module here since different build-systems (will) use it. * The importer tries to detect the build system to be used. For Elexir packages it creates package definitions using the “mix-build-system‘. This I will add later (WIP). * Next there patches provide the packages required rebar3, rebar3 itself and some plugins for rebar3. Open question: * Shall the build system actually be called „rebar*3*“ or just „rebar“? There is also a build-tool „rebar2“, which is obsoltete and not supported by this build-system. Anyhow, somewhen in the future there might be some „rebar4“, which we might be able to cover with the same build-system. WDYT? Hartmut Goebel (22): import: Add hex.pm importer. build-system: Add 'rebar3-build-system'. gnu: Add erlang-cf. gnu: Add erlang-certifi. gnu: Add erlang-erlware-commons. gnu: Add erlang-cth-readable. gnu: Add erlang-bbmustache. gnu: Add erlang-getopt. gnu: Add erlang-eunit-formatters. gnu: Add erlang-providers. gnu: Add erlang-parse-trans. gnu: Add erlang-hex-core. gnu: Add erlang-ssl-verify-fun. gnu: Add erlang-relx. gnu: Add erlang-edown. gnu: Add erlang-jsone. gnu: Add erlang-proper. gnu: Add erlang-covertool. gnu: Add rebar3. gnu: Add rebar3-raw-deps. gnu: Add rebar3-git-vsn. gnu: Add rebar3-proper. Makefile.am | 5 + doc/guix.texi | 70 +++- gnu/packages/erlang.scm | 493 +++++++++++++++++++++++++++++ guix/build-system/rebar3.scm | 143 +++++++++ guix/build/rebar3-build-system.scm | 147 +++++++++ guix/hexpm-download.scm | 40 +++ guix/import/hexpm.scm | 347 ++++++++++++++++++++ guix/scripts/import.scm | 2 +- guix/scripts/import/hexpm.scm | 109 +++++++ guix/upstream.scm | 1 + tests/hexpm.scm | 257 +++++++++++++++ 11 files changed, 1612 insertions(+), 2 deletions(-) create mode 100644 guix/build-system/rebar3.scm create mode 100644 guix/build/rebar3-build-system.scm create mode 100644 guix/hexpm-download.scm create mode 100644 guix/import/hexpm.scm create mode 100644 guix/scripts/import/hexpm.scm create mode 100644 tests/hexpm.scm -- 2.30.2