guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Overriding a package’s source with ‘guix build’


From: Ludovic Courtès
Subject: Overriding a package’s source with ‘guix build’
Date: Wed, 12 Mar 2014 00:27:25 +0100
User-agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]