guix-devel
[Top][All Lists]
Advanced

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

Use --with-source when source is #f


From: Ricardo Wurmus
Subject: Use --with-source when source is #f
Date: Mon, 21 Aug 2017 16:51:49 +0200
User-agent: mu4e 0.9.18; emacs 25.2.1

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




reply via email to

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