From: Julien Lepiller <julien@lepiller.eu>
To: Jone <yeger9@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: Right way: define, build and install
Date: Wed, 02 May 2018 17:52:08 +0200 [thread overview]
Message-ID: <441ce71bef40105981dad6fb99c985f2@lepiller.eu> (raw)
In-Reply-To: <87tvrphp9s.fsf@gmail.com>
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.
next prev parent reply other threads:[~2018-05-02 15:52 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-02 17:34 Right way: define, build and install Jone
2018-05-02 15:24 ` Julien Lepiller
2018-05-02 18:43 ` Jone
2018-05-02 15:52 ` Julien Lepiller [this message]
2018-05-03 7:03 ` Chris Marusich
2018-05-02 18:02 ` Oleg Pykhalov
2018-05-03 22:33 ` Jone
2018-05-04 17:46 ` Oleg Pykhalov
2018-05-02 15:28 ` Pierre Neidhardt
2018-05-02 18:53 ` Jone
2018-05-02 16:10 ` Pierre Neidhardt
2018-05-02 16:32 ` Julien Lepiller
2018-05-02 19:52 ` Jone
2018-05-02 16:58 ` Pierre Neidhardt
2018-05-02 16:15 ` Pierre Neidhardt
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=441ce71bef40105981dad6fb99c985f2@lepiller.eu \
--to=julien@lepiller.eu \
--cc=help-guix@gnu.org \
--cc=yeger9@gmail.com \
/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.