From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Trouble with adding a package Date: Mon, 26 Mar 2018 23:11:58 +0200 Message-ID: <87605ih78h.fsf@elephly.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0ZPe-0006to-HL for help-guix@gnu.org; Mon, 26 Mar 2018 17:12:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0ZPa-0001oh-BK for help-guix@gnu.org; Mon, 26 Mar 2018 17:12:18 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21087) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f0ZPa-0001oH-1j for help-guix@gnu.org; Mon, 26 Mar 2018 17:12:14 -0400 In-reply-to: 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: Nadezhda Voronova Cc: help-guix@gnu.org Hi Nadya, > I've got guix source code from repository, added my definition in > "gnu/package" and run "guix environment guix", "./bootstrap", "./configur= e > --localstatedir=3D/var" and "make" and then tried "./pre-inst-env guix bu= ild > 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 sing= le 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