From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id yFkGMvp0OmVCZQEAG6o9tA:P1 (envelope-from ) for ; Thu, 26 Oct 2023 16:17:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yFkGMvp0OmVCZQEAG6o9tA (envelope-from ) for ; Thu, 26 Oct 2023 16:17:30 +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 203A73B810 for ; Thu, 26 Oct 2023 16:17:30 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=ZL8si1Kq; dkim=pass header.d=wolfsden.cz header.s=mail header.b=ZL8si1Kq; dmarc=pass (policy=none) header.from=wolfsden.cz; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1698329850; a=rsa-sha256; cv=none; b=X2D8mRCkmKPzpz9Uvn8+tV/y0k9LrTQneerUadjI1S+C7SKYvtKUTImDaxXhNVIZN46/JY 5CLHESnJ/iam7xOOyG0mqyJ2tnnszB7fWvLxUXSJu4VYMJ3R3IHj1b9On6iMXML5B5Z64t lApkANTKHdDs+RLphT5xWGbr8eSzMrvr90rgtZfJJcHpaHoYIXKiGHHOSiGCjBsAO+9sfe j3PK7Njl2SSgmNe+W3KOsHIJFJzzPrtgb4uq2n/e4zSKE6RzXYqkugCyD1rfp9gWJKg+6I AuRkFWd6lmwN7X/19ihl7wjrMG3Ya6/PB6jP73pcYHkxuKyTc/aHoin//rocsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1698329850; 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=He08/ewFr2kJ89igdlIaPUhfXcaRCKBusuq3BFu9sZ4=; b=LDimspmMcIzxKGg35hWJCPVTFwBz8Ikr+CEiuOWDk0NfDBzGMbMM+XcMK79t5OQrr93y2o 2t/ClrtlP01A8+deMUq8yY9JWFJhL9Rzm0/bMgs1aI7uqdE19XPIpB43JKQe8YFPLQ23+1 4oX3qZKBCMdrjy7he5hyjwUoauy+vUon84o/I3K9E7Zz9X13QJukBkIL6Md32k7P3srcYJ Qc9/MtLayEiF0gevHg3ZWkbXrnyetLbPlBJgGx6V9USc8Br0uaUT4e6GWVXwVL3Gxz2r1v WI4SaB/qkz8a5Gg16fzss39PCSDs/DWDoKZh+CIQk+WPMuTx+btJzi2gBOsJsQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=ZL8si1Kq; dkim=pass header.d=wolfsden.cz header.s=mail header.b=ZL8si1Kq; dmarc=pass (policy=none) header.from=wolfsden.cz; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qw1AS-0008P1-Cc; Thu, 26 Oct 2023 10:17:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qw1AH-0008Nn-Gi for help-guix@gnu.org; Thu, 26 Oct 2023 10:16:51 -0400 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qw1AC-0005GW-5e for help-guix@gnu.org; Thu, 26 Oct 2023 10:16:49 -0400 Received: by wolfsden.cz (Postfix, from userid 104) id 9E29E272FCB; Thu, 26 Oct 2023 14:16:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1698329797; bh=xq5eJfcxfwjRxOjOWniNGjhhqH1i+965NQEDs405kpE=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=ZL8si1KqbIs6zenMl7lD7WhNigzImInjAmit3b8aDKNlX8CT0JWK4ER+3TPh2Au/H s2EEP4IDkb+A+eHD/1d7AlDlBrQ9xobvoHZWVoaL9bLtagm6oJpIFCLg/x1LlZQ4eK fyROZQ1mPfTNU1B5EXW4fWU/SnXa958zCFnYoVa6ExU8ODFNhEw079JHohsBFsB1xY xy91UWLB2uqazddGaoTfPV/gtJvt3pFyU0+oe7WE+SoZ6G0OX0WVcjl6Y54IM485G+ tnFPiL/wvrZQD0BVnvtLykZp4MdshclAQW6FoMrLFnpw9AOkgMikYqwkIzgvM8X/q9 hZKV9wzGhrpgd7+zgu7f1CsFGpE8XJCS784/OyzErzXQjelh5GI5Xru8vHccpK7LRj CNe8ZOhPIIRm4GKqfeM6K8Ufm8UQjJE60OwVobY0B4egm+ivi5a1I6L+mXNr14gmkn R2xFC+/JsPw3tMu2RIkAimZShq4iQEPwbDoTKVhHb3OYYIipMveWdtnS/ggghd0lbg /wjeeYkovTbqvsCIY/48PaqQWWPSubiToNo3ruiePMg0gXRHaEWvA5Dt8KIXBfqf/C 4WTBQFNT3u9gfJiouhMedUqwAozYHHb7H0LvVYL5odIlcdh0UKlrQQTV9ZxhfFJNXA bv+WoOwQfCAO13IASo+qp+Cc= Received: from localhost (unknown [81.17.16.82]) by wolfsden.cz (Postfix) with ESMTPSA id E7682272F4F; Thu, 26 Oct 2023 14:16:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1698329797; bh=xq5eJfcxfwjRxOjOWniNGjhhqH1i+965NQEDs405kpE=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=ZL8si1KqbIs6zenMl7lD7WhNigzImInjAmit3b8aDKNlX8CT0JWK4ER+3TPh2Au/H s2EEP4IDkb+A+eHD/1d7AlDlBrQ9xobvoHZWVoaL9bLtagm6oJpIFCLg/x1LlZQ4eK fyROZQ1mPfTNU1B5EXW4fWU/SnXa958zCFnYoVa6ExU8ODFNhEw079JHohsBFsB1xY xy91UWLB2uqazddGaoTfPV/gtJvt3pFyU0+oe7WE+SoZ6G0OX0WVcjl6Y54IM485G+ tnFPiL/wvrZQD0BVnvtLykZp4MdshclAQW6FoMrLFnpw9AOkgMikYqwkIzgvM8X/q9 hZKV9wzGhrpgd7+zgu7f1CsFGpE8XJCS784/OyzErzXQjelh5GI5Xru8vHccpK7LRj CNe8ZOhPIIRm4GKqfeM6K8Ufm8UQjJE60OwVobY0B4egm+ivi5a1I6L+mXNr14gmkn R2xFC+/JsPw3tMu2RIkAimZShq4iQEPwbDoTKVhHb3OYYIipMveWdtnS/ggghd0lbg /wjeeYkovTbqvsCIY/48PaqQWWPSubiToNo3ruiePMg0gXRHaEWvA5Dt8KIXBfqf/C 4WTBQFNT3u9gfJiouhMedUqwAozYHHb7H0LvVYL5odIlcdh0UKlrQQTV9ZxhfFJNXA bv+WoOwQfCAO13IASo+qp+Cc= Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 36e98c10; Thu, 26 Oct 2023 14:16:35 +0000 (UTC) Date: Thu, 26 Oct 2023 16:16:35 +0200 From: Tomas Volf To: Jesse Cc: help-guix@gnu.org Subject: Re: Using local package in shell manifest Message-ID: Mail-Followup-To: Jesse , help-guix@gnu.org References: <6e04801a-dada-4dd2-a857-d58794eea478@millwood.earth> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="CC8CsHoCEVkims4I" Content-Disposition: inline In-Reply-To: <6e04801a-dada-4dd2-a857-d58794eea478@millwood.earth> Received-SPF: none client-ip=37.205.8.62; envelope-from=ws@wolfsnet.cz; helo=wolfsden.cz X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_PASS=-0.001, SPF_NONE=0.001, UNPARSEABLE_RELAY=0.001 autolearn=no 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -11.22 X-Migadu-Queue-Id: 203A73B810 X-Migadu-Spam-Score: -11.22 X-TUID: NNQAxAdqWSfa --CC8CsHoCEVkims4I Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2023-10-25 16:49:43 -0400, Jesse wrote: > Hello, >=20 > I have written a package that I have installed with "guix package > --install-from-file=3Dcrosstool-ng.scm". I was able to get it to build and > install. I can use it if I do "source ~/.guix-profile/etc/profile". >=20 > However, I would like to add it to a shell manifest. My manifest just > includes >=20 > (specifications->manifest > =A0 (list "gcc" "git" "zsh" "crosstool-ng")) >=20 > My understanding is that "specifications->manifest" is supposed to search > for the packages in the list? It returns the following when I rung "guix > shell" in the directory with the manifest.scm: >=20 > guix shell: loading environment from > '/home/jesse/Code/guix-tests/manifest.scm'... > hint: Consider passing the `--check' option once to make sure your shell > does not > clobber environment variables. >=20 > guix shell: error: crosstool-ng: unknown package > guix shell: error: failed to load > '/home/jesse/Code/guix-tests/manifest.scm': > gnu/packages.scm:545:4: In procedure specification->package+output: > Throw to key `quit' with args `(1)'. >=20 > I'd imagine it doesn't know where to look for the package? Is there a way= to > tell guix shell where to look? If not, is there a way to include the pack= age > in the manifest file? For what it's worth, I have attached the package fi= le > in question. I can think of few options: 0. If it would make sense to upstream the package, you should. That will s= olve your problem. 1. Next you could create your own channel, and publish the package there. = After adding the channel, it should also just work. 2. You could load the package by an absolute path and use it that way, some= thing like this (untested): (concatenate-manifests (list (specifications->manifest (list "gcc" "git" "zsh")) (packages->manifest (list (load "/home/.../crosstool-ng.scm"))))) 3. Alternative of the above would be to move the package definition into the manifest.scm itself, allowing you to drop the load invocation. Dunno, maybe there are better ways. >=20 > This is also my first foray into Guix and Guile, so I've been kind of > banging my head through writing a package and the manual but I got a litt= le > stuck here. >=20 > Thanks > (use-modules > (guix packages) > (guix git-download) > (guix licenses) > (guix profiles) > (guix build-system gnu) > (guix build-system python) > (guix build utils) > (gnu packages python) > (gnu packages autotools) > (gnu packages gettext) > (gnu packages texinfo) > (gnu packages pkg-config) > (gnu packages base) > (gnu packages flex) > (gnu packages gawk) > (gnu packages man) > (gnu packages bison) > (gnu packages compression) > (gnu packages ncurses) > ) >=20 > (package > (name "crosstool-ng") > (version "1.26.0") > (source (origin > (method git-fetch) > (uri (git-reference > (url "https://github.com/crosstool-ng/crosstool-ng.git") > (commit (string-append "crosstool-ng-" version)))) > (sha256 > (base32 > "04z7zwhxfbjqrd4j16lviilppsd8phwi8zv2rs4jpkmqni6856j1") > ) > )) > (build-system gnu-build-system) > (native-inputs > (list autoconf > automake > gettext-minimal > libtool > texinfo > bison > flex > gawk > unzip > which > help2man > python > ncurses > pkg-config)) > (arguments > '(#:phases (modify-phases %standard-phases > (add-before 'bootstrap 'fix-version-gen > (lambda* _ > (patch-shebang "maintain= er/git-version-gen") > ))))) >=20 > (synopsis "A versatile (cross-)toolchain generator.") > (description "A versatile (cross-)toolchain generator.") > (home-page "https://crosstool-ng.github.io/docs/") > (license gpl2) > ) T. --=20 There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --CC8CsHoCEVkims4I Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmU6dMMACgkQL7/ufbZ/ wamSmBAAkQuKPQbALJBZ/5ZOjFYsIeQxBsn1WaOVKpeCdl6jbOLJ3k7d0pMVy+Jj yW3sC+naxx5F30s6ND+ixV5SgSNEMIQEBTCmRATUZFfSt2ASRQD80/Gwk78oOMTl bbyPni4yXj6gDzImA0lq0Cf/8EjmvoPsVC1OEgs1ws3+uHgKA/qpxJKrGBsU5pin cjROXfW8MFxMXXjdyAi4PcrIeRwO4JdTd3q+1QOmvUMWPOzRw2yvCpw4idiwa7IU mufBqxyQ1vA+GHuyW/jxUg23Q85JaH+Zz+Q/HG00oaTOqd8l5r0w1CTH7awpj3l2 gXUgrlodxoJ9PE09ynyfe1l9ugA9dbzz1pBKCP3afYKN5lrGBTeADuGo9xNVsDVJ WcFIX1erXCejXuHXMGxEVOILFi4GHbRcRB3eGh/PoLflTRoSdeBVZc0o/lKoCI8L Z8+8P5q3v8lRuTo2jj6LN+YdFG8/hZbgNHxFirluTgT1MDC8I1mI1Gy7MKNIiA6C CpyYHxI3kxrMWZrVMvU8PDquQ5QEUmeWjGM6pMa8y+qP3XN3DQ7FjPUpOdGED+MD elvM+inPq45tf7ysY5BtNBOuY5d8H4dj9H5WJjTmtNGbJmlmWalSBG1gyECmRc+F tVThPcx34uZsskK5g8wSX0ncMaRYmjY4QfUrBMA+b09jgfIU84Q= =tIa4 -----END PGP SIGNATURE----- --CC8CsHoCEVkims4I--