From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id VoReIRTyU1+RPgAA0tVLHw (envelope-from ) for ; Sat, 05 Sep 2020 20:16:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id WCbiHBTyU19+UQAAB5/wlQ (envelope-from ) for ; Sat, 05 Sep 2020 20:16:20 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 20F629403A9 for ; Sat, 5 Sep 2020 20:16:20 +0000 (UTC) Received: from localhost ([::1]:48794 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEebj-0006dZ-3S for larch@yhetil.org; Sat, 05 Sep 2020 16:16:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEebb-0006dC-7N for help-guix@gnu.org; Sat, 05 Sep 2020 16:16:11 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:34631) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEebY-0000vH-Oa for help-guix@gnu.org; Sat, 05 Sep 2020 16:16:10 -0400 X-Originating-IP: 86.194.83.229 Received: from gnou.home (lfbn-lyo-1-1007-229.w86-194.abo.wanadoo.fr [86.194.83.229]) (Authenticated sender: d@divoplade.fr) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 44C7BFF804 for ; Sat, 5 Sep 2020 20:16:05 +0000 (UTC) Message-ID: <908fa63077ee6cfe3174596099da22699d432e77.camel@divoplade.fr> Subject: How do I build a derivation with guix build? From: divoplade To: help-guix@gnu.org Date: Sat, 05 Sep 2020 22:15:57 +0200 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=217.70.183.199; envelope-from=d@divoplade.fr; helo=relay9-d.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/05 16:16:05 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -0.01 X-TUID: aRu/tREbgCX2 Hello, I am still learning how to use gexps, and I thought that running this would work: guix build -f example.scm with example.scm containing: (use-modules (gnu packages base)) (use-modules (guix gexp)) (define build-exp #~(begin (mkdir #$output) (chdir #$output) (symlink (string-append #$coreutils "/bin/ls") "list-files"))) (gexp->derivation "the-thing" build-exp) This is a copy of what's on the manual for explaining G-expressions. The guix build -f command should, according to the --help output: "build the package or derivation that the code within FILE evaluates to" However, I get an exception, "Wrong number of arguments to #", after a backtrace that does not even contains example.scm. What is going on? How do you build the derivation? Best regards, divoplade