From: divoplade <d@divoplade.fr>
To: help-guix@gnu.org
Subject: Newbie tries to add a snippet to an origin
Date: Sat, 01 Aug 2020 17:17:36 +0200 [thread overview]
Message-ID: <9c55ce7f472fe3c84c84a31073f10dce6f7fae92.camel@divoplade.fr> (raw)
Hello,
I am trying to add a file named ".tarball-version" containing a fixed
string at the root of my source.
I tried several things, the most promising (I think) being this:
(define-public pomdappi-dist
(dist-package
pomdappi
(origin
(method git-fetch)
(uri (git-reference
(url "@REPO@")
(commit "@COMMIT@")))
(sha256
(base32
"@COMMIT_BASE32@"))
(snippet
#~(symlink #$(plain-file ".tarball-version" "@VERSION@")
".tarball-version")))))
However, I get "guix build: error: invalid name: `.tarball-version'"
when running guix build.
My idea was to create a file in the store containing the fixed string
@VERSION@, and then symlink it withing the source as ".tarball-
version".
Could someone help me?
divoplade
next reply other threads:[~2020-08-01 15:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-01 15:17 divoplade [this message]
2020-08-01 15:26 ` Newbie tries to add a snippet to an origin John Soo
2020-08-01 15:44 ` divoplade
2020-08-01 15:50 ` Julien Lepiller
2020-08-01 16:00 ` John Soo
2020-08-01 16:23 ` divoplade
2020-08-01 16:27 ` John Soo
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=9c55ce7f472fe3c84c84a31073f10dce6f7fae92.camel@divoplade.fr \
--to=d@divoplade.fr \
--cc=help-guix@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.