From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ADFGLjgA6GJyWwEAbAwnHQ (envelope-from ) for ; Mon, 01 Aug 2022 18:32:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id aKNELTgA6GLu5AAAG6o9tA (envelope-from ) for ; Mon, 01 Aug 2022 18:32:56 +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 6CE783AC77 for ; Mon, 1 Aug 2022 18:32:56 +0200 (CEST) Received: from localhost ([::1]:54162 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oIYLf-0006MB-2b for larch@yhetil.org; Mon, 01 Aug 2022 12:32:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIYDa-0006Jy-Gj for help-guix@gnu.org; Mon, 01 Aug 2022 12:24:34 -0400 Received: from smtp.polymtl.ca ([132.207.4.11]:48542) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIYDX-0005l0-QE for help-guix@gnu.org; Mon, 01 Aug 2022 12:24:33 -0400 Received: from localhost (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 271GOOIt010488 for ; Mon, 1 Aug 2022 12:24:30 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 271GOOIt010488 To: help-guix@gnu.org Subject: Configuring geiser for load paths of Guix environment Date: Mon, 01 Aug 2022 12:24:24 -0400 Message-ID: <87mtco0w5j.fsf@laura> MIME-Version: 1.0 Content-Type: text/plain X-Poly-FromMTA: (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) at Mon, 1 Aug 2022 16:24:24 +0000 Received-SPF: pass client-ip=132.207.4.11; envelope-from=olivier.dion@polymtl.ca; helo=smtp.polymtl.ca X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" Reply-to: Olivier Dion From: Olivier Dion via 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=1659371576; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=N3VGiaEqgzMrMEH//8+YTqNpYCRxREGGED8MKztSb1M=; b=ptsJd14a+aFu7QlBOrhY7+eYkwjgJ/si4rAjagSA+7aILKqtaKxZOaYzIw/xhgSWXKPmFD ElGhjOA9xi7V2rMdhlPTYDXAfNdpYASXi2GrOCgwTbYjxQWKU2vfTaHB1t7hY+unjLjQt2 /Oc2TdRuqfMA2tsFteIAeYyoAGQwSFOJ308lZBjgnOeEu8IYBnJNfW22/zZOQSLEuaneOR WIKG7yw6o5a52b3Tozp10if0AQ6LTQRprigX1UbYOrPzjoiF/mVLh7ZUosw6zHxRv4MCDj QFgOiOGNFZX/crFWUeM0emIwN6FLzT7SGmlbKh09ajPcvD9ZEWlBcUedM4dRaQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659371576; a=rsa-sha256; cv=none; b=nEzdJiWHB2r2molHmxFPl9XO5VvVGRqvlC9v/EpmsvMW1hr62uQgfdvl1Oh7/amdgODi1a aLHqHtNEgbXN9dCHGyqc1/5+pYBc/lnk/QWsqIZXgzpO0E7+iCZ8ktZUQGSJHtWj/F+rVF 0IFMPRDxKzMy5MjjMBqPtylSnUlvMqh6J4VYhj2l58TocLt/W3WDb8uWhvhKq3A/tlnQyb avDwtuZpj0B544SRRvHPKvsCnY6YfFbuM7vv8Lj6PSd0yowtC59AXaoOzmhG11e8/akkhI LfLrkmadvutO+WOqv2d91IvmVEOLvCfG9KJcCsSAihV6DJxvqc91tUQ+VISCmA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.32 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 6CE783AC77 X-Spam-Score: -4.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1yaJOl6tkRF9 Hi, Say I have a .guix.scm in my project with something like (specifications->manifest (list "guile" "guile-fibers" "guile-gcrypt")) If I want to develop with Geiser, it needs to find these modules in its load paths. My solution to this problem is the following .geiser at the project root: --8<---------------cut here---------------start------------->8--- ;; -*-Scheme-*- (let* ((port ((@@ (ice-9 popen) open-input-pipe) "guix shell -m .guix.scm -- /bin/sh -c 'echo $GUIX_ENVIRONMENT'")) (profile ((@@ (ice-9 rdelim) read-line) port))) (add-to-load-path (string-append profile "/share/guile/site/3.0")) (set! %load-compiled-path (cons (string-append profile "/lib/guile/3.0/site-ccache") %load-compiled-path))) --8<---------------cut here---------------end--------------->8--- I'm wondering if someone has a better solution to this? -- Olivier Dion oldiob.dev