From: Oleg Pykhalov <go.wigust@gmail.com>
To: Jone <yeger9@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: Right way: define, build and install
Date: Wed, 02 May 2018 21:02:01 +0300 [thread overview]
Message-ID: <87o9hyhr6u.fsf@gmail.com> (raw)
In-Reply-To: <87tvrphp9s.fsf@gmail.com> (Jone's message of "Wed, 02 May 2018 18:43:27 +0000")
[-- Attachment #1.1: Type: text/plain, Size: 841 bytes --]
Hello Jone,
It was hard to get started for me, too. But after several package
recipes with a help of Guix community in the mailing list it's easy.
Jone <yeger9@gmail.com> writes:
> But I am ashamed! :)
>
> 1. xfce4-cpugraph-plugin.scm
[…]
First of all in ‘(use-modules …)’ you could only specify Guile modules.
After we fix parentheses, then there will an error about no existing
‘(guix build)’ Guile module. So let's remove it.
Here is a correct version, but it requires to add more modules to
‘(use-modules …)’ because of ‘native-inputs’ and ‘inputs’ in:
--8<---------------cut here---------------start------------->8---
(define-public xfce4-cpugraph-plugin
(package
(native-inputs …)
(inputs …)))
--8<---------------cut here---------------end--------------->8---
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: Fixed xfce4-cpugraph-plugin (requires to search for Guile modules) --]
[-- Type: text/x-scheme, Size: 1207 bytes --]
(use-modules (ice-9 match)
(srfi srfi-1)
(guix gexp)
(guix packages)
(guix utils)
(guix licenses)
(guix download)
(guix build-system gnu))
(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+))))
[-- Attachment #1.3: Type: text/plain, Size: 18 bytes --]
[…]
Oleg.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next prev parent reply other threads:[~2018-05-02 18:02 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
2018-05-03 7:03 ` Chris Marusich
2018-05-02 18:02 ` Oleg Pykhalov [this message]
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o9hyhr6u.fsf@gmail.com \
--to=go.wigust@gmail.com \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).