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 OE5vHr23dWWHCgAA9RJhRA:P1 (envelope-from ) for ; Sun, 10 Dec 2023 14:06:05 +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 OE5vHr23dWWHCgAA9RJhRA (envelope-from ) for ; Sun, 10 Dec 2023 14:06:05 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=phfrohring.com header.s=gm1 header.b=Rz7Wnhkv; 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=1702213565; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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:dkim-signature; bh=Too275ATH3DnZfaDLq2YMsLOUjiqHUrIkhEfxt+fPRM=; b=B2NnFybvAJFJ7ySPQaP4N2TWO3yhRicMM8OmQTQc1e6qWSCM2sv+i5CL23/AY8LIcdHxmZ VbtzMzGwyhbwH4mwGwVGSWiGPYSJUxyQFxwTx5WXDpfNso8JkgXOqDjHZuGhYpxT1UGP71 TNbqd9LoRlXPW6TdyyPAFa+QHdMWP16/PMiRox1K6Q0WOyGhTYzP3uDANEGBGF/3ZDp6nF iYEG7lGogaDOp/Sb13Mec2k9Dn2FDyOXpHKT7rHZdlHzG6yPpPZWnOfh/QE+27Qtm047j+ nr6uEw/9Dpj5EQJz9F+96Vk/4JPK7HQAFOs+R8AdlqemKXvWQTYSOjO9jK2VcA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1702213565; a=rsa-sha256; cv=none; b=Dq/xCu+gd62Nu0bAOsh//X5k66cUyeSNXtgDgaI6KDd5r0n1mvYOv3kzhPlePqj8rqQjiM fYfI5F1DJET1lXiW7c8ZyCwdf5ayIbiMJdaxsw8s5HlxIvS4688mqogi8Mfz39h9VjAozi veYcjYpUB4WBYN1QbHiCfI+K2/p47xrDvihjX6yXfGl75ydNNpEd4plpIKaMKLAS5sCxlE +drXqd8zNfHTd1RCfGC4AdFi6gbpI4OTX7xulbvKdNUee6Mk36NKXQDrAZHOESdIuBl97N GvFYR5H9Vnml35finHLUDuItwbj8MbehR9qIIBwXGXqsW+Wfb0mByOMLfkUfIA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=phfrohring.com header.s=gm1 header.b=Rz7Wnhkv; 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 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 B3AD15B4C7 for ; Sun, 10 Dec 2023 14:06:04 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rCJVO-0001zD-EG; Sun, 10 Dec 2023 08:05:59 -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 1rCJVF-0001r6-RW for guix-patches@gnu.org; Sun, 10 Dec 2023 08:05:52 -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 1rCJVE-0005R1-Qg for guix-patches@gnu.org; Sun, 10 Dec 2023 08:05:49 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rCJVS-0005XO-V3 for guix-patches@gnu.org; Sun, 10 Dec 2023 08:06:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#66801] [PATCH v5 02/15] gnu: elixir: Wrap binaries. Resent-From: Pierre-Henry =?UTF-8?Q?Fr=C3=B6hring?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 10 Dec 2023 13:06: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.170221351221065 (code B ref 66801); Sun, 10 Dec 2023 13:06:02 +0000 Received: (at 66801) by debbugs.gnu.org; 10 Dec 2023 13:05:12 +0000 Received: from localhost ([127.0.0.1]:49697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rCJUd-0005TS-9X for submit@debbugs.gnu.org; Sun, 10 Dec 2023 08:05:11 -0500 Received: from relay3-d.mail.gandi.net ([2001:4b98:dc4:8::223]:35019) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rCJUa-0005SV-4W for 66801@debbugs.gnu.org; Sun, 10 Dec 2023 08:05:09 -0500 Received: by mail.gandi.net (Postfix) with ESMTPSA id 306B360006; Sun, 10 Dec 2023 13:04:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=phfrohring.com; s=gm1; t=1702213487; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Too275ATH3DnZfaDLq2YMsLOUjiqHUrIkhEfxt+fPRM=; b=Rz7WnhkvX0+BDAL6hTKcu3wShZCU1HbbbHhyNuw+5lBtHuRMBjYkpNdiPS0RFiuTyyneqs +LFSsh22b5jGmEIr0L9xjGgbynNyIKaEYzRdPnhUaMQdcOQMwWWzDhfS4D0XLyiQu3pOtb 81Zq5QHnPJCFm7fpWaZznj7adJk0jgwr4TGIu/7BXl2tjtuWy9Qz75AVb56xHBYbkFh5NA 7I5L24HQLuKuVSrn2wLPgBZemr8CDOE6F1lhNIW9b5JCCXeaOWiins0q+QBi+2d486W2uh mXn8Y8PT1Iy2CJa4dcxNieo+wT9iyrKwyL1b4QL00sn4X2EcRBE4IEw+p7kv8w== From: Pierre-Henry =?UTF-8?Q?Fr=C3=B6hring?= Date: Sun, 10 Dec 2023 14:03:55 +0100 Message-ID: <253e35eafde683ebfbe680253f80e73d869a8cdc.1702212039.git.contact@phfrohring.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <455871374089253cc10d2c5b17c2cceee4a5272d.1702212039.git.contact@phfrohring.com> References: <455871374089253cc10d2c5b17c2cceee4a5272d.1702212039.git.contact@phfrohring.com> MIME-Version: 1.0 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: -3.77 X-Spam-Score: -3.77 X-Migadu-Queue-Id: B3AD15B4C7 X-Migadu-Scanner: mx12.migadu.com X-TUID: n530RxvtyC6e * gnu/packages/elixir.scm (elixir)[arguments]: Phase `wrap-programs' added. * gnu/packages/elixir.scm (elixir)[native-search-paths]: Variable `GUIX_ELIXIR_LIBS' added. Change-Id: I75bdde3aeedc1d495ea5fc2c5fc3fcdc5dc3fad2 --- gnu/packages/elixir.scm | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/gnu/packages/elixir.scm b/gnu/packages/elixir.scm index 724b42512..15cbdbdfc 100644 --- a/gnu/packages/elixir.scm +++ b/gnu/packages/elixir.scm @@ -27,6 +27,7 @@ (define-module (gnu packages elixir) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix build-system gnu) #:use-module (guix gexp) + #:use-module (guix utils) #:use-module (guix git-download) #:use-module (guix packages) #:use-module (gnu packages) @@ -96,9 +97,20 @@ (define-public elixir (lambda* (#:key inputs #:allow-other-keys) ;; Some tests require access to a home directory. (setenv "HOME" "/tmp"))) - (delete 'configure)))) - (inputs - (list erlang git)) + (delete 'configure) + (add-after 'install 'wrap-programs + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (programs '("elixir" "elixirc" "iex" "mix"))) + (for-each (lambda (program) + (wrap-program (string-append out "/bin/" program) + '("ERL_LIBS" prefix ("${GUIX_ELIXIR_LIBS}")))) + programs))))))) + (inputs (list erlang git)) + (native-search-paths + (list (search-path-specification + (variable "GUIX_ELIXIR_LIBS") + (files (list (string-append "lib/elixir/" (version-major+minor version))))))) (home-page "https://elixir-lang.org/") (synopsis "Elixir programming language") (description "Elixir is a dynamic, functional language used to build -- 2.41.0