From: Robert Vollmert <rob@vllmrt.net>
To: guix-devel@gnu.org
Subject: building from local (or private) git repository
Date: Mon, 8 Jul 2019 17:52:38 +0200 [thread overview]
Message-ID: <AC91930B-B7CF-4B52-BBE8-1354419B4DA7@vllmrt.net> (raw)
Hi all,
I realize this isn’t generally an aim for guix proper, but I’d like
to be able to build a package from a local git repository (or
optionally from a local tar ball). In my specific case, it’s while
working out the packaging of a project I intend to publish but
haven’t published yet.
What I have working so far uses local-file, as below:
(define-public puzzledb-tools
(package
(name "puzzledb-tools")
(version "20190625-git")
(source
(local-file
"/home/rob/puzzledb/tools"
#:recursive? #t))
…
That’s a bit annoying because it includes stale files that happen
to be in the directory, it doesn’t check the hash, etc. Using a
git origin with a local path doesn’t work for reasons I don’t
completely understand — I think it’s because the guix-daemon builds
in a namespace without access to the local filesystem. Perhaps there’s
a way to link the git repository into that namespace?
Any hints appreciated!
Robert
next reply other threads:[~2019-07-08 15:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-08 15:52 Robert Vollmert [this message]
2019-07-08 16:13 ` building from local (or private) git repository Pierre Langlois
2019-07-08 16:39 ` Marius Bakke
2019-07-11 16:20 ` Ludovic Courtès
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AC91930B-B7CF-4B52-BBE8-1354419B4DA7@vllmrt.net \
--to=rob@vllmrt.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 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).