unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Newbie Packaging Question
@ 2019-05-10 23:04 Brian Woodcox
  2019-05-11  0:40 ` Tobias Geerinckx-Rice
  0 siblings, 1 reply; 3+ messages in thread
From: Brian Woodcox @ 2019-05-10 23:04 UTC (permalink / raw)
  To: help-guix

I have a question regarding packaging.

Say I have the following in my sample.scm file:

(define commit "a1ee2ebf087768b5fbffa07f50a294ad9c8ee600")

(define version-date “201903271913”)

and then

(define-public test-me
  (package
  (name “test-me”)
  (version commit)
  (source …
               .
               .
               . etc...


In my modify-phases %standard-phases,  I am trying to use substitute* to patch some files with the version-date define outside my package.

Is this not possible, I always get an unbound variable error.

I have no problem accessing the commit variable which is defined outside of the package.

Any help would be greatly appreciated.

Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: Newbie Packaging Question
@ 2019-05-11  3:06 Brian Woodcox
  0 siblings, 0 replies; 3+ messages in thread
From: Brian Woodcox @ 2019-05-11  3:06 UTC (permalink / raw)
  To: help-guix

Hi Tobias,

You totally nailed it.

Your example solved my problem.

I spent a few hours trying to resolve this problem.  I did try the comma because I saw that in another package definition.

Ultimately, i completely missed the quasiquote.

Thanks again

Brian.

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

end of thread, other threads:[~2019-05-11  3:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-10 23:04 Newbie Packaging Question Brian Woodcox
2019-05-11  0:40 ` Tobias Geerinckx-Rice
  -- strict thread matches above, loose matches on Subject: below --
2019-05-11  3:06 Brian Woodcox

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).