From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id KOd/FnNic2U1fAAA9RJhRA:P1 (envelope-from ) for ; Fri, 08 Dec 2023 19:37:39 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id KOd/FnNic2U1fAAA9RJhRA (envelope-from ) for ; Fri, 08 Dec 2023 19:37:39 +0100 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 41C4435AB2 for ; Fri, 8 Dec 2023 19:37:39 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=phfrohring.com header.s=gm1 header.b=XiVl58pN; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1702060659; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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:dkim-signature; bh=KbunZurL06ODHUiKH097L+tS+QsZV99xC3S0ccceC1o=; b=VzV2fKyLFtGVm3AWakYZefidtmomMowOo4gQ5rIz00qbo2ZusTQaN8nGX/HEAeSCn6capV B43Yz3LEVRiX2V96NmqI4QV1rNz93ybENNl0bn/mbaui1akzUwHvqiFxoJelGFB71VTj4U T7yul4xSEGqTQipi/Hey86mXGVmLcTBMIsjjAT41Px3RC0sH4jjznwYwIiN9Ks8lhfWyHg 1jW28QAbRkCqZQt05VRO4PSGhBTGSJtra33jzkZtnvLYypie7Bm3qwuQRzMDPSmIP3YEwu +V2QG2gEbJDgVc5Fip4zz69Zc8HIiaa1Up6MdQGKYEDu4JpnnattkDHextMGLg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1702060659; a=rsa-sha256; cv=none; b=ezLREIG+7BkGrWT/Bo+RfSSE/mGuLhqDY9KAQtr84bSNr03awWqKUYnUt49Uk6feI8J/z9 JiTPVIKfNnHxDk9iyoUqtI+EWizrOlDoKv7c8NUg9ghlyHU5BJNdzLXrMcqnZ3zsG5vRtb 7fTZG4jm6y/resy6/uViL5liMj5zPvFpp6KiIDl0oMbDtj30Vspf7kHmqtczZzCBS2aZuw KrpJMQQNSd/U7AnTWTHinrtj7acN54yJ1JpmFsSwh3EXEohTjNfSkLMBp0A4+8jzZhiXG1 V7oyBVnYLz483TqvM2EX4IxlpKJ/T3JS/bk3Ud0nHgBsDZyUYLTBk5smz7SwTQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=phfrohring.com header.s=gm1 header.b=XiVl58pN; 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"; dmarc=none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBfiV-0004pX-7J; Fri, 08 Dec 2023 13:36:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rBfiT-0004p3-QO for guix-patches@gnu.org; Fri, 08 Dec 2023 13:36:49 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rBfiT-0007Ur-Hy for guix-patches@gnu.org; Fri, 08 Dec 2023 13:36:49 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rBfig-0008V7-Jm for guix-patches@gnu.org; Fri, 08 Dec 2023 13:37:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#66801] [PATCH v4 03/15] gnu: Add elixir-hex. Resent-From: Pierre-Henry =?UTF-8?Q?Fr=C3=B6hring?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 08 Dec 2023 18:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66801 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: liliana.prikler@gmail.com Cc: 66801@debbugs.gnu.org Received: via spool by 66801-submit@debbugs.gnu.org id=B66801.170206057532430 (code B ref 66801); Fri, 08 Dec 2023 18:37:02 +0000 Received: (at 66801) by debbugs.gnu.org; 8 Dec 2023 18:36:15 +0000 Received: from localhost ([127.0.0.1]:46126 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rBfht-0008Qb-Oi for submit@debbugs.gnu.org; Fri, 08 Dec 2023 13:36:15 -0500 Received: from relay3-d.mail.gandi.net ([2001:4b98:dc4:8::223]:60455) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rBfhq-0008Pc-4H for 66801@debbugs.gnu.org; Fri, 08 Dec 2023 13:36:11 -0500 Received: by mail.gandi.net (Postfix) with ESMTPSA id 145BB60005; Fri, 8 Dec 2023 18:35:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=phfrohring.com; s=gm1; t=1702060551; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KbunZurL06ODHUiKH097L+tS+QsZV99xC3S0ccceC1o=; b=XiVl58pNnkmT35qs5oJdxhwsFZrNAJHfCO4PNhxwFKHVQkPDgT7lY8F7OAWSuSFtpK2qkE y0yGqGvUe+6i34iz3XYSwnICj7XSBjBgzyZlZObWLTbiGgzU+UvPKoAKn2Piw/RbQZWnCs pPeYOncJz336sXJvHeoUU02N35rIxghGTVb/HKA9A+67wEpE5KLOT7Wh3OGg/pS2WEov4u 5SwVjl/yh6ibkmIxL9PEETQIu3KPHzHfDTjjJKSVoe87YlYfSgeSZRvqaZ2X9fOMUNX+EX cZXSVwhvV9jAGy6F+nFd4bg6+f/1t4UtuyARefz11V7COTaIU4QwS/aw2ZvEWA== From: Pierre-Henry =?UTF-8?Q?Fr=C3=B6hring?= Date: Fri, 8 Dec 2023 19:35:14 +0100 Message-ID: <991ebc5d9e6eb7a8663493d97f667d5696a646e5.1702060484.git.contact@phfrohring.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <7cd29d5162bed84d0b5b933673e5b8766c66719d.1702060484.git.contact@phfrohring.com> References: <7cd29d5162bed84d0b5b933673e5b8766c66719d.1702060484.git.contact@phfrohring.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-Sasl: contact@phfrohring.com 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.25 X-Spam-Score: -4.25 X-Migadu-Queue-Id: 41C4435AB2 X-Migadu-Scanner: mx12.migadu.com X-TUID: mhBAKZvfpvcc From: Pierre-Henry Fröhring * gnu/packages/elixir.scm (elixir-hex): New variable. Change-Id: I957688ae4e078afd79acd439880c38083fdab83a --- gnu/packages/elixir.scm | 45 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/elixir.scm b/gnu/packages/elixir.scm index 15cbdbdfc..ef8c39d0d 100644 --- a/gnu/packages/elixir.scm +++ b/gnu/packages/elixir.scm @@ -118,3 +118,48 @@ (define-public elixir for running low-latency, distributed and fault-tolerant systems, while also being successfully used in web development and the embedded software domain.") (license license:asl2.0))) + +(define-public elixir-hex + (package + (name "elixir-hex") + (version "2.0.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hexpm/hex.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1kvczwvij58kgkhak68004ap81pl26600bczg21mymy2sypkgxmj")))) + ;; The mix-build-system assumes that Hex exists. + ;; We build Hex using the gnu-build-system. + ;; Other Elixir packages use the mix-build-system. + (build-system gnu-build-system) + (inputs (list elixir)) + (arguments + (list + ;; Hex is needed to build packages used to test Hex. + ;; To avoid this circularity, we disable tests. + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (delete 'bootstrap) + (delete 'configure) + (replace 'build + (lambda* (#:key inputs #:allow-other-keys) + (setenv "MIX_ENV" "prod") + (invoke "mix" "compile"))) + (replace 'install + (lambda* (#:key inputs outputs #:allow-other-keys) + (define X.Y #$(version-major+minor (package-version elixir))) + (define out (string-append (assoc-ref outputs "out") "/lib/elixir/" X.Y "/hex")) + (mkdir-p out) + (copy-recursively "_build/prod/lib/hex" out)))))) + (synopsis "Package manager for the Erlang VM") + (description + "This project provides tasks that integrate with Mix, Elixir's build +tool.") + (home-page "https://hexdocs.pm/makeup_elixir/") + (license license:bsd-2))) -- 2.41.0