all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Newbie packagers
@ 2016-07-21 13:21 Vincent Legoll
  2016-07-21 15:52 ` Ricardo Wurmus
  2016-07-21 15:54 ` Ludovic Courtès
  0 siblings, 2 replies; 16+ messages in thread
From: Vincent Legoll @ 2016-07-21 13:21 UTC (permalink / raw)
  To: help-guix

I put this in a separate email, as it's becoming long...

The packaging doc:

https://www.gnu.org/software/guix/manual/guix.html#Defining-Packages
is good, but still not enough for beginners.

Essentially it's missing what is hidden behind "Without being a Scheme ..."

It wouldn't hurt to have the scheme non-obvious parts explained:

- the comma operator
- the backquote operator
- the quote operator
- the arobase operator (is it for list unpacking ?)
- the percent operator
- the #: operator
- the different module import things (#:use-module vs (use-modules) vs ...)

(Forgive my probably-not-appropriate terms.)

No need to explain function calls, string quoting and simple stuff, though.

I tried to find a good tutorial explaining all of those, but couldn't. I found
snippets that helped me understand some of those, but they were scattered,
and it's still blurry.

Specific explanations will be more useful that a general scheme tutorial, the
hello.scm is good as an example :

(inputs `(("gawk" ,gawk)))

here we use the backquote because ...
the comma is there for ...

(arguments `(#:configure-flags '("--enable-silent-rules")))

here the #: means ...
we use the simple quote because ...

Obviously I cannot write that myself, but if someone does the explanation,
I volunteer the .texi translation...

-- 
Vincent Legoll

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2016-07-23 10:36 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-21 13:21 Newbie packagers Vincent Legoll
2016-07-21 15:52 ` Ricardo Wurmus
2016-07-21 17:13   ` Vincent Legoll
2016-07-22  8:30     ` Chris Marusich
2016-07-23 10:21   ` Andreas Enge
2016-07-23 10:36     ` Vincent Legoll
2016-07-21 15:54 ` Ludovic Courtès
2016-07-21 17:19   ` Vincent Legoll
2016-07-21 18:04     ` Vincent Legoll
2016-07-22  7:13       ` Vincent Legoll
2016-07-22 12:23         ` Ludovic Courtès
2016-07-22 12:43           ` Vincent Legoll
2016-07-22 12:41       ` Ludovic Courtès
2016-07-22 12:46         ` Vincent Legoll
2016-07-22 14:41           ` Ludovic Courtès
2016-07-22 20:01             ` Vincent Legoll

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.