From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 wN3wDJhh6GIbwgAAbAwnHQ (envelope-from ) for ; Tue, 02 Aug 2022 01:28:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id QCEFDZhh6GKuLAEA9RJhRA (envelope-from ) for ; Tue, 02 Aug 2022 01:28:24 +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 E163845655 for ; Tue, 2 Aug 2022 01:28:23 +0200 (CEST) Received: from localhost ([::1]:55226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oIepj-0002d6-1g for larch@yhetil.org; Mon, 01 Aug 2022 19:28:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIepW-0002cy-Ci for help-guix@gnu.org; Mon, 01 Aug 2022 19:28:10 -0400 Received: from mx0.riseup.net ([198.252.153.6]:39340) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIepU-00019v-Fq for help-guix@gnu.org; Mon, 01 Aug 2022 19:28:09 -0400 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx0.riseup.net (Postfix) with ESMTPS id 4LxZ6s5Bjjz9t9k; Mon, 1 Aug 2022 23:28:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1659396485; bh=FHWQ1ujod0uRJaOhAywJz8cjysjCIE8bDuteShPOM/I=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=mNTDCM1ViW6veyGCT7kZsPCLNDXlcHCfNmx5F6AbLoiJCrduYck2k0l2rM4g2Zvfm mOqSjEpfyWlWwAYXE8sTvSUXhgRPKLxucitABG1n68xR1kszVfT97yBrBhiSKZlQJy KhUXHTl7yUtiVgmhYSPuc5rfZVtJhoweVUZei0/s= X-Riseup-User-ID: 0B5763AC8C7DB00C9D637C1C2567F516DCDFE5F5ECE371A6DB29D7C2947378B4 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4LxZ6r71t6z5vTk; Mon, 1 Aug 2022 23:28:04 +0000 (UTC) References: <87mtco0w5j.fsf@laura> From: Csepp To: Olivier Dion Cc: help-guix@gnu.org Subject: Re: Configuring geiser for load paths of Guix environment Date: Tue, 02 Aug 2022 01:25:49 +0200 In-reply-to: <87mtco0w5j.fsf@laura> Message-ID: <87bkt3wnls.fsf@riseup.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=198.252.153.6; envelope-from=raingloom@riseup.net; helo=mx0.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, 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" 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=1659396504; h=from:from:sender:sender: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:dkim-signature; bh=mu/46Bfhwvfr+MYD2XCWlcFU+DfcqvJpivR15RmhC0Q=; b=tGKkESELkrzvKPJ6Org92sajYNF1qzjzwTBx5cpiOZ2EQBfoozuYmunlxJKM9yd/Dn9PLR Rn8jugJZSf9WfPbt+RYkBvCwLds/zRMWV9Zu6L6hYkG+WVG3MrXxyZfoazhztV7lpN8tDE vkET6R6eVamPGgkN67zf67k+9z96xagDWEbNVmKW6o7o0lePiXOP2AaroWHaMs6IqVnnv4 RFn60+cj3Q34zBbSdsi/5YeEpn0j61/ERjLnI/WYT/VbfM7L4FYbSkmV3e/CjcsPV1nUaf CdFCMcfbiMBBSZ8zG44FCKY83gsOBwI3/PTgX/QwSm4N+aKKAjp9xpfPZFdBug== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659396504; a=rsa-sha256; cv=none; b=lowR7VAvmMu410K/nn2L/XBgahDHiIKNEXQ6QI9FUf2vg4UonnsKHFk+kilOdb3k5W7cpX 92cCj8nz3lptRf2k+0pE1CIkQQx5erRL1jh3yYk1POtc/HxdLrnrvu1c5LF93MGSFxH/uv QGV5GOLcprfAnHeHuehbz47vZummls+BWcpeRb8qWqD1owETiCQK/pJjSIbZZr30gKu+58 dpgAqFj/JqKKxRjHF8Ao7HfwK1uLQyez9V2Ypmpul6Orqsx6zxr1Q2WG6r8+svlavhYYzU BG4LgssL3Sjzzek+3REZPkpqsT/Vdf2mZV4r0iOqG+QOH6SyTf+gv94gqEmDDQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=mNTDCM1V; dmarc=pass (policy=none) header.from=riseup.net; 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.02 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=mNTDCM1V; dmarc=pass (policy=none) header.from=riseup.net; 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: E163845655 X-Spam-Score: -4.02 X-Migadu-Scanner: scn1.migadu.com X-TUID: y1EEgOu7sE3t 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") .