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 8FF1OTgoc2VrQAAA9RJhRA:P1 (envelope-from ) for ; Fri, 08 Dec 2023 15:29:13 +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 8FF1OTgoc2VrQAAA9RJhRA (envelope-from ) for ; Fri, 08 Dec 2023 15:29:13 +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 BC3BC5CAC9 for ; Fri, 8 Dec 2023 15:29:12 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=phfrohring.com header.s=gm1 header.b=AqtPtpq9; 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=1702045752; 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=jNtSEgoHvt3ujUSM/NGiBH2tUVaCyTbTpywa3l3U9QpBoL0fTtdXP/2ezTfoM1BCrCxadg 5JYdtzn8k2jUHKDOvd4DtL70HmrmJXe5aVoeNBP8UjGRflvLep0P7C5FF324mndhstac/B zR4TzzXwAOFS7JgYHkd9fR89rJ9i3MS4L5k0TbaI0WzofhCEB17ObH5ANnjzpqPtgRPFVV LuRh6MTLW2Zm/tV94W1ZUsfZz5HLAFw38oTWVSGXNQjXr0ldoEKN34YKpe1hyaFg/CMAsa 675aGDztFYdKGIY2WFUz14k+f31BdwsxSPvvXmlDVSQtspUTGpCPIO+lrUHxZw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=phfrohring.com header.s=gm1 header.b=AqtPtpq9; 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-Seal: i=1; s=key1; d=yhetil.org; t=1702045752; a=rsa-sha256; cv=none; b=QtEF65L3UpEQGpFs0zcKUSzZwIBruQfOYJNb6uHnzuA/2LKepOcqHD0BcuBSMUZ6diPHA0 7kLrPGsKhNJxUEO8c1Tav+52+nBMwI4RNL94qO0qAYtYY8mmbYNnSJv5iQklzrUeBtVEjt 0PuAxCtB+tSEZGzC1/zeYpOh3I+8kzulIuRUcEsNBbdzeZutfmWTWobQgQ80SM3L3E9SBv wucJIkMxyHmzHE/RG5P6vivh4DqXJcm0cXQdfpES2HHuKh2dzwGnGIv+uFZswMbjkJzxLw g5USdQ1x3gb+3QCZ3oWaue1tQZj7b2Ts3wlOJkosf0KCuud3BznuUFxki9mziw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBbqb-0002bZ-8c; Fri, 08 Dec 2023 09:28:57 -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 1rBbqU-0002XJ-Bh for guix-patches@gnu.org; Fri, 08 Dec 2023 09:28:50 -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 1rBbqT-0003Fi-VV for guix-patches@gnu.org; Fri, 08 Dec 2023 09:28:50 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rBbqg-00051x-Ku for guix-patches@gnu.org; Fri, 08 Dec 2023 09:29:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#66801] [PATCH v3 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: Fri, 08 Dec 2023 14:29: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.170204568619191 (code B ref 66801); Fri, 08 Dec 2023 14:29:02 +0000 Received: (at 66801) by debbugs.gnu.org; 8 Dec 2023 14:28:06 +0000 Received: from localhost ([127.0.0.1]:44227 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rBbpl-0004zK-6z for submit@debbugs.gnu.org; Fri, 08 Dec 2023 09:28:06 -0500 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:39555) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rBbpi-0004yp-S3 for 66801@debbugs.gnu.org; Fri, 08 Dec 2023 09:28:04 -0500 Received: by mail.gandi.net (Postfix) with ESMTPSA id 961071BF211; Fri, 8 Dec 2023 14:27:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=phfrohring.com; s=gm1; t=1702045663; 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=AqtPtpq9QyK258XPMC+YP7cEFyY21ptppEfig40HugmYKxUvV0HZKSmhOGbDHuXSUAKGha YW+bh5I5XY8D4eV8pwQnOzbybMPMuJhX3Ed3GcYa0gWGV72ZawITGVmnOLj6NzYps5Oj84 9QKKkkdawuwUd97KE76bDvcZfOSKnCS0dt1R4bzbfIcXaBtNmN4IDPaO4qWbcvwXK3Mk3z GVfDoEq/gWGr51pydJ27OySTsqfy5O0/aPTXwS5lpeksTa4a3FYm2mpVuJnH/yaJXvudhr dFhg9khct3gUEUPTfKQ1sHVpnxtFL6J/RZj7OFJKy8qQuXoSSSvBB9+Fg75q2A== From: Pierre-Henry =?UTF-8?Q?Fr=C3=B6hring?= Date: Fri, 8 Dec 2023 15:27:24 +0100 Message-ID: <890f17a9c0c5ea79addb025bec17f08d054cfb5b.1702044562.git.contact@phfrohring.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: 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: -0.75 X-Spam-Score: -0.75 X-Migadu-Queue-Id: BC3BC5CAC9 X-Migadu-Scanner: mx12.migadu.com X-TUID: U75vp4+Idu/b * 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