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 uDrXCJzCuGKEPQAAbAwnHQ (envelope-from ) for ; Sun, 26 Jun 2022 22:33:32 +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 4HrtB5zCuGKDOwEAG6o9tA (envelope-from ) for ; Sun, 26 Jun 2022 22:33:32 +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 ACA7A259BF for ; Sun, 26 Jun 2022 22:33:31 +0200 (CEST) Received: from localhost ([::1]:54292 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5Ywk-00018q-EG for larch@yhetil.org; Sun, 26 Jun 2022 16:33:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39892) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5Ywf-00017i-DG for help-guix@gnu.org; Sun, 26 Jun 2022 16:33:25 -0400 Received: from mta-11-3.privateemail.com ([198.54.122.105]:63338) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5Ywc-0003bT-Lc for help-guix@gnu.org; Sun, 26 Jun 2022 16:33:24 -0400 Received: from mta-11.privateemail.com (localhost [127.0.0.1]) by mta-11.privateemail.com (Postfix) with ESMTP id 9889618000A8; Sun, 26 Jun 2022 16:33:11 -0400 (EDT) Received: from guix (unknown [10.20.151.197]) by mta-11.privateemail.com (Postfix) with ESMTPA id 2254A18000A4; Sun, 26 Jun 2022 16:33:10 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dominicm.dev; s=default; t=1656275591; bh=9LyEL6fST7gVT4AdoF38mQNh1WhP+v/60cfSOiSOP0Y=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=FhZ0RoxOfcAlfGT8/j6Nj9E4yki3BVETtPN4Y03FEAxfJSDFatzUValiPm83Nh7TK TcDNlwD5iM1JGNsl0zRsn2gBX+Kv5IzqHYIWcziiodl9TCgSybX1T+R0pHhgDrmtpq z9Ud3xdk8bp7EgbhfRhtQg8hLaFnxJuYeYXuq52xd/F4VxibYt65oL0carLIPfrHnW LYjltGhh6Z94ZohryiLo++KbXTfy9FmmZaIdpBd/UNNOHQ6PwH0xeG8GwbNBE8MHhh PwOvCFfpN9FoAM6RYerIy4Z+cSn+M1YnemdcO0yv0gMUJvam0+gJlLsHVyuMXiII7V DrimvBCg5MXYA== References: User-agent: mu4e 1.6.11; emacs 28.1.50 From: Dominic Martinez To: rdes Cc: help-guix@gnu.org Subject: Re: adding custom package to guix home Date: Sun, 26 Jun 2022 16:10:13 -0400 In-reply-to: Message-ID: <87v8snb1xe.fsf@dominicm.dev> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Virus-Scanned: ClamAV using ClamSMTP Received-SPF: pass client-ip=198.54.122.105; envelope-from=dom@dominicm.dev; helo=MTA-11-3.privateemail.com 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, RCVD_IN_DNSWL_NONE=-0.0001, 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=1656275611; 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=/D33OVyYbXjZw9f3AuSmtwdkfPXdE3Ov5nU/DRYYi54=; b=C1JXZ0pQoJAhp91mOiIHGcnqC9jFJiWlYwzGyZsTJCgLeG3qF/UwupjHr7q99fU45pcb7F wQkulxm04mVE0jkgR93ALkxJOOda/KfL8fbhhrGMuFOI4SGVE8FPdW4VyxFiE2llxTTRBs QRwuwrawi9d7zGDEccYNV/FXwebd2h6BKwgOmMPmbxgW1clw7KBuFsnrU88FCnQKe35TSE sKHQwnpybcBAiiVmlBYXBRNyV7sp3O9tjEn6FzPA9IQv18qkiXOc6+Cy9RjS/2eurKVzcL lMAnaYJXYXTGbzc8eBp0snqFrluyXgjDZ5kXRBmBS8hy9WR+LyTuf+tyZZ2Z6A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656275611; a=rsa-sha256; cv=none; b=UVWqEyD8s93n2wuVz/kQ/7OfnpN+QxgRxmMJvncyvLXsGeeHqxAaz5qjPljWliPEG5hIHA NgNkhUNUC+zVD+Zlz/rZFu9/+z7qq6/H2GJuLE5oY9xgzZeNyfMXajk2DfgrCon9P21YjS vBtGC72Zd7wuT48i2netcCIWpCZbqZUGlvh1KF8Z2tfnnqS8g3tLBnsRvzX27kv10ovqwM vikzSN5E5chW3YzPOe7mUxrHWUeF6hpROnVilol1klRrnKMKSYqTG2zk8t5jztNqqLL1Q5 hpPd63/v39WTe6PJfVlXDnD8SQxXhOHpdgcs3qZjgBWGt+ogPXXKneoxMnDFRw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dominicm.dev header.s=default header.b=FhZ0RoxO; dmarc=none; 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: -0.36 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dominicm.dev header.s=default header.b=FhZ0RoxO; dmarc=none; 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: ACA7A259BF X-Spam-Score: -0.36 X-Migadu-Scanner: scn0.migadu.com X-TUID: BVfebJmTzlwV --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable rdes via writes: > Hello, > > I'm trying to add emacs-svg to my package list in my guix home configurat= ion, > but I'm getting "no code for module (emacs-svg)" error when using use-mod= ule=E2=80=8B and > "guix home: error: emacs-svg: unknown package" error when I include the p= ackage > definition in the guix home configuration file. > > I've added my configuration files my snippets: . 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 an 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 guix ... # or guix -L path/to/module/dir ... #+end_src You also shouldn't put `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. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQRtp6gAxeTcYmhxQ/1Bnl1fEVBrXQUCYrjCfQAKCRBBnl1fEVBr XaofAP4tDERReFFyqWM2FxRGRbd94v6Y3b6pmrRMridyR9w/hwEA/j/5AaiflzdA K6QoZKAJniBaByVjKoa7lTaRJHbmnQY= =Ymxy -----END PGP SIGNATURE----- --=-=-=--