all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Timothy Washington <twashing@gmail.com>
To: help-guix@gnu.org
Subject: Re: Access to nongnu channel
Date: Sat, 7 Dec 2024 12:18:08 -0500	[thread overview]
Message-ID: <CAADtM-Zjx-BgAoq5exGL901ZxGwa8xgu-Mm98=FJh9xonpAPbA@mail.gmail.com> (raw)
In-Reply-To: <1824717.VLH7GnMWUR@aisaka>

Hey Marek,

I should have updated this earlier. But I did solve this problem with a
cleaner `packages` declaration.

(packages
 (append
  (map specification->package
       '("nss-certs"
         "gcc-toolchain"
         ...))
  (list my-package)
  %base-packages))

Thanks for the feedback. Indeed, for me this is an exercise in learning
Guix and developing my understanding of its modules.

Cheers
Tim


On Fri, 6 Dec 2024 at 18:12, Marek Paśnikowski <marek@marekpasnikowski.pl>
wrote:

> On poniedziałek, 2 grudnia 2024 15:58:31 CET Timothy Washington wrote:
> > => However, I seem to get further along when I specify "channels.scm".
> > After adding "(guix profiles)" to the "use-modules" in system.scm...
> >
> > (use-modules (gnu)
> >              (nongnu packages linux)
> >              (guix profiles))
> >
> >
> > I get a bit further, where guix can't find another form... *Which package
> > has "manifest->packages" ?*
> >
> > $ guix pull --channels=channels.scm
> > ...
> >
> > $ guix system reconfigure system.scm
> > /home/twashing/dotfiles/system.scm:36:6: error: manifest->packages:
> unbound
> > variable
> > hint: Did you forget a `use-modules' form?
> >
>
> You have to learn to recognize this class of error.  It means you failed
> to
> specify the module containing the definition of (manifest->packages)
> function.
>
> I do not use it myself, so I don’t know where it is defined.
>
> Also, your package list construction is clunky and round-about.  I
> recommend
> taking a look at specification->package+output, if I recall correctly, at
> least.  I have had no issues with listing package variables directly.
>
> I am still in the process of refactoring my module collection, but take a
> look
> at this file in particular to see a very different style of programming
> Guix.
>
> You are free to browse the other files for more inspiration, but be warned
> not
> to replicate the (@ (module) variable) syntax — it ended up backfiring in
> a
> most subtle of ways, and now I am undoing weeks of work to remove it.
>
> Marek Pasnikowski
>

      reply	other threads:[~2024-12-07 17:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-02  6:10 Access to nongnu channel Timothy Washington
2024-12-02  6:53 ` Tobias Geerinckx-Rice
2024-12-02 14:58   ` Timothy Washington
2024-12-06 23:11     ` Marek Paśnikowski
2024-12-07 17:18       ` Timothy Washington [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAADtM-Zjx-BgAoq5exGL901ZxGwa8xgu-Mm98=FJh9xonpAPbA@mail.gmail.com' \
    --to=twashing@gmail.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.