unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: guix-devel@gnu.org
Subject: Overriding a package’s source with ‘guix build’
Date: Wed, 12 Mar 2014 00:27:25 +0100	[thread overview]
Message-ID: <877g80nwo2.fsf@gnu.org> (raw)

Commit 7f3673f adds a ‘--with-source’ option to ‘guix build’:

‘--with-source=SOURCE’
     Use SOURCE as the source of the corresponding package.  SOURCE must
     be a file name or a URL, as for ‘guix download’ (*note Invoking
     guix download::).

     The “corresponding package” is taken to be one specified on the
     command line whose name matches the base of SOURCE—e.g., if SOURCE
     is ‘/src/guile-2.0.10.tar.gz’, the corresponding package is
     ‘guile’.  Likewise, the version string is inferred from SOURCE; in
     the previous example, it’s ‘2.0.10’.

     This option allows users to try out versions of packages other than
     the one provided by the distribution.  The example below downloads
     ‘ed-1.7.tar.gz’ from a GNU mirror and uses that as the source for
     the ‘ed’ package:

          guix build ed --with-source=mirror://gnu/ed/ed-1.7.tar.gz

     As a developer, ‘--with-source’ makes it easy to test release
     candidates:

          guix build guile --with-source=../guile-2.0.9.219-e1bb7.tar.xz


Pretty cool no?  :-)

Comments welcome!

Ludo’.

                 reply	other threads:[~2014-03-11 23:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=877g80nwo2.fsf@gnu.org \
    --to=ludo@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).