From: "Jérémy Korwin-Zmijowski" <jeremy@korwin-zmijowski.fr>
To: Julien Lepiller <julien@lepiller.eu>, help-guix@gnu.org
Subject: Re: Guix can't build my dummy package definition
Date: Sun, 01 Mar 2020 16:49:19 +0100 [thread overview]
Message-ID: <3D6A8611-4CE8-4371-9C8F-00B7BB71479A@korwin-zmijowski.fr> (raw)
In-Reply-To: <E0F49A69-94F9-4CA8-96E8-D68442D2B2AE@lepiller.eu>
Of course !!!
I did know about it, I just forget it... Damn brain!
Thank you for your quick answers ! So cool.
I appreciate the three options you gave Julien. Helpful!
I can realize now how much my lack of curioisity cost. Haha awesome feedback for me.
Thank you again.
Jérémy
Le 1 mars 2020 15:50:28 GMT+01:00, Julien Lepiller <julien@lepiller.eu> a écrit :
>Le 1 mars 2020 07:58:27 GMT-05:00, "Jérémy Korwin-Zmijowski"
><jeremy@korwin-zmijowski.fr> a écrit :
>>Hey Guixters !
>>
>>I am experimenting one way to learn how to use Guix for packaging.
>>
>>I've a package dummy definition in /tmp/def.scm:
>>
>>(use-modules
>> (guix packages)
>> (guix build-system emacs)
>> (guix licenses)
>> (guix git-download))
>>
>>(define-public ac-geiser
>> (package
>> (name "")
>> (version "")
>> (source
>> (origin
>> (uri
>> (git-reference (url "")
>> (commit "")))
>> (method git-fetch)
>> (sha256 (base32 ""))))
>> (build-system emacs-build-system)
>> (synopsis "")
>> (description "")
>> (license bsd-3)
>> (home-page "")))
>>
>>Then when I do :
>>
>>./pre-inst-env guix build -f /tmp/def.scm
>>
>>I get :
>>
>>guix build: error: #<unspecified>: not something we can build
>>
>>What is Guix trying to tell yo me ? I have no clue...
>>
>>Does anybody have one ?
>>
>>Cheers
>
>I knew it was going to happen :)
>
>That message is indeed not very helpful. Internally, guix evaluates the
>file and uses its return value (the value the last expression evaluates
>to). Here, your last expression is a define-public which does not
>return any value (in other languages, it's called unit or void, in
>guile it's #<unspecified>). The solution is to make sure your last
>expression evaluates to a package object. Three solutions:
>
>1. Add a new line on which you put the name of the variable you define,
>so it evaluates to its content, the package object.
>
>2. Do not wrap the package definition in a define-public, but use
>package directly, so that it evaluates to a package expression
>directly.
>
>3. Define your file as a module, and use -L to add it to load path.
>Then guix will be able to necognise all your packages in that file by
>their name, instead of only the last one (ex: guix build -L .
>ac-geiser), although your package has no name yet, so it can't be found
>by guix that way currently.
--
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
next prev parent reply other threads:[~2020-03-01 15:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-01 12:58 Guix can't build my dummy package definition Jérémy Korwin-Zmijowski
2020-03-01 13:09 ` pelzflorian (Florian Pelz)
2020-03-01 14:50 ` Julien Lepiller
2020-03-01 15:49 ` Jérémy Korwin-Zmijowski [this message]
2020-03-01 16:15 ` Ricardo Wurmus
2020-03-01 16:25 ` Jérémy Korwin-Zmijowski
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=3D6A8611-4CE8-4371-9C8F-00B7BB71479A@korwin-zmijowski.fr \
--to=jeremy@korwin-zmijowski.fr \
--cc=help-guix@gnu.org \
--cc=julien@lepiller.eu \
/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.