unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Use --with-source when source is #f
@ 2017-08-21 14:51 Ricardo Wurmus
  2017-08-22  9:23 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Ricardo Wurmus @ 2017-08-21 14:51 UTC (permalink / raw)
  To: guix-devel

Hi Guix,

I have a guix.scm that defines an environment for hacking on a tool.
There has not been a release yet, so the package definition in guix.scm
only contains “(source #f)”; this also allows us to avoid adding a
sha256 hash.

This environment file can be used to hack on the tool like this:

    guix environment -f guix.scm --ad-hoc autoconf automake

Once a user has built a new release tarball with “make distcheck” or
“make dist” they may want to install it using the same “guix.scm” file.
Of course, there is no valid source field, so the user would like to
override it with “--with-source”.

Unfortunately, this fails.

    guix package -f guix.scm --with-source=tool-0.0.1.tar.gz

Likewise, it is not possible to use “guix pack” with “--with-source”:

    guix pack -e '(load "guix.scm")' --with-source=tool-0.0.1.tar.gz …

It would make the distribution of test packages or images much easier if
there was a way to use “--with-source” with these commands.

What do you think?

-- 
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

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

end of thread, other threads:[~2017-08-22 10:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-21 14:51 Use --with-source when source is #f Ricardo Wurmus
2017-08-22  9:23 ` Ludovic Courtès
2017-08-22 10:06   ` Ricardo Wurmus

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