From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KAt0FwX8L2FjhgEAgWs5BA (envelope-from ) for ; Thu, 02 Sep 2021 00:17:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 8OQIEwX8L2FaZwAAbx9fmQ (envelope-from ) for ; Wed, 01 Sep 2021 22:17:41 +0000 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 5BE521B63F for ; Thu, 2 Sep 2021 00:17:40 +0200 (CEST) Received: from localhost ([::1]:48770 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLYY7-0006rB-60 for larch@yhetil.org; Wed, 01 Sep 2021 18:17:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLYXP-0006qQ-7m for help-guix@gnu.org; Wed, 01 Sep 2021 18:16:55 -0400 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21120) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLYXL-0006jz-In for help-guix@gnu.org; Wed, 01 Sep 2021 18:16:54 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1630534610; cv=none; d=zohomail.com; s=zohoarc; b=TMy99O2SNnzegjxb9YJeBo4YMo62eemhs8piOB5KVi1PuDeK+I8fUqe/gYITj/mt06mt/T3blOp81/zqKtAFiXXAtTHbmX2ss06ruQ2gOH7sdfxKEqbGfEoh5amM+2WbtqUtrnk4yAIkF6xjKXfUoVmRcxiGTNE2jjPFhKOHNDw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1630534610; h=Content-Type:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=QbXpdho4j6skFm4IdjB8uajL+10sf3bqzCLoLvDDtFw=; b=Pffp5eVc7MpNAGdOPlAXeudd3UeqRqDs6DrDuh1fpaq2BN9a1bzYWIhn26uBzCMw/QLzQDNtunmZmOQsmyZSAIYkRBKqueCtp28Q6YWtpuUujq21/jCf9p16/EIsLEyy6Yi0eK618ZSRKuyXLCIH7nziH3+mx7nCIuMi0kHxtwg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=a-rx.info; spf=pass smtp.mailfrom=rx@a-rx.info; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1630534610; s=zoho; d=a-rx.info; i=rx@a-rx.info; h=From:To:Subject:References:Date:In-Reply-To:Message-ID:MIME-Version:Content-Type; bh=QbXpdho4j6skFm4IdjB8uajL+10sf3bqzCLoLvDDtFw=; b=KsOp3Sca4gc8Uuqm6REbYGRqecfom8XLFG+W/z/OHKeJaz4m4UiuWQ3KLP/cCX34 K4ZSvOibpzatrGZV58Br+aLxEAbYlZnv2U9bNQCZKmbs5knwMJ2hMMeHYdj5Qgkgjcl d4YICnZcp4TlX1HoToaWjOzS3LdQ504B2sjWDK4w= Received: from softland (host5-81-182-101.range5-81.btcentralplus.com [5.81.182.101]) by mx.zohomail.com with SMTPS id 1630534607794980.4714120776598; Wed, 1 Sep 2021 15:16:47 -0700 (PDT) Received: from rx by softland with local (Exim 4.94.2) (envelope-from ) id 1mLYXF-008PZ7-M5 for help-guix@gnu.org; Wed, 01 Sep 2021 23:16:45 +0100 From: Andreas Reuleaux To: help-guix Subject: Re: pulling from my personal channel only - is this possible ? References: <87ilzk2sna.fsf@softland> <20210901185358.3445d42c@amethyst> <87fsuot70w.fsf@softland> <20210901235746.5f651b7d@amethyst> Date: Wed, 01 Sep 2021 23:16:45 +0100 In-Reply-To: <20210901235746.5f651b7d@amethyst> (raingloom@riseup.net's message of "Wed, 1 Sep 2021 23:57:46 +0200") Message-ID: <878s0gvt4i.fsf@softland> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rx@a-rx.info; helo=sender4-of-o51.zoho.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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 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 ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630534660; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=QbXpdho4j6skFm4IdjB8uajL+10sf3bqzCLoLvDDtFw=; b=Fncq6Bw7fZTIDnzCzSKZKBXL3NBAd/61EnYrWO5ejxG1aoT9V2aNj0EwXk/1HBNWq3+x+9 mtQIAMBx9d3xh0EWlxvDpuzK+t/fce8x0Imtq8eKXdBn0jQ46hHZjKHcQVfpgESBe2Q/tv HNtzoyejl3Sg4Gj2adc4hTnAvZ8eWbB4zFuASCPVcizivar5ZPcTW1+467HgcBMy0sbULg 0uXzLPpQhfJXCJrf2Ud094uo2g/iyXwVgAfsc9tYVYCFLvzk+odpi3txgjKUiQsxdvuCCM nMgPItyCOYuFOBQLqu8Py5IvnkrcKJxxGLNdNtgP9JB5eZcaZFaAtLApLDEdHA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1630534660; a=rsa-sha256; cv=pass; b=To39hz7unnJDQCY+fdt7XLjOqKJqoerZJ7cdb8mgV+6TXRBsmtCIfPPVQN/MfTHfgjmibp kyKdZYVoidJEQ6ApCBEs2raj1ZeCWJZrJjV6PvHgkPHmkMVCkMAj+tB9gqwYFdZlSH+Pti n9wcM1zIc3WrsAITTMZ2NknICQkiPLrumwR4hhooUfVFXJh5NmP/GVOJntIqByzef2hhES G181kDfO3Rb3K5ae2PdgjjLAfpFmxoFiTomtwc2pasIA8wxiryXU9w9vw7EXEEKWmphj2q 844franorfoT7diZc8svmqB+AOY6GX50i/5UixNst2HimQGCmHScrdkHjgA/7g== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=a-rx.info header.s=zoho header.b=KsOp3Sca; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -0.62 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=a-rx.info header.s=zoho header.b=KsOp3Sca; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 5BE521B63F X-Spam-Score: -0.62 X-Migadu-Scanner: scn1.migadu.com X-TUID: 1rEaDO5W82LY Thanks again, I will have a look (but not tonight any more). -A raingloom writes: > On Wed, 01 Sep 2021 20:44:47 +0100 > Andreas Reuleaux wrote: > >> raingloom writes: >> >> > None that I'm aware of, but you don't need to push/pull to test >> > anything. Just use the --load-path argument or the GUILE_LOAD_PATH >> > environment variable. That way you can use a local checkout. >> >> >> >> Well, OK, thanks: >> >> I am experimenting, and apparently all three: guix pull, guix >> package, guix build accept a --load-path parameter: >> >> * If I call guix pull with --load-path... it still takes ~ 53s, >> and I wanted to do that only once per day, say -- ruling out this >> possibility >> >> * Thus I am trying to use a --load-path w/ guix package -i, >> or guix package -u (instead of using my personal channel) >> but with not too much success yet, cf. below > > I don't think --load-path makes much sense for guix pull. Pretty sure > that would only make sense if you were modifying the guix or gnu > namespaces, or in other words, Guix itself. > >> * maybe I should use --load-path w/ guix build instead ? >> not sure, if this make sense in my case. > > It does, that is how you should be building packages. Either with > --load-path or loading an expression from a file. > >> Setting the stage now: with my personal channel set up, I can >> install a few haskell packages (not found in guix core yet): >> as specified in my manifest file: >> --8<---------------cut here---------------start------------->8--- >> guix package -m ~/cfg/stuff/manifest-hs.scm >> --8<---------------cut here---------------end--------------->8--- >> >> with manifest-hs.scm: >> --8<---------------cut here---------------start------------->8--- >> (specifications->manifest >> (list >> >> ;; "cabal-install" >> >> "ghc" >> >> ;; [channel] >> "ghc-filepattern" >> >> ;; [channel] >> "ghc-formatting" >> >> ;; [channel] >> "ghc-heaps" >> >> ;; [channel] >> "ghc-js-dgtable" >> >> ;; [channel] >> "ghc-map-syntax" >> >> ;; [channel] >> "ghc-quickcheck-text" >> >> ;; [channel] >> ;; "ghc-shake" >> >> ;; [channel] >> "ghc-string-interpolate" >> >> )) >> --8<---------------cut here---------------end--------------->8--- >> >> [channel] comments therein indicate, that these packages are from my >> channel (just as a reminder for me), for example "ghc-formatting" is >> from my channel, whereas "ghc" is from guix core. -- "ghc-shake" used >> to work for me before, but now has issues - unrelated to my question >> though, thus commented out for now (and a good candidate maybe for >> building with guix build -f ghc-shake.scm). >> >> >> Those packages I get installed just fine >> (and note in particular, that ghc-formatting is at v7.1.3 - >> we will change that below): >> >> --8<---------------cut here---------------start------------->8--- >> rx@dell ~$ guix package -I >> ghc-string-interpolate 0.3.1.1.849b579 out >> /gnu/store/g8rw5ppn3sdfayzfgrdq79xy3b0jkz58-ghc-string-interpolate-0.3.1.1.849b579 >> ghc-quickcheck-text 0.3.1.1.849b579 out >> /gnu/store/60wnvhmf4vjm23d85nxga4mxh2v5xhly-ghc-quickcheck-text-0.3.1.1.849b579 >> ghc-map-syntax 0.3.02d857z out >> /gnu/store/m3bawbfw6pqd9rrn6pwydi689dwbpjzc-ghc-map-syntax-0.3.02d857z >> ghc-js-dgtable 0.4-849b579 out >> /gnu/store/3g3nr1b0jl8syw52vq3dzqd0zfrq85m8-ghc-js-dgtable-0.4-849b579 >> ghc-heaps 0.4-849b579 out >> /gnu/store/hp5d0dakjh17j92q7n1z656jhc3wbjhb-ghc-heaps-0.4-849b579 >> ghc-formatting v7.1.3.849b579 out >> /gnu/store/znblyzx2ki9fjx3a61m247ksgx6lc4vf-ghc-formatting-v7.1.3.849b579 >> ghc-filepattern 0.1.2-849b579 out >> /gnu/store/jg1qyss1mms7iamplxkrbyicvc08n462-ghc-filepattern-0.1.2-849b579 >> ghc 8.8.4 out >> /gnu/store/0284m9ddms3w10zh1shgkimnjbidzy5j-ghc-8.8.4 git >> 2.33.0 out >> /gnu/store/g69aj4572bllw73phbpxqbpgqb7s3zyl-git-2.33.0 rx@dell ~$ >> --8<---------------cut here---------------end--------------->8--- >> >> >> >> Now I remove my .config/guix/channels.scm: >> >> --8<---------------cut here---------------start------------->8--- >> rx@dell ~$ rm ~/.config/guix/channels.scm >> --8<---------------cut here---------------end--------------->8--- >> >> pull again (just guix core this time): >> >> --8<---------------cut here---------------start------------->8--- >> rx@dell ~$ guix pull >> Updating channel 'guix' from Git repository at >> 'https://git.savannah.gnu.org/git/guix.git'... Building from this >> channel: guix https://git.savannah.gnu.org/git/guix.git >> c75b30d Computing Guix derivation for 'x86_64-linux'... - >> --8<---------------cut here---------------end--------------->8--- >> >> and remove my packages: >> >> --8<---------------cut here---------------start------------->8--- >> rx@dell ~$ guix package -r ghc-string-interpolate ghc-quickcheck-text >> ghc-map-syntax ghc-js-dgtable ghc-heaps ghc-formatting >> ghc-filepattern The following packages will be removed: >> ghc-filepattern 0.1.2-849b579 ghc-formatting >> v7.1.3.849b579 ghc-heaps 0.4-849b579 >> ghc-js-dgtable 0.4-849b579 >> ghc-map-syntax 0.3.02d857z >> ghc-quickcheck-text 0.3.1.1.849b579 >> ghc-string-interpolate 0.3.1.1.849b579 >> >> hint: Consider setting the necessary environment variables by running: >> >> GUIX_PROFILE="/home/rx/.guix-profile" >> . "$GUIX_PROFILE/etc/profile" >> >> Alternately, see `guix package --search-paths -p >> "/home/rx/.guix-profile"'. >> >> rx@dell ~$ guix package -I >> ghc 8.8.4 out >> /gnu/store/0284m9ddms3w10zh1shgkimnjbidzy5j-ghc-8.8.4 git >> 2.33.0 out >> /gnu/store/g69aj4572bllw73phbpxqbpgqb7s3zyl-git-2.33.0 rx@dell ~$ >> --8<---------------cut here---------------end--------------->8--- >> >> >> >> Now having my packages locally (as from a git clone for example - I am >> developing them on another (debian) machine really - thus git comes in >> handy to get them on my guix machine dell as well): >> >> --8<---------------cut here---------------start------------->8--- >> rx@dell ~/tmp$ git clone http://git.a-rx.info/channel/ >> Cloning into 'channel'... >> --8<---------------cut here---------------end--------------->8--- >> >> >> Now I try to install them w/ --load-path: >> >> --8<---------------cut here---------------start------------->8--- >> rx@dell ~$ guix package --load-path="/tmp/rx/channel" -m >> ~/cfg/stuff/manifest-hs.scm guix package: error: ghc-filepattern: >> unknown package guix package: error: failed to load >> '/home/rx/cfg/stuff/manifest-hs.scm': gnu/packages.scm:543:4: In >> procedure specification->package+output: Throw to key `quit' with >> args `(1)'. rx@dell ~$ >> --8<---------------cut here---------------end--------------->8--- >> >> >> Not too convincing :-( - > > You probably used the wrong path. I've made that mistake before. > Testing it on one of my Guix systems: > ``` > root@blue ~# cd /tmp > root@blue /tmp# git clone http://git.a-rx.info/channel/ > Cloning into 'channel'... > root@blue /tmp# guix package --load-path="/tmp/channel" --show=ghc-filepattern > name: ghc-filepattern > ```