From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 2MOwOkWF9GbcEwEAe85BDQ:P1 (envelope-from ) for ; Wed, 25 Sep 2024 21:48:54 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 2MOwOkWF9GbcEwEAe85BDQ (envelope-from ) for ; Wed, 25 Sep 2024 23:48:54 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=qbjbgiRb; dkim=fail ("headers rsa verify failed") header.d=autistici.org header.s=stigmate header.b=uPX5mGlr; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1727300933; h=from:from:sender:sender:reply-to: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=+Fmpc3fg3rCXUBLbuPdJBWXm5nhoBoSBUQy+Sv8yZCQ=; b=i7h8hFhOAgXPzf5+58KrYMEadU9wAv8uxyVkS7q54br03YgO9phpHa3D2rfb0QrGOLSpHw OSC7B5HFOkCgC4yTpjL1DqLBDkC5YrAUn4A/BJR7sAE1+W9X2Pl8QdRuOkVmIJgqUkVPfq 3tETkZcs2WmLtGt0sFYnf/+Rx6hMwkbSDkLLR/lGUYHvLisFDsh5fSTPwOorCwegxb0MQo kcAGkzlKZiG8B2+RYUDs7BYlIZnx5a4UhZ4oN1l2oYMW3h9XF3qG9TuL+ZIinVDWeLSfVh ZLNt6jG5PjR2eLXV936LHT1DIqmuBTFcHJuv3hULWxgiD8N85eyMhAH7k+EI0Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1727300933; a=rsa-sha256; cv=none; b=eK9QzYwyjfIjAnSg1OgCYenfsm88KVkFjqMTPsbg8OeWOntu0BNEgVc/Yo8cMrAW0pAHgq SbJHROcppmX8htZGhhe/cvvHYsX2hkjJ78Pkz4A773+ylqSmS38j8BtfrUIrQTqUiz3Hj9 dbUwf+FCVPmF6fJGkJcYQg3SGfwxZFbsrNIU4j4pk7iAPr5rHTEGZRBDsZIQyenuibcaxU EGM2MgbAtkMLcUYHlfXpZoti8jVGkOPEweiDPgOXdK/gOqCTSrzncl6yhyaGwuUwMFaeEL S7GmVRFi6q/b7OoLbK8ZsI/kmhcAKxpkl+s5DfIn84xFQD4M8oKDC+66L6Kuqw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=qbjbgiRb; dkim=fail ("headers rsa verify failed") header.d=autistici.org header.s=stigmate header.b=uPX5mGlr; dmarc=pass (policy=none) header.from=gnu.org; 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" 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 DCC3F5E9AD for ; Wed, 25 Sep 2024 23:48:53 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1stZsI-0001GJ-DZ; Wed, 25 Sep 2024 17:48:42 -0400 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 1stZsC-0001Fc-SL for guix-patches@gnu.org; Wed, 25 Sep 2024 17:48:38 -0400 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 1stZsC-0004gu-Iv for guix-patches@gnu.org; Wed, 25 Sep 2024 17:48:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:In-Reply-To:References:Subject; bh=+Fmpc3fg3rCXUBLbuPdJBWXm5nhoBoSBUQy+Sv8yZCQ=; b=qbjbgiRb45nTc2mqvjMyZWPvQQLeeBP0tdj0TNaUahpFOUqWdJBe47sHw0lny89lLzMHWxGjLgY981cp8CMb46A8aNNGvIdJvjh5zEAd3j1eImfTLmmzjyjPMtpquBFfNK8Tmll+8ZYyFs3pgyOLkWFpkxLOMP9AFvGFo3K+O70xpLeRn6frfUagmdWn/lIi7GM5d1y9Pfhw5aMoyNDWRIFIj5g9ppGeeHi/Hr1GIeA2QBwdeZr/ncJT7w5khcETt/hM20cRz1RnxEysrUDGaOXAzmnWQWaBNN3rzLa/omxVDWyrpU/4lcq87/+4ufwdQYGEC9JaMFUmm/QJtn8uTg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1stZsc-0004q0-Qp for guix-patches@gnu.org; Wed, 25 Sep 2024 17:49:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73458] [PATCH v2 1/2] build-system: mix: Allow loading Erlang dependencies in Mix driven builds. References: In-Reply-To: Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 25 Sep 2024 21:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73458 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 73458@debbugs.gnu.org Cc: Giacomo Leidi Received: via spool by 73458-submit@debbugs.gnu.org id=B73458.172730091918509 (code B ref 73458); Wed, 25 Sep 2024 21:49:02 +0000 Received: (at 73458) by debbugs.gnu.org; 25 Sep 2024 21:48:39 +0000 Received: from localhost ([127.0.0.1]:57983 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1stZsE-0004oO-Ms for submit@debbugs.gnu.org; Wed, 25 Sep 2024 17:48:39 -0400 Received: from confino.investici.org ([93.190.126.19]:21083) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1stZsC-0004o0-1h for 73458@debbugs.gnu.org; Wed, 25 Sep 2024 17:48:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1727300384; bh=+Fmpc3fg3rCXUBLbuPdJBWXm5nhoBoSBUQy+Sv8yZCQ=; h=From:To:Cc:Subject:Date:From; b=uPX5mGlrhX5SiPIEnhBzq2gMta55echDyPbDbFSt5IhqJ3jY9MNWi6vZMn0bxHFJn lxYKap3oosOapLrLnJ1i4FGEX3BLgZQ3RSDYBuWPq2hEB5Z0Iks++koHblKsGXtv2a TOd9IJoyJJmHj4tdbA7L785/NoGh/QyfLiqOPUig= Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4XDVW42gLCz114r; Wed, 25 Sep 2024 21:39:44 +0000 (UTC) Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4XDVW421stz114j; Wed, 25 Sep 2024 21:39:44 +0000 (UTC) Date: Wed, 25 Sep 2024 23:39:17 +0200 Message-ID: X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: , Reply-to: Giacomo Leidi X-ACL-Warn: , Giacomo Leidi via Guix-patches From: Giacomo Leidi via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -5.01 X-Spam-Score: -5.01 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Queue-Id: DCC3F5E9AD X-TUID: i6tMFMuKSwV8 * guix/build/mix-build-system.scm (set-mix-env): sets ERL_LIBS to allow Erlang's virtual machine to load Erlang dependencies in Mix builds. Fixes Change-Id: Ic1ef5db20680bfd265fbac72bafb760d21135f68 Change-Id: I2e0ae4908353833d81003b4f750af56ff3f8dbfb --- guix/build/mix-build-system.scm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/guix/build/mix-build-system.scm b/guix/build/mix-build-system.scm index 0b021da791..73af575b10 100644 --- a/guix/build/mix-build-system.scm +++ b/guix/build/mix-build-system.scm @@ -1,6 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2023 Pierre-Henry Fröhring ;;; Copyright © 2024 Igor Goryachev +;;; Copyright © 2024 Giacomo Leidi ;;; ;;; This file is part of GNU Guix. ;;; @@ -92,7 +93,15 @@ (define* (set-mix-env #:key inputs mix-path mix-exs #:allow-other-keys) (setenv "MIX_EXS" mix-exs) (setenv "MIX_HOME" (getcwd)) (setenv "MIX_PATH" (or mix-path "")) - (setenv "MIX_REBAR3" (string-append (assoc-ref inputs "rebar3") "/bin/rebar3"))) + (setenv "MIX_REBAR3" (string-append (assoc-ref inputs "rebar3") "/bin/rebar3")) + ;; Add Erlang dependencies in Elixir's load path. + (setenv "ERL_LIBS" + (string-join (search-path-as-list + `("lib/erlang/lib") + (map (match-lambda + ((label . package) package)) + inputs)) + ":"))) (define* (set-elixir-version #:key inputs #:allow-other-keys) "Store the version number of the Elixir input in a parameter." base-commit: a1dc5ac832a106d46450961e78e7db3f83bf2bff -- 2.46.0