all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Matthew Jordan <matthewjordandevops@yandex.com>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] add go@1.6
Date: Mon, 01 Aug 2016 00:55:59 +0200	[thread overview]
Message-ID: <878twh4dts.fsf@gnu.org> (raw)
In-Reply-To: <87a8gzytt5.fsf@guixsd-mailerver.i-did-not-set--mail-host-address--so-tickle-me> (Matthew Jordan's message of "Sat, 30 Jul 2016 12:28:06 -0400")

Hello!

Matthew Jordan <matthewjordandevops@yandex.com> skribis:

> From fbe9e4074cd27449d2337f62c7004993d087f6ba Mon Sep 17 00:00:00 2001
> From: Matthew Jordan <matthewjordandevops@yandex.com>
> Date: Thu, 26 May 2016 09:16:48 -0400
> Subject: [PATCH] gnu: Add go@1.6.
>
> * gnu/packages/golang.scm (go-1.6): New variable.
>
> Co-author: Efraim Flashner <efraim@flashner.co.il>
> Co-author: Andy Wingo <wingo@igalia.com>

Awesome!  I made small changes:

> +    (arguments
> +     `(#:modules ((ice-9 match)
> +                  (guix build gnu-build-system)
> +                  (guix build utils))
> +       #:tests? #f ; Tests are run by all.bash script
> +       #:phases
> +       (modify-phases %standard-phases
> +         (delete 'configure)
> +         (add-after 'patch-generated-file-shebangs 'chdir
> +           (lambda _ (chdir "src")))

… using ‘substitute-keyword-arguments’ here to try to factorize build
phases with go@1.4, though in practice there are subtle differences
preventing the ‘prebuild’ and ‘install’ phases from being factorized.
Would be nice to improve it eventually, somehow.
> +    (inputs
> +     `(,@(package-inputs go-1.4)))

This is equivalent to:

  (inputs (package-inputs go-1.4))

which is equivalent to putting nothing, since we already ‘inherit’ from
go-1.4.

> +    (propagated-inputs
> +     `(,@(package-propagated-inputs go-1.4)))))

Ditto.

Committed, thank you!

Ludo’.

  parent reply	other threads:[~2016-07-31 22:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-27 23:54 [PATCH] add go@1.6 Matthew Jordan
2016-07-28  1:00 ` Alex Griffin
2016-07-28 10:11   ` Matthew Jordan
2016-07-28 11:25     ` Alex Griffin
2016-07-30 16:28   ` Matthew Jordan
2016-07-30 16:50     ` Alex Griffin
2016-07-31 22:55     ` Ludovic Courtès [this message]
2016-07-28 18:59 ` Leo Famulari

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=878twh4dts.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=matthewjordandevops@yandex.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.