From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brian Woodcox Subject: Newbie Packaging Question Date: Fri, 10 May 2019 17:04:25 -0600 Message-ID: Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:34281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPEf5-0006T8-Fy for help-guix@gnu.org; Fri, 10 May 2019 19:10:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hPEf4-0001ul-Lv for help-guix@gnu.org; Fri, 10 May 2019 19:10:43 -0400 Received: from mail.inskydata.com ([184.68.229.6]:5671 helo=server.inskydata.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPEf4-0001tg-GH for help-guix@gnu.org; Fri, 10 May 2019 19:10:42 -0400 Received: from [192.168.19.76] (unknown [192.168.19.76]) by server.inskydata.com (Postfix) with ESMTPSA id 9E4C74936C85 for ; Fri, 10 May 2019 17:04:30 -0600 (MDT) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org I have a question regarding packaging. Say I have the following in my sample.scm file: (define commit "a1ee2ebf087768b5fbffa07f50a294ad9c8ee600") (define version-date =E2=80=9C201903271913=E2=80=9D) and then (define-public test-me (package (name =E2=80=9Ctest-me=E2=80=9D) (version commit) (source =E2=80=A6 . . . 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.=