unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Pierre Neidhardt <mail@ambrevar.xyz>
To: Andreas Enge <andreas@enge.fr>
Cc: guix-devel <guix-devel@gnu.org>, guix-blog@gnu.org
Subject: Re: Blog: Guix packaging tutorial
Date: Fri, 14 Sep 2018 13:07:44 +0200	[thread overview]
Message-ID: <87woro5ocf.fsf@ambrevar.xyz> (raw)
In-Reply-To: <20180913191151.GA1865@jurong>

[-- Attachment #1: Type: text/plain, Size: 2487 bytes --]

> https://gitlab.com/pjotrp/guix-notes/blob/master/HACKING.org

Wow, this is a fantastic document!  Is it mentioned anywhere?  I wish I had
known about this before.  I guess you've done most of the work already.
I'll make sure to mention your work and credit you in the blog article.

I could spot some mistakes:

- it's "%outputs" with and "s", not "%output".

- "–no-substites".

Ricardo has a very good point.  Initially I did not think of orienting the blog
towards contributing to upstream, and I think you are right, it's something very
important we should do, especially considering that Guix is one of the very
distributions that welcomes user contributions regardless of their "status".

On the other hand, I can also see a different population of users, those who
simply don't intend to contribute for whatever reasons (think the "fear of the
first commitment" when newborn hackers send their first patch).  Those users
might get a feeling that Guix is not "hackable for their own purposes" if they
can't define a package for their own private use.

My suggestion is to quickly mention GUIX_PACKAGE_PATH, insist on contributing
upstream and underline the friction that results from moving from
GUIX_PACKAGE_PATH to upstream, as Ricardo pointed out.

Complex packages and trivial build system: I think a tutorial is not so useful
if it only covers the basics that many users can figure out by themselves.  An
advanced tutorial covering the parts that are hard to learn alone would be more
than welcome in my opinion.
In my personal experience, I got started with "inxi" which uses the trivial
build system, and it was _very hard_, even while I could get a grasp of the
gnu-build-system.

Pjotr Prins <pjotr.public12@thebird.nl> writes:
> A second advanced hacking tutorial could discuss more advanced
> features.

I also agree with your point that starting off with complex packaging could
scare people away.  So my suggestion is as follows:

- Part 1: basics + gnu-build-system + importers
- Part 2: trivial-build-system + debug and REPL interaction.

What do you think?

Andreas Enge <andreas@enge.fr> writes:
> You could have a look at the slides of a talk I gave at GHM 2013 in the
> "maintenance" git repo, inside the talks/ghm-2013/andreas directory.
> Some things are outdated (we did not have the macros to manipulate build
> phases yet).

Will have a look, thanks!

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

  reply	other threads:[~2018-09-14 11:07 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-13 10:50 Blog: Guix packaging tutorial Pierre Neidhardt
2018-09-13 11:16 ` Pjotr Prins
2018-09-13 11:53 ` Ricardo Wurmus
2018-09-13 12:04   ` Pjotr Prins
2018-09-13 19:11 ` Andreas Enge
2018-09-14 11:07   ` Pierre Neidhardt [this message]
2018-09-14 11:33     ` Pjotr Prins
2018-09-24 17:00       ` Pierre Neidhardt
2018-09-24 17:37         ` Pierre Neidhardt
2018-09-27 13:43           ` Ludovic Courtès
2018-09-27 17:34             ` Pierre Neidhardt
2018-09-29 16:28               ` Ludovic Courtès
2018-09-29 21:18           ` Ricardo Wurmus
2018-09-30 19:01             ` Pierre Neidhardt
2018-09-30 19:44               ` Ludovic Courtès
2018-09-30 21:14                 ` Pierre Neidhardt
2018-10-02 12:12                   ` Ludovic Courtès
2018-10-02 16:02                     ` Pierre Neidhardt
2018-10-02 19:46                       ` Ricardo Wurmus
2018-10-03  8:10                         ` Pierre Neidhardt
2018-10-03 18:16                           ` Pierre Neidhardt
2018-10-08 12:20                             ` Ludovic Courtès
2018-10-08 15:18                             ` Ricardo Wurmus
2018-10-08 18:41                               ` Pierre Neidhardt
2018-10-08 19:06                                 ` Pierre Neidhardt
2018-10-08 19:59                                 ` Ricardo Wurmus
2018-10-08 22:09                                   ` Pierre Neidhardt
2018-10-08 22:33                                     ` Pierre Neidhardt
2018-10-08 23:45                                       ` Pierre Neidhardt
2018-10-10 11:56                                         ` Ludovic Courtès
2018-10-10 13:20                                           ` George Clemmer
2018-10-10 13:31                                             ` Pierre Neidhardt
2018-10-10 14:13                                               ` Ricardo Wurmus
2018-10-10 14:00                                         ` Guix packaging tutorial is on-line! Ludovic Courtès
2018-10-10 14:12                                           ` Pierre Neidhardt
2018-10-10 15:07                                             ` Ricardo Wurmus
2018-10-10 16:09                                               ` Pierre Neidhardt
2018-10-11 13:41                                             ` Ludovic Courtès
2018-10-11 16:34                                               ` Pierre Neidhardt
2018-10-11 16:51                                                 ` Pierre Neidhardt
2018-10-15 12:02                                                   ` Ludovic Courtès
2018-10-15 12:39                                                     ` Pierre Neidhardt
2018-10-20 19:58                                         ` Blog: Guix packaging tutorial Divan
2018-10-21 10:30                                           ` Pierre Neidhardt
2018-10-21 11:21                                             ` Pierre Neidhardt
2018-10-22 20:40                                               ` Divan Santana
2018-10-22 21:11                                                 ` Pierre Neidhardt
2018-09-26 10:20         ` Ludovic Courtès
2018-09-26 10:28           ` Pierre Neidhardt
2018-09-27 11:56             ` Ludovic Courtès
  -- strict thread matches above, loose matches on Subject: below --
2018-10-08 22:54 Benjamin Slade
2018-10-08 23:05 ` Pierre Neidhardt
2018-10-09  0:04   ` Benjamin Slade
2018-10-10  9:02     ` Ludovic Courtès
2018-10-11  1:38       ` Benjamin Slade
2018-10-11  9:37         ` Gábor Boskovits
2018-10-11 13:39         ` Ludovic Courtès
2018-10-12  1:05           ` Benjamin Slade

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=87woro5ocf.fsf@ambrevar.xyz \
    --to=mail@ambrevar.xyz \
    --cc=andreas@enge.fr \
    --cc=guix-blog@gnu.org \
    --cc=guix-devel@gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).