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 QCh9H3DL9V7MUwAA0tVLHw (envelope-from ) for ; Fri, 26 Jun 2020 10:18:24 +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 0L54G3DL9V7nHwAAB5/wlQ (envelope-from ) for ; Fri, 26 Jun 2020 10:18:24 +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 39DC39404D3 for ; Fri, 26 Jun 2020 10:18:23 +0000 (UTC) Received: from localhost ([::1]:53274 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jolR8-0007Hb-6r for larch@yhetil.org; Fri, 26 Jun 2020 06:18:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37634) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jolR0-0007HQ-M3 for help-guix@gnu.org; Fri, 26 Jun 2020 06:18:14 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:57840) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jolQy-0007jw-9b for help-guix@gnu.org; Fri, 26 Jun 2020 06:18:14 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 6072c3a5; Fri, 26 Jun 2020 10:18:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:from:message-id; s=dkim; bh=lhcudqQwaRUlFiY5dUmbTeYKBwhLuDxmasRpoVLU6Us=; b=D2kFbL/il6FL mFFnKJaTlktLU9BTMJTdYV+YoQ6pnEiPJG0J06oS0anL5yct0vWZTH9WP8mjl4Hh I3UBz9qD+aZuBwyDhdSZmu6YWxaFJdQfMwpYx29k818HhnqhS/Q+ZBxXTfqMvPMp LDl/sHvcCIF4zi/M1KNeeB3nftjY7113Zf/ChtsyOKdriKO1YqhyYvJBlODxpLEf hQnFZY6146KsQL8EqtFQRrbzxpgSNVYlsKMKVOvEGG2X72y+h2PIzP3yMdML4q3+ /khcgM4o0QxzFuIJasbgSF77UYSrgCenyOqRfxc/al4E1E3/P1YddLLUcXfCYawu YMUMaxwSTg== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id f96cd882 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Fri, 26 Jun 2020 10:18:07 +0000 (UTC) Date: Fri, 26 Jun 2020 06:17:55 -0400 User-Agent: K-9 Mail for Android In-Reply-To: <86wo3u9mfi.fsf@gmail.com> References: <86wo3u9mfi.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: Building packages in REPL To: help-guix@gnu.org, zimoun , Konrad Hinsen , Anthony Quizon From: Julien Lepiller Message-ID: Received-SPF: none client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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=fail (rsa verify failed) header.d=lepiller.eu header.s=dkim header.b=D2kFbL/i; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=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: 1.59 X-TUID: JtXsY44BTWTt Le 26 juin 2020 06:00:17 GMT-04:00, zimoun a= =C3=A9crit : >Dear, > >On Fri, 26 Jun 2020 at 09:25, Konrad Hinsen > wrote: >> Anthony Quizon writes: >> >>> Is there a way that I can build a package via the repl? > >Well, it is not what you are asking I guess, but it is possible: > >--8<---------------cut here---------------start------------->8--- >$ guix repl >scheme@(guix-user)> (use-modules (guix scripts build)) >scheme@(guix-user)> (guix-build "-L" "=2E" "bonjour") >/gnu/store/m658csbnly6zywfl5nax9glya3rzhbdy-bonjour-2=2E10 >--8<---------------cut here---------------end--------------->8--- > >And there is no '~' expansion so "-L" "~/somewhere" does not work=2E > >> As far as I know, no=2E I have been looking for this as well, >> in order to make package development more interactive=2E > >Well, I do not know enough the API but it should be added and exposed >if >it does not exist yet=2E And the question is which level of granularity? > > >>> For example, >>> If I had a channel with a custom package in it, can I do: >>> >>> `$ guix repl -L =2E` >>> `> ,use (my-channel packages base) ` >>> `> (build-package my-package) ;; this is the example imaginary >command ` > >The entry point is "(guix scripts build)"=2E > >> I'd even want more: access to the individual build steps=2E > >Do you mean the "phases"? > > >All the best, >simon One way to do this with the guix API is to get the derivation, then build = it: (use-modules (guix derivations) (guix store) (gnu packages bash)) (define package bash-minimal) (define store (open-connection)) (define der (package-derivation store package)) (build-derivations store (list der)) Is that what you want?