From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EP2YOyXouGJiPAAAbAwnHQ (envelope-from ) for ; Mon, 27 Jun 2022 01:13:42 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id qJ5zOyXouGJFhQAAauVa8A (envelope-from ) for ; Mon, 27 Jun 2022 01:13:41 +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 AF4D2B770 for ; Mon, 27 Jun 2022 01:13:40 +0200 (CEST) Received: from localhost ([::1]:35578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5bRj-0003uD-6f for larch@yhetil.org; Sun, 26 Jun 2022 19:13:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35390) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5bRX-0003u4-GN for help-guix@gnu.org; Sun, 26 Jun 2022 19:13:27 -0400 Received: from mail-40141.protonmail.ch ([185.70.40.141]:10199) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5bRT-00057V-Fs for help-guix@gnu.org; Sun, 26 Jun 2022 19:13:26 -0400 Date: Sun, 26 Jun 2022 23:13:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail3; t=1656285199; x=1656544399; bh=IgLBtY1yGbN2hSBfBe6qnCvzO6dr9P8d3h8gVOmhKs8=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=QX59o6th7mTEZEgp3PxBIx0T7xHwJ8cd+9GV5YG5CdZVUN7uIL5xNbezoEDS05ZIp 4Mr1VZvLkMryJGKpPlDFhjSrPjfO/3JOEvJQAMq0CP23782tGjIkZ0t0+8uwz9IN3m 8+qr+yRu+NfEPo0Ukr2jS7gQF2xKJJIER1LUWqqo9/6gnRYv0JvTqBwihQumpWHsk2 BhOgfSIVVy00DoY96NoqSgcW5uzTzBhaCAmQrnOpDHdd7rC/A/JPJE/KGE2K8qcf4F FRJI3SV7Ba2Y4FE2FXNSEKUNWjjXU4uIjGuia/y4OmoJnxy1My2C4qflQfGT2ZFFBQ xTnaX+lwY3iwQ== To: Dominic Martinez From: rdes Cc: help-guix@gnu.org Subject: Re: adding custom package to guix home Message-ID: In-Reply-To: <87v8snb1xe.fsf@dominicm.dev> References: <87v8snb1xe.fsf@dominicm.dev> Feedback-ID: 49029299:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.141; envelope-from=rdes@proton.me; helo=mail-40141.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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: , Reply-To: rdes 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=1656285221; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=IgLBtY1yGbN2hSBfBe6qnCvzO6dr9P8d3h8gVOmhKs8=; b=kH7eq1kOn8jzOliPo6M/b1rvtd58z2pDviFeS7RB4pGl2H7TkWKI/7cpw4E7TLD1vNow3H zOguYhQba0Ozl6C1Lfgk0vP1dwLoSDPLLiqyZucnd4odLg/fSOTX4lywpozb71VLeSqMsJ pSyce+AB259Wj8bPIk7Omj8qFQepACaYmVRBuRQPYUspj4DUPT2gFW4OFgz5aDdqgwPi4e dpekP/eTZh4Jvz1FEvUbb+mrrZOP6GxMbouVeplCIlu/Bj5FrxtQkEQL4BGVzAQ+Bt8zaA J5YW7Q6SuNbYzg6eg2AP38RmqdTT87rk5zxqTHtrRovFj0KjalPQCgxu4Q6hyA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656285221; a=rsa-sha256; cv=none; b=sVcavAKpvnMX/I4P6bzr7z+/AkmQZO1FCC/3TpeAwMRMkoeu17xvfcpU16VgTONnSvN44Q nofeEOrpbnlPnw5MwQWhHE1xES8COs/DmxjMg46BSPTzmJUsWeN5WXwdmU53iwKAiMu+cE S7TDE5xTacxOlIAg3FxE5dH02wyAvpQMzRDFjdBj+VLhaL1S9Or1nIGMbkP9/j5w1AQ3zQ agWCTCRmTPQPetl3UqBkkFTVZYitO9O3oYcgntInXtEN9EMXdlihqLFPAKdPDbIdUfuic7 S142lA3BoIAJ5Zxz4Pey30ss7fto8+H5U60oGSPS9icgXXtzytCTj+jtYfmsFw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=proton.me header.s=protonmail3 header.b=QX59o6th; dmarc=pass (policy=quarantine) header.from=proton.me; 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: -3.95 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=proton.me header.s=protonmail3 header.b=QX59o6th; dmarc=pass (policy=quarantine) header.from=proton.me; 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: AF4D2B770 X-Spam-Score: -3.95 X-Migadu-Scanner: scn1.migadu.com X-TUID: sPllhE5q7pLe Thank you Mr. Martinez, I appreciate you taking the time to explain this to me. Your recommendatio= ns resolved my issues. - Ryan Sent with Proton Mail secure email. ------- Original Message ------- On Sunday, June 26th, 2022 at 4:10 PM, Dominic Martinez = wrote: > rdes via help-guix@gnu.org writes: > > > Hello, > > > > I'm trying to add emacs-svg to my package list in my guix home configur= ation, > > but I'm getting "no code for module (emacs-svg)" error when using use-m= odule and > > "guix home: error: emacs-svg: unknown package" error when I include the= package > > definition in the guix home configuration file. > > > > I've added my configuration files my snippets: https://gitlab.com/-/sni= ppets/2360492. > > > There's two separate problems here: trying to use 'emacs-svg' as a > specification, and Guile module loading. > > `specification->package' turns a specification (what you type into 'guix > > install') into a package (the actual variable that contains the > package). However, it only works on packages that are part of your Guix > installation. Instead, you should directly add the variable you defined > to the packages list: > > #+begin_src scheme > (home-environment > (packages > (cons* > emacs-svg > (map specification->package...)))) > > #+end_src > > As for why `#:use-module (emacs-svg)' didn't work, I'm assuming you didn'= t augment Guile's load path. You can augment the load path either through a= n environment variable, or for a specific Guix command via the command line= : #+begin_src shell GUILE_LOAD_PATH=3D$GUILE_LOAD_PATH:path/to/module/dir g= uix ... # or guix -L path/to/module/dir ... #+end_src You also shouldn't pu= t` emacs-svg' as the last line in your module. That > pattern is useful when developing a package (e.g. with a 'guix.scm' file > in your repo), but modules should not evaluate to a value.