From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nadya Voronova Subject: Re: Trouble with adding a package Date: Tue, 27 Mar 2018 04:10:19 +0300 Message-ID: References: <87605ih78h.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1134e8ecdf763c05685a8d61" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34158) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0d82-0007ao-Sh for help-guix@gnu.org; Mon, 26 Mar 2018 21:10:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0d81-00087g-Kk for help-guix@gnu.org; Mon, 26 Mar 2018 21:10:22 -0400 Received: from mail-oi0-x22d.google.com ([2607:f8b0:4003:c06::22d]:35473) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f0d81-00087E-86 for help-guix@gnu.org; Mon, 26 Mar 2018 21:10:21 -0400 Received: by mail-oi0-x22d.google.com with SMTP id x20-v6so17529024oie.2 for ; Mon, 26 Mar 2018 18:10:21 -0700 (PDT) In-Reply-To: <87605ih78h.fsf@elephly.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org --001a1134e8ecdf763c05685a8d61 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Yep, i tried to do it. I tried to add it to another file (with (define-public tcal)). And i tried to add my file to "" (and it appeared in the Makefile). In both cases, nothing happened, still unknown package. So i tried "./pre-inst-env guix build hello" to confirm that this is the problem of my package. And my terminal just froze. It seems that this is not what should have happened. Also, while I was experimenting I tried "sudo ./pre-inst-env guix-daemon --build-users-group =3D guixbuild". And it froze my terminal too. 2018-03-27 0:11 GMT+03:00 Ricardo Wurmus : > > Hi Nadya, > > > I've got guix source code from repository, added my definition in > > "gnu/package" and run "guix environment guix", "./bootstrap", > "./configure > > --localstatedir=3D/var" and "make" and then tried "./pre-inst-env guix > build > > my-package". And it doesn't see my package. > > Please add the package to an existing package module (one of the files > in =E2=80=9Cgnu/packages/=E2=80=9D). Modules usually hold more than a si= ngle package. > > To make this work with your package definition you need to bind your > package expression to a public variable: > > (define-public tcalc > (package > (name "tcalc") > =E2=80=A6)) > > > Also i have this thing appear almost every time i use guix: > > guile: warning: failed to install locale > > warning: failed to install locale: Invalid argument > > Don't think that's relevant but it's a little bit annoying. > > This is unrelated. You should be able to remove these warnings by > installing the glibc-locales package and setting the GUIX_LOCPATH > environment variable to =E2=80=9C$HOME/.guix-profile/lib/locale=E2=80=9D. > > -- > Ricardo > > GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC > https://elephly.net > > > --001a1134e8ecdf763c05685a8d61 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yep, i tried to do it.=C2=A0
I tried t= o add it to another file (with (define-public tcal)). And i tried to add my= file to "" (and it appeared in the Makefile). In both cases, not= hing happened, still unknown package.
So i tried "./pre-inst= -env guix build hello" to confirm that this is the problem of my packa= ge. And my terminal just froze. It seems that this is not what should have = happened.
Also, while I was experimenting I tried "sudo ./pr= e-inst-env guix-daemon --build-users-group =3D guixbuild". And it froz= e my terminal too.


=
2018-03-27 0:11 GMT+03:00 Ricardo Wurmus <= rekado@elephly.net>:

Hi Nadya,

> I've got guix source code from repository, added my definition in<= br> > "gnu/package" and run "guix environment guix", &qu= ot;./bootstrap", "./configure
> --localstatedir=3D/var" and "make" and then tried "= ;./pre-inst-env guix build
> my-package". And it doesn't see my package.

Please add the package to an existing package module (one of the fil= es
in =E2=80=9Cgnu/packages/=E2=80=9D).=C2=A0 Modules usually hold more than a= single package.

To make this work with your package definition you need to bind your
package expression to a public variable:

=C2=A0 =C2=A0 (define-public tcalc
=C2=A0 =C2=A0 =C2=A0 (package
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (name "tcalc")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =E2=80=A6))

> Also i have this thing appear almost every time i use guix:
> guile: warning: failed to install locale
> warning: failed to install locale: Invalid argument
> Don't think that's relevant but it's a little bit annoying= .

This is unrelated.=C2=A0 You should be able to remove these warnings= by
installing the glibc-locales package and setting the GUIX_LOCPATH
environment variable to =E2=80=9C$HOME/.guix-profile/lib/locale=E2=80= =9D.

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6=C2=A0 2150 197A 5888 235F ACAC
https:= //elephly.net



--001a1134e8ecdf763c05685a8d61--