Pierre Neidhardt <[email protected]> writes:
>[snip]
> --8<---------------cut here---------------start------------->8---
> (define-public cross-gcc
> (package
> (inherit ((@@ (gnu packages cross-base) cross-gcc)
> "i686-unknown-linux-gnu"
> #:libc (cross-libc "i686-unknown-linux-gnu")))
> (name "cross-gcc")))
> --8<---------------cut here---------------end--------------->8---
>
> Then
>
> --8<---------------cut here---------------start------------->8---
> $ guix build cross-gcc
> ...
> guix build: error: cross-gcc: unknown package
> --8<---------------cut here---------------end--------------->8---
>
> Is this expected?
Would `guix build cross-gcc-i686-unknown-linux-gnu' work?
I *think* the guix command line interface uses the package's name field
to resolve the right package objects, not the guile variable name.
In `(gnu packages cross-base)' -> `cross-gcc':
--8<---------------cut here---------------start------------->8---
(name (string-append "gcc-cross-"
(if libc "" "sans-libc-")
target))
--8<---------------cut here---------------end--------------->8---