From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wFoPCN1V6WJh1gAAbAwnHQ (envelope-from ) for ; Tue, 02 Aug 2022 18:50:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id cAgXB91V6WInOAEAG6o9tA (envelope-from ) for ; Tue, 02 Aug 2022 18:50:37 +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 A7E332CA1A for ; Tue, 2 Aug 2022 18:50:36 +0200 (CEST) Received: from localhost ([::1]:35000 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oIv6J-0002fj-2S for larch@yhetil.org; Tue, 02 Aug 2022 12:50:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIv2s-0000Rz-Ql for help-guix@gnu.org; Tue, 02 Aug 2022 12:47:03 -0400 Received: from smtp.polymtl.ca ([132.207.4.11]:57706) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIv2o-00024D-Sj for help-guix@gnu.org; Tue, 02 Aug 2022 12:47:01 -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 272Gkqci003368; Tue, 2 Aug 2022 12:46:56 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 272Gkqci003368 To: Csepp Cc: help-guix@gnu.org Subject: Re: Configuring geiser for load paths of Guix environment In-Reply-To: <87bkt3wnls.fsf@riseup.net> References: <87mtco0w5j.fsf@laura> <87bkt3wnls.fsf@riseup.net> Date: Tue, 02 Aug 2022 12:46:52 -0400 Message-ID: <87wnbqzj7n.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 Tue, 2 Aug 2022 16:46:52 +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=1659459036; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=3fWpiVF2ztITgKWTKOwA+29tsrhmUTUTpOy4KUbt7Bs=; b=U69Q3GmcvXeu18pP3NdQkFhbXicZIHhdQuxiH8kITtpIszRYe7A8dv8OevSw+CeuqykWSX mGMXTgkAcOXdE5cxhpFDyEvc1LAfE+fb6vrjLYxi2VXDIKigO/PmTIMUxrijH963e8DKDJ k6QjMz1pe1qvEMPZortv6rWTCJB/E75ds5UPVMuFgsRDO+FYC6C975VnEeHSFpVknDeVyO Vy8G90plPmuoK+BVGTr7TpEWuAL75jPGmU3s4Q5VJnkos2ZhrVbaXzyqt5ViOaRhm9V4tt RL2ea/1uz606OKQmqgMISmIQuODhVtVqyi6jyApGB/4dmmQAuwpQ579NUTWhjA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659459036; a=rsa-sha256; cv=none; b=fBSrGj5CUVL4k/5yMuSum+lA4uutkpo4YhqwAFl3fIA5lWwV/NeCgWkGuaOmwVEJCicpfZ j7OHhP82L0f4Y0wPfCsuDjdLWWUDEnW4kGOFMvNj8bz/pQ3/VSg0sw/UT9pSJa74lIM23U vFIZ2oQ0T16DNtsbNhS+q2KHGCEYDZKlagmcrJJehX0zrN90XdKkB/X7xvlFAT57FSnC2i R0ZZ/3NPfkTyKLQ0xo22UmoW/VIaLSpWCjweKGFIFfGmav5IUt363yBHvj8pjPe5WtRlfN m0qERsh7anWMYnVFhiP9kMeyvIoTVR3IvO6w3KKVkl6KOhbuQVZb4bT+QX8XOQ== 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: -2.92 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: A7E332CA1A X-Spam-Score: -2.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: rItevtCnYUzE On Tue, 02 Aug 2022, Csepp wrote: > Olivier Dion via writes: > >> 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: >> >> ;; -*-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))) >> >> I'm wondering if someone has a better solution to this? > > I'm not an Emacs guru, so this might suck, but what I did is simply set > the related variable. Forgot what it was, but its contents were "guile" > and I changed it to '("guix" "repl") and it worked. You could probably > do something like '("guix" "shell" "-m" "guix.scm" "--" "guile") . I finally end up doing something similar. In .dir-locals.el: `((nil . ((geiser-guile-binary . "./.geiser-guile"))))' In .geiser-guile: ` #!/bin/sh exec guix shell --pure -D -f .guix/packages.scm -- guile $@ ' Thanks! -- Olivier Dion oldiob.dev