From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Bavier Subject: Re: Package version at build side Date: Tue, 04 Nov 2014 14:55:58 -0600 Message-ID: <87ppd2wuqp.fsf@gmail.com> References: <20141104193524.GA5700@debian> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59063) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xll8t-0005MK-Ga for guix-devel@gnu.org; Tue, 04 Nov 2014 15:56:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xll8o-0000yo-3B for guix-devel@gnu.org; Tue, 04 Nov 2014 15:55:55 -0500 Received: from mail-ig0-x22c.google.com ([2607:f8b0:4001:c05::22c]:45280) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xll8n-0000yd-U5 for guix-devel@gnu.org; Tue, 04 Nov 2014 15:55:50 -0500 Received: by mail-ig0-f172.google.com with SMTP id a13so7475262igq.5 for ; Tue, 04 Nov 2014 12:55:49 -0800 (PST) In-reply-to: <20141104193524.GA5700@debian> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Andreas Enge Cc: guix-devel@gnu.org Andreas Enge writes: > Hello, > > for kdelibs, I need to pass the version of the input docbook-xsl as > a configure flag. So I added something like > > #:configure-flags > (list "-DCMAKE_VERBOSE_MAKEFILE=ON" ; for debugging > (let ((docbook-xsl (assoc-ref %build-inputs "docbook-xsl"))) > (string-append "-DDOCBOOKXSL_DIR=" > docbook-xsl > "/xml/xsl/docbook-xsl-" > (package-version docbook-xsl) > "/"))) [...] > Is there a simpler solution? You should be able to do this by quasi-quoting the list and unquoting package-version. See e.g. the definition of maxima in maths.scm:891. -- Eric Bavier Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html