all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Olivier Dion via "Development of GNU Guix and the GNU System distribution." <guix-devel@gnu.org>
To: Ryan Prior <rprior@protonmail.com>, Guix Devel <guix-devel@gnu.org>
Subject: Re: Request: build package with source tarball
Date: Sun, 11 Sep 2022 21:29:47 -0400	[thread overview]
Message-ID: <8735cxnzw4.fsf@laura> (raw)
In-Reply-To: <SyzAJwILmcGTAir5vMOzjCqaVfNmiFOt8MYZN_3D2sRYCdbHUwb8XlNgbeDPntOxgJR-8t-xwvc9Eica6U4NM5RfGVe_0CZC2Ub8nvsN_Oc=@protonmail.com>

On Mon, 12 Sep 2022, Ryan Prior <rprior@protonmail.com> wrote:
> Hi there! Lately I've been testing distribution tarballs with a workflow like this:
>
> - update some software in my source directory
> - create a distribution tarball
> - untar to a directory like /tmp/mypkg-src
> - run: guix build --with-source=mypkg=/tmp/mypkg-src​
>
> It would be nice to skip step 3 there and just run: guix build --with-source=mypkg.tar.gz​
> Guix should then untar and use the result as the source directory for
> the build.

It already can.

I use this in my Makefiles:
--8<---------------cut here---------------start------------->8---
libpatch.tar.gz:
	@git archive --format=tar.gz --prefix=libpatch/ \
	--output $@ HEAD

guix-build: libpatch.tar.gz
	@guix build --keep-failed --rounds=2 \
	--with-source=libpatch=$^ libpatch
--8<---------------cut here---------------end--------------->8---

-- 
Olivier Dion
oldiob.dev


  reply	other threads:[~2022-09-12  1:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-12  1:04 Request: build package with source tarball Ryan Prior
2022-09-12  1:29 ` Olivier Dion via Development of GNU Guix and the GNU System distribution. [this message]
2022-09-12  1:35   ` Ryan Prior
2022-09-12  8:59 ` Maxime Devos

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=8735cxnzw4.fsf@laura \
    --to=guix-devel@gnu.org \
    --cc=olivier.dion@polymtl.ca \
    --cc=rprior@protonmail.com \
    /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.