From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 6MA7JUfH9V6vIwAA0tVLHw (envelope-from ) for ; Fri, 26 Jun 2020 10:00:39 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id WAUOIUfH9V5GegAA1q6Kng (envelope-from ) for ; Fri, 26 Jun 2020 10:00:39 +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 C3C809409D3 for ; Fri, 26 Jun 2020 10:00:37 +0000 (UTC) Received: from localhost ([::1]:57010 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jol9w-00049c-A7 for larch@yhetil.org; Fri, 26 Jun 2020 06:00:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33818) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jol9j-00047X-T4 for help-guix@gnu.org; Fri, 26 Jun 2020 06:00:23 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:39900) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jol9h-0003vs-Ql for help-guix@gnu.org; Fri, 26 Jun 2020 06:00:23 -0400 Received: by mail-wm1-x330.google.com with SMTP id t194so8791897wmt.4 for ; Fri, 26 Jun 2020 03:00:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=rbs+TxI7fUHMEDMCBtM47EPqQaxjWw1ilY9tdsY36DE=; b=cZXfgcxhzhc+R23KMcgSaEQ9VxExIsSA7cgaaM+zbuFNo5bQ3ssu8BdRdtxo5j53QV RjMnvuOe7yi3MSkhA98J64pNGo15I23z8IRzcqGTDPvmCUKgBgH435s/haVcIebE5rnD 4Zmq2F0tk4l0MPMt7gBVpC6g9cooyTGvtossnmybbV4RekQJlBmZYX8rzkMxGPqjdBYa 4Ipusofdw0q195jyBNi3OE3cYB92M1XJtYZ+TGZq8NG5xzQZ7W16HsP0CQfvCYzq42ag Q75xy6TsTYCMetMRbQ8ayBdo+l2EWntLu7mzpVAXkazuA+l/o9Cj0mP5UWQdsLoG92GD wfxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=rbs+TxI7fUHMEDMCBtM47EPqQaxjWw1ilY9tdsY36DE=; b=CHzZpWcDAcUQcptTiNHuBjo6G3Ot4hSEEG9m/mmEdCMWRS5oeFCGuciGEXPH33p2MG YC1hsmk07T64WzERBKnG12zhXeJ8LRGUbG/+bgtxzox3pE0k3ZspBZQ41g5cRiAQaAel 6p3N4Wy+qtgnVpM0MTkkMx/iMH/KWSTglkHb7to0I07alsTkg2WRmOCCKDFjkrl2vH7U eh3Dw1cv3Wq7eVD6JBlcaybp7qFEY1FY9QOW1QJkkscpmLBarG2NV+5nTLlQLxmzU74E 3bUAOKMO7eRFoAgE7wid8YbVeFARij4qiNZE1wSmYdPrsMrA5uHO6EygtJeuvn92QECM /KKw== X-Gm-Message-State: AOAM532Jm/tlfsFe0zxIIvJeb6ogqeDlBPfb5lQJIl9UlreEZZEbRTgD pWQQuy8DEHDe+M6wuwWrSe8vx7iP2CM= X-Google-Smtp-Source: ABdhPJxo28007b5luM0bFX0QcSrFGBXGoI6YTUiJFdMIfY2PHVrsKI0lC02ZibS0SGfEqPBTRN+nUQ== X-Received: by 2002:a7b:cc08:: with SMTP id f8mr2697826wmh.106.1593165619677; Fri, 26 Jun 2020 03:00:19 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id k126sm11372719wme.17.2020.06.26.03.00.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jun 2020 03:00:19 -0700 (PDT) From: zimoun To: Konrad Hinsen , Anthony Quizon , help-guix@gnu.org Subject: Re: Building packages in REPL In-Reply-To: References: Date: Fri, 26 Jun 2020 12:00:17 +0200 Message-ID: <86wo3u9mfi.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x330.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-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=pass header.d=gmail.com header.s=20161025 header.b=cZXfgcxh; dmarc=pass (policy=none) header.from=gmail.com; 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.21 X-TUID: 7L2tcmUDcjlw 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" "." "bonjour") /gnu/store/m658csbnly6zywfl5nax9glya3rzhbdy-bonjour-2.10 --8<---------------cut here---------------end--------------->8--- And there is no '~' expansion so "-L" "~/somewhere" does not work. > As far as I know, no. I have been looking for this as well, > in order to make package development more interactive. Well, I do not know enough the API but it should be added and exposed if it does not exist yet. 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 .` >> `> ,use (my-channel packages base) ` >> `> (build-package my-package) ;; this is the example imaginary command ` The entry point is "(guix scripts build)". > I'd even want more: access to the individual build steps. Do you mean the "phases"? All the best, simon