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 kF8pI1YWxl8pVgAA0tVLHw (envelope-from ) for ; Tue, 01 Dec 2020 10:09:26 +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 YDDiHlYWxl/tOwAAB5/wlQ (envelope-from ) for ; Tue, 01 Dec 2020 10:09:26 +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 E2D2A9405D1 for ; Tue, 1 Dec 2020 10:09:25 +0000 (UTC) Received: from localhost ([::1]:59380 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kk2b5-00031Q-Az for larch@yhetil.org; Tue, 01 Dec 2020 05:09:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kk2av-00031F-Bt for help-guix@gnu.org; Tue, 01 Dec 2020 05:09:13 -0500 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:42743) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kk2at-0002mq-I6 for help-guix@gnu.org; Tue, 01 Dec 2020 05:09:13 -0500 Received: by mail-wr1-x42e.google.com with SMTP id l1so1723073wrb.9 for ; Tue, 01 Dec 2020 02:09:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=giwr41LP0V2ukgPV2kkbcuaRJj2kWp03F+EJXhDmnTk=; b=tkOS0Njc8O1pLnlJwN2T2Kt5t8Z4pbwkZ6df+OC/M1gHkvtEhyag85pcRBi20jqVyN DKDvPaPOS7WAwFbbYBQ39mMEs6K18R3NSHslMsxOB+I5hrBySWQPeVeMZ4SZjqroI2xD Zi6XWE9zrqrVySOfXnqwViXXCwsl0zIpizyn1L+zFV6ReGjJqGTFn8KKo8p6B8pyF31r HBSztPzW5aJgoxQPz1rtwcZRFb5EXeGnXB8J7rYYYJtqaEBKvTyUM11dgTJceRM/q3++ wmV5iQ0XLtePBUxgItl84SOeAZ5kPZTRg8UOgIMtP9BqwEW7d6SosSOZINttd5LfgzF3 PS9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=giwr41LP0V2ukgPV2kkbcuaRJj2kWp03F+EJXhDmnTk=; b=seCUQjzYTKLSPpSxwUQv1vvAbnyDCKSwhRknSWR3rGbDbIeQNPZ1IptwwaYNZKtAIK c5rZCgEk3ezFKm2y7nlT2GNmBpUuCIP/mO19IWUUvakQOU4c/h8XofmLGHX6nziLScFD GLsB/kVggea4JgzCkWE9KyAq+8D6Ww87ClfnlnR+Vv3mWocKuni1G3TWXJ38wjW+cCQL +f8HKQHkImdmIqw0Fba+jRkO9um0TH7QrHqKzzEx5yiA0UF3rcjSxRuFUgRGZ43jG8Br d66FyTYYTOAAK7Z+JPd7ojVjvLtaM2G4sKmjXaY4Qcr7bOaah0UEO28K6Kq4gNoQxX61 4aig== X-Gm-Message-State: AOAM531K2TEYD1ZWVyanwnrWffQhIR+gS7ubOJLWgQIJgzwr3GLEz8xq 0z3TiJaTNOFAAAt+/r+8Adw= X-Google-Smtp-Source: ABdhPJyfOxOiROJ19pqroC+CvJdV3Nuy5V7ZaNNMsuWnnV/59jBVI+mu/xkSetYinwhT1yyrPs3IRw== X-Received: by 2002:adf:fa0c:: with SMTP id m12mr2939273wrr.222.1606817349888; Tue, 01 Dec 2020 02:09:09 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id b14sm2197770wrq.47.2020.12.01.02.09.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 02:09:09 -0800 (PST) From: zimoun To: "Bonface M. K." Subject: Re: How do you write a package's deps to a file? In-Reply-To: <86k0u1ga7x.fsf@gmail.com> References: <86mtyyzuag.fsf@gmail.com> <868saiwhsx.fsf@gmail.com> <86k0u1ga7x.fsf@gmail.com> Date: Tue, 01 Dec 2020 10:59:09 +0100 Message-ID: <86y2ihvocy.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x42e.google.com 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=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: , Cc: help-guix@gnu.org, Pjotr Prins Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -0.19 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=tkOS0Njc; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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-Migadu-Queue-Id: E2D2A9405D1 X-Spam-Score: -0.19 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: w05heD+Sw8gB Hi, On Tue, 01 Dec 2020 at 12:13, "Bonface M. K." wr= ote: >> What do you want? Get the list of inputs and their metadata when typing >> =E2=80=9Cguix install foo=E2=80=9D? And this list becoming part of the = outputs? Or >> simply get somehow the list of inputs and their metadata? Which is >> straightforward. >> > > Yes! Ideally I want to get details of the package > inputs, so that I could use that info to write to > a file somewhere in the outputs dir. The end goal > is to use that file to display (on some website) > the dependencies the project has. So when you do, > say, `guix install `, as part > of your outputs, you also generate a file that > explicitly list the deps as part of your output ;) > >> >> Well, I am interested by the answer of: is it possible to get the >> > > I think Efraim's suggestion in this thread is more > pragmatic ;) The Efraim=E2=80=99s suggestion=E2=80=93also the Julien=E2=80=99s suggestio= n about use the package data directly=E2=80=93 is not what you are describing above. It is =E2=80=9Csimply get somehow the list of inputs and their metadata, which is straightforward.=E2=80=9D :-) Basically, first step you run =E2=80=9C./pre-inst-env guix repl -- script.s= cm=E2=80=9D which contains =E2=80=99package-inputs=E2=80=99 (or any other =E2=80=99pack= age-direct-inputs=E2=80=99, =E2=80=99package-propagated-inputs=E2=80=99, etc.) with formatting and seco= nd step you manually add to the package this generated file in one phase to get it in the output. The file =E2=80=99script.scm=E2=80=99 is more or less one illustration in t= his blog post: Now, is it possible to embed this first step in the package definition as an extra phase and run it via =E2=80=99invoke=E2=80=99 or similar? (And I am still interested by the answer of =C2=ABis it possible to get the metadata of the inputs in phases?=C2=BB :-)) All the best, simon