From: Lee Thompson <lee.p.thomp@gmail.com>
To: help-guix@gnu.org
Subject: Trouble installing bind using home-configuration.scm/config.scm
Date: Fri, 25 Oct 2024 12:46:05 +0100 [thread overview]
Message-ID: <87bjz8wgle.fsf@gmail.com> (raw)
I'm having trouble installing the `bind' package declaratively. Running
`guix show bind' returns the bind package, but when I add `(gnu packages
dns)' to my home-configuration.scm and the bind package to `packages'
like so I run into an exception during reconfiguration:
> (use-modules (gnu home)
> (gnu home services)
> (gnu packages)
> …
> (gnu packages dns))
>
> (home-environment
> (packages (list …
> bind
> …)))
> (services …)
After running `guix home reconfigure
~/.config/guix-config/home-configuration.scm':
> …
> In gnu/home/services.scm:
> 167:37 8 (_ #<store-connection 256.100 7fd2ba4d7a50>)
> In guix/profiles.scm:
> 439:4 7 (packages->manifest _)
> In srfi/srfi-1.scm:
> 586:29 6 (map1 (#<package htop@3.3.0 gnu/packages/admin.scm:8…> …))
> 586:17 5 (map1 (#<procedure bind (_ _ #:optional _ . _)> #<pa…> …))
> In guix/inferior.scm:
> 560:2 4 (loop #<procedure bind (_ _ #:optional _ . _)> "out" #<…>)
> 540:4 3 (inferior-package-input-field #<procedure bind (_ _ #:…> …)
> 484:18 2 (inferior-package-field #<procedure bind (_ _ #:option…> …)
> In ice-9/boot-9.scm:
> 1685:16 1 (raise-exception _ #:continuable? _)
> 1685:16 0 (raise-exception _ #:continuable? _)
>
> ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> In procedure struct-vtable: Wrong type argument in position 1 (expecting struct): #<procedure bind (_ _ #:optional _ . _)>
It looks pretty obvious that this is having some interaction with the
standard Guile `bind' procedure. Is this intended behaviour? I can
imagine using `specification->package' could get around this but I
wanted to hear some other opinions.
Also while looking into this I found this section of the info manual
that talks about an `isc-bind' package I've been unable to get Guix to
find; is this a former name of the current `bind' package? Relevant
info section:
> Globally-Visible Packages
> -------------------------
>
> The ‘packages’ field lists packages that will be globally visible on the
> system, for all user accounts—i.e., in every user’s ‘PATH’ environment
> variable—in addition to the per-user profiles (*note Invoking guix
> package::). The ‘%base-packages’ variable provides all the tools one
> would expect for basic user and administrator tasks—including the GNU
> Core Utilities, the GNU Networking Utilities, the ‘mg’ lightweight text
> editor, ‘find’, ‘grep’, etc. The example above adds GNU Screen to
> those, taken from the ‘(gnu packages screen)’ module (*note Package
> Modules::). The ‘(list package output)’ syntax can be used to add a
> specific output of a package:
>
> (use-modules (gnu packages))
> (use-modules (gnu packages dns))
>
> (operating-system
> ;; ...
> (packages (cons (list isc-bind "utils")
> %base-packages)))
next reply other threads:[~2024-10-25 11:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-25 11:46 Lee Thompson [this message]
2024-10-25 11:55 ` Trouble installing bind using home-configuration.scm/config.scm Andreas Enge
2024-10-25 12:28 ` Tobias Geerinckx-Rice
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=87bjz8wgle.fsf@gmail.com \
--to=lee.p.thomp@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.