From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: Package version at build side Date: Tue, 4 Nov 2014 20:35:24 +0100 Message-ID: <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]:42123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XljtB-0000Pd-8M for guix-devel@gnu.org; Tue, 04 Nov 2014 14:35:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xljt3-0003dP-Pr for guix-devel@gnu.org; Tue, 04 Nov 2014 14:35:37 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:64918) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xljt3-0003d7-AZ for guix-devel@gnu.org; Tue, 04 Nov 2014 14:35:29 -0500 Content-Disposition: inline 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: guix-devel@gnu.org 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) "/"))) Now package-version seems to be defined in (guix package); when I add this as modules, more and more of them are pulled in. Currently I have #:modules ((guix packages) ; for PACKAGE-VERSION (guix base32) (guix config) (guix derivations) (guix records) (guix serialization) (guix store) (guix utils) (guix build syscalls) (guix build utils)) #:imported-modules ((guix packages) (guix base32) (guix config) (guix derivations) (guix records) (guix serialization) (guix store) (guix utils) (guix build syscalls) (guix build utils)) When I "make" and "./pre-inst-env guix build kdelibs", I get ice-9/boot-9.scm:106:20: no code for module (guix hash) So I add (guix hash), and then I get "no code for module (guix ...)" and so on, probably until all of guix is in my package. Is there a simpler solution? Andreas