From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Guix can't build my dummy package definition Date: Sun, 01 Mar 2020 17:15:21 +0100 Message-ID: <87r1ycgig6.fsf@elephly.net> References: <4D65396D-D8DA-42CC-9118-D470F9D5941D@korwin-zmijowski.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:50950) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j8RFg-0007Qm-JJ for help-guix@gnu.org; Sun, 01 Mar 2020 11:15:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j8RFf-0006f3-Ji for help-guix@gnu.org; Sun, 01 Mar 2020 11:15:36 -0500 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21145) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j8RFf-0006e3-7d for help-guix@gnu.org; Sun, 01 Mar 2020 11:15:35 -0500 In-reply-to: <4D65396D-D8DA-42CC-9118-D470F9D5941D@korwin-zmijowski.fr> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane-mx.org@gnu.org Sender: "Help-Guix" To: =?utf-8?B?SsOpcsOpbXk=?= Korwin-Zmijowski Cc: help-guix@gnu.org Hi J=C3=A9r=C3=A9my, > I've a package dummy definition in /tmp/def.scm: > > (use-modules=20 > (guix packages) > (guix build-system emacs) > (guix licenses) > (guix git-download))=20 > > (define-public ac-geiser=20 > (package=20 > (name "") > (version "")=20 > (source > (origin > (uri > (git-reference (url "")=20 > (commit "")))=20 > (method git-fetch)=20 > (sha256 (base32 "")))) > (build-system emacs-build-system) > (synopsis "") > (description "")=20 > (license bsd-3) > (home-page ""))) > > Then when I do : > > ./pre-inst-env guix build -f /tmp/def.scm > > I get : > > guix build: error: #: not something we can build This is because =E2=80=9Cdefine=E2=80=9D (or =E2=80=9Cdefine-public=E2=80= =9D) does not return a value. It returns an unspecified value. When using =E2=80=9Cguix build=E2=80=9D with a file then the file must eval= uate to a package value. This means it must end with a (package =E2=80=A6) expressio= n or the name of a variable that is bound to a package expression. You can fix this by either adding =E2=80=9Cac-geiser=E2=80=9D to the bottom= of the file, or by removing the (define-public ac-geiser =E2=80=A6) wrapping around the package expression. --=20 Ricardo