From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Craven Subject: Re: Using a function as build-step? Date: Sat, 3 Sep 2016 20:35:50 +0200 Message-ID: References: <0b8f97f5-d931-a344-1000-8ab64233f026@goebel-consult.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgFnK-0004sj-P4 for guix-devel@gnu.org; Sat, 03 Sep 2016 14:35:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bgFnF-0000cG-Sw for guix-devel@gnu.org; Sat, 03 Sep 2016 14:35:58 -0400 Received: from mail-yw0-x234.google.com ([2607:f8b0:4002:c05::234]:35883) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgFnE-0000ba-Mc for guix-devel@gnu.org; Sat, 03 Sep 2016 14:35:53 -0400 Received: by mail-yw0-x234.google.com with SMTP id d130so59674976ywc.3 for ; Sat, 03 Sep 2016 11:35:51 -0700 (PDT) In-Reply-To: <0b8f97f5-d931-a344-1000-8ab64233f026@goebel-consult.de> 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" To: Hartmut Goebel Cc: Guix-devel I think the problem is that the build steps are executed inside a chroot created by the nix-daemon. So you'll have to do (add-after 'install 'install-javadocs ,install-javadocs) to make it available. If this is used in more than just this file, you'll have to add the routine in a file inside guix/build/java-utils.scm and use #:modules and #:import-modules. See the qt-utils.scm file for a simple example and the greenisland or sddm packages that are on the mailinglist for how to use it. HTH!