From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Lepiller Subject: Re: Right way: define, build and install Date: Wed, 02 May 2018 17:52:08 +0200 Message-ID: <441ce71bef40105981dad6fb99c985f2@lepiller.eu> References: <87tvrphp9s.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48801) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDu3H-0002ER-0Y for help-guix@gnu.org; Wed, 02 May 2018 11:52:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDu3C-0003cW-VR for help-guix@gnu.org; Wed, 02 May 2018 11:52:19 -0400 Received: from lepiller.eu ([89.234.186.109]:47014) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fDu3C-0003ZF-LE for help-guix@gnu.org; Wed, 02 May 2018 11:52:14 -0400 In-Reply-To: <87tvrphp9s.fsf@gmail.com> 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: Jone Cc: help-guix@gnu.org Le 2018-05-02 20:43, Jone a écrit : > But I am ashamed! :) > > 1. xfce4-cpugraph-plugin.scm > > (use-modules (ice-9 match) > (srfi srfi-1) > (guix gexp) > (guix packages) > (guix build) > (guix licenses) > (guix git-download) > (define-public xfce4-cpugraph-plugin > (package > (name "xfce4-cpugraph-plugin") > (version "1.0.5") > (source (origin > (method url-fetch) > (uri (string-append > "http://archive.xfce.org/src/panel-plugins/" > name "/" (version-major+minor > version) "/" > name "-" version ".tar.bz2")) > (sha256 > (base32 > > "1izl53q95m5xm2fiq7385vb1i9nwgjizxkmgpgh33zdckb40xnl5")))) > (build-system gnu-build-system) > (native-inputs `(("pkg-config" ,pkg-config) > ("intltool" ,intltool))) > (inputs `(("glib" ,glib) > ("gtk+" ,gtk+-2) > ("libxfce4util" ,libxfce4util) > ("libxfce4ui" ,libxfce4ui) > ("xfce4-panel" ,xfce4-panel))) > (home-page > "https://goodies.xfce.org/projects/panel-plugins/") > (synopsis "cpugraph") > (description > "TEST") > (license (list gpl2+ lgpl2.0+)))) > ) > > 2. Then in terminal > > GUIX_PACKAGE_PATH=/home/jone/sys.cfg/build/my/ guix package -i > xfce4-cpugraph-plugin > > ERROR: In procedure %resolve-variable: > libxfce4util: unbound variable Here what happens is that you use libxfce4util, but it's not in any of the modules you import. What you need to do is to find where this package comes from: > guix package --show=libxfce4util will tell you (among other things): > location: gnu/packages/xfce.scm:81:2 so you need to use the module (guix packages xfce). Repeat this for any other missing package variable. The module is the path reported by guix package, where you replace / with spaces and ignore anything after the .scm extension.