all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: guix-devel@gnu.org
Subject: Use --with-source when source is #f
Date: Mon, 21 Aug 2017 16:51:49 +0200	[thread overview]
Message-ID: <87bmn9vure.fsf@elephly.net> (raw)

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	other threads:[~2017-08-21 14:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-21 14:51 Ricardo Wurmus [this message]
2017-08-22  9:23 ` Use --with-source when source is #f Ludovic Courtès
2017-08-22 10:06   ` Ricardo Wurmus

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=87bmn9vure.fsf@elephly.net \
    --to=rekado@elephly.net \
    --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 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.