From: Julien Lepiller <julien@lepiller.eu>
To: Jone <yeger9@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: Simple configure-make-make_install with Guix
Date: Fri, 25 May 2018 10:18:57 +0200 [thread overview]
Message-ID: <f373b0874742477e145428f0a323f050@lepiller.eu> (raw)
In-Reply-To: <87fu2g7dbf.fsf@gmail.com>
Le 2018-05-25 03:07, Jone a écrit :
> Thanks, Julien.
> Minimal working variant:
Hi Jone, if your package builds, you can keep it as is. I don't see any
big problem,
only a few styling issues that are really issues if you want to submit
this as
a patch to guix. Otherwise, you've done a great job! :)
>
> (use-modules
> (ice-9 match)
> (srfi srfi-1)
> (guix gexp)
I don't think you need these three first modules.
> (guix licenses)
> (guix build-system gnu)
> (guix packages)
> (gnu packages)
> (gnu packages gettext)
> (gnu packages pkg-config)
> (gnu packages glib)
> (gnu packages gtk)
> (gnu packages linux)
> (gnu packages audio))
> (define-public gvolwheel
> (package
> (name "gvolwheel")
> (version "-1.0")
version numbers usually don't start with "-". The complete name for this
package would be
gvolwheel@-1.0 which is a bit strange.
> (source (local-file "/home/jone/Desktop/gvolwheel-1.0" #:recursive?
> #t))
if you want to submit this as a patch, you should use a public url or
repository. Otherwise
this is fine, especially for testing local changes.
> (build-system gnu-build-system)
> ;; see https://github.com/pjotrp/guix-notes/blob/master/HACKING.org
> (arguments
> '(#:phases
> (modify-phases %standard-phases
> (delete 'check))))
instead of removing the phase, you can remove tests by specifying
"#:tests? #f" instead of
"#:phases (modify-phases ...)". It's a bit shorter and more
understandable I think.
> (native-inputs
> `(("pkg-config" ,pkg-config)
> ("intltool" ,intltool)
> ("gettext" ,gettext-minimal)))
> (inputs
> `(("alsa-lib" ,alsa-lib)
> ("gtk+" ,gtk+)))
The indentation is a bit off here.
> (synopsis "Volume control")
> (description "ALSA mixer")
For Guix packages, the description should be a bit longer and end with a
period (".").
> (home-page "https://sourceforge.net/projects/gvolwheel")
> (license gpl2)))
> gvolwheel
In this file, it's not necessary to define the package and call it, you
can simply have
something like:
(use-modules ...)
(package
(name "gvolwheel")
...)
Again, these are only styling issues you should care about if you want
to add the package to
our package list. In that case, you should also move this definition to
gnu/packages/audio.scm
where I think this belongs to. As your first package, we would have
taken care of these issues
ourselves. We don't expect newcomers to know all these rules and
conventions.
>
> What else should I fix in this package definition?
Nothing really, so congrats for your first package!
next prev parent reply other threads:[~2018-05-25 8:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-24 22:48 Simple configure-make-make_install with Guix Jone
2018-05-24 19:53 ` Julien Lepiller
2018-05-25 1:07 ` Jone
2018-05-25 8:18 ` Julien Lepiller [this message]
2018-05-25 18:33 ` Jone
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=f373b0874742477e145428f0a323f050@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.
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).