all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Newbie tries to add a snippet to an origin
@ 2020-08-01 15:17 divoplade
  2020-08-01 15:26 ` John Soo
  2020-08-01 15:50 ` Julien Lepiller
  0 siblings, 2 replies; 7+ messages in thread
From: divoplade @ 2020-08-01 15:17 UTC (permalink / raw)
  To: help-guix

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



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-08-01 16:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-01 15:17 Newbie tries to add a snippet to an origin divoplade
2020-08-01 15:26 ` 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

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.