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 4FN+JcAJxl+CXgAA0tVLHw (envelope-from ) for ; Tue, 01 Dec 2020 09:15:44 +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 oIVKIcAJxl/GLgAA1q6Kng (envelope-from ) for ; Tue, 01 Dec 2020 09:15:44 +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 0525394023A for ; Tue, 1 Dec 2020 09:15:44 +0000 (UTC) Received: from localhost ([::1]:55468 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kk1l8-0001yR-Vr for larch@yhetil.org; Tue, 01 Dec 2020 04:15:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48234) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kk1km-0001xn-3e for help-guix@gnu.org; Tue, 01 Dec 2020 04:15:20 -0500 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:38255) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kk1kj-0000mX-8D for help-guix@gnu.org; Tue, 01 Dec 2020 04:15:19 -0500 Received: by mail-wr1-x436.google.com with SMTP id p8so1490159wrx.5 for ; Tue, 01 Dec 2020 01:15:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=spnmOSH89xbF9nY8qsv+Q4tjwcZNEBHGKpTMrxCtKfU=; b=q0iGrZAyDhyzmo0yncl0i3uPPy0AjIf3y5x/SwBJA9NGaSWoJ0Y28yRv+7imHKnadC C/EE2JjntJMuVYXbkjKIz6E8BoTYaFbp5WodwBcfhLZ3W8RBeQKCjWOaqNkl3U2mfyMp nNQSSCwbxN45RgJn5Ftj6DVr6D6QclA/UzuxAmOmPJX0D5ozoRUN8yeqbwJRljYoqyCd LqOf13yUmOhUCX3WJC5xsiZKgCAUVAJYS3BMzK0Ouf26D4DPMdRl73dnFL8trthKng6c aDNFSqNpJFqmpuj0GLSQVeFUrgR+aYUKwf6IGY4Wj3OZgXmRjpx3tqRmJe0R23mwr5MA Djag== 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:references:date:in-reply-to :message-id:user-agent:mime-version; bh=spnmOSH89xbF9nY8qsv+Q4tjwcZNEBHGKpTMrxCtKfU=; b=mjwEfACq+HiiEo7C3Pemsaow8rnxekhioIvRweJJcaAfhFFydZovM0pkdblKVsdnVh FnfTPbjsQSE6ljkgAv9y9KP9pntPIQS7AiPmCqU/qJsYLWvHIN4MpsJSPUA5LB4wm7iA lXkNXz5PwSlFpjHqHABcsLcYsvpH183WWYAD+IgBdCEAGozxngAo8t3nMZwyMTZtur8Z uGNCr8jRaigybkkLqQcM386/qoeYUwUgh5SBbJwQco8Q44Ans6PEECR8UZDhWuOEoK3Q Ea9XRm/XSQ/LSpx306sJqsCZs1hNng3aEePIID9Fpp3IAIQhC8GfoETl/q+lKC7hYFll XYvA== X-Gm-Message-State: AOAM531HDY2Enc54AQVo/PFitlg53P3rE13gsYFjIz4rhBL/v5Md10Gb yp3pxjhN8C3bX0NzQ3SkpCE= X-Google-Smtp-Source: ABdhPJxC9mAbkZ2rKaHgS0Uzv3nwh3Q/PxAxex3ofHzBXLHKLzwYpgblqRbSDg0BL/BtD0hfyMoYiA== X-Received: by 2002:adf:f3d1:: with SMTP id g17mr2557838wrp.201.1606814115661; Tue, 01 Dec 2020 01:15:15 -0800 (PST) Received: from susa ([41.80.109.220]) by smtp.gmail.com with ESMTPSA id d17sm1987893wro.62.2020.12.01.01.15.13 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 01 Dec 2020 01:15:14 -0800 (PST) From: "Bonface M. K." To: Efraim Flashner Subject: Re: How do you write a package's deps to a file? References: <86mtyyzuag.fsf@gmail.com> Date: Tue, 01 Dec 2020 12:15:07 +0300 In-Reply-To: (Efraim Flashner's message of "Tue, 1 Dec 2020 09:35:06 +0200") Message-ID: <86ft4pga5g.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=bonfacemunyoki@gmail.com; helo=mail-wr1-x436.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: -1.59 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=q0iGrZAy; 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-Migadu-Queue-Id: 0525394023A X-Spam-Score: -1.59 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: YuhZrWWZPGvM --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Efraim! Efraim Flashner writes: [...] >> Notice that the version, home page and description >> are repeated across rows. Herein lies my question: >> How would you fetch the details of the inputs(like >> version, home-page, description) etc etc from a >> modifed phase. Do I need to create a closure from >> which I can import the modules like say _(use (gnu >> packages))_. How do I do that if that's the case? >>=20 >> Is it also possible to get the same information in >> a fine grained manner, like say get the >> propagated-inputs instead of getting /all/ inputs? >>=20 > > I think it would be easiest to compute this outside the package > definition and then add it as an input and just plop the precomputed > file into place in a custom phase. Yes! I think this will do it for this case. Would never have thought of that! Thanks! =2D-=20 Bonface M. K. Chief Emacs Bazu / Rieng ya software sare Mchochezi of: / Twitter: @BonfaceKilz GPG Key: D4F09EB110177E03C28E2FE1F5BBAE1E0392253F --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJNBAEBCAA3FiEE1PCesRAXfgPCji/h9buuHgOSJT8FAl/GCZ4ZHGJvbmZhY2Vt dW55b2tpQGdtYWlsLmNvbQAKCRD1u64eA5IlP6qdEACWm7VYspDOAUF1zRY/b+f4 HiXIW80ZW3JK3n2Td/WeV/CJS7uyRHRW8FQqYB0j2Hnj55cMt1hdE+jpx8kv4VCz pDMkpmt9AquRpTaBMM1xibsWz19FOSluu/hK2+a8ibdSRF2zRERhI6OAlK+90ENy SpHimJW26ubT3SWsxo55kx/ipywIdhpdMKPfQs8nWVuqQ+t5oiPEiqsHFJapNzw9 d8Ru/dsil0TafhN6SbCvv2CN6ouIW644nUJLpXOIqoNA0qgJkepJIjpFxKsoKn3p PnIQzXeSOs8Da2CfD9ZbRrHPqmKeOFNOaYguA0++aVGtePRwFNitG6L22Bu4zJoI 50TSVrHymti6wWkarL+6L8htCr7H39tMswWxbPxaPs3/R2GVgJyv8qN9WRXZxE+u hgUMMAdIhYQIUYMlhVO1YW9FDR9iyZ3C2Km/KVH2ueZji6SJV6alZnSA1/k9qJZ+ x8e2oSvA/X1sasOCHYEAPpUTztl2Q4rAHkR8q5oQ6Al93H39qxpIokFg+CQ8XyYd FGMsJqMkniwRHUZIUF+uxRU1fSvoUb9EbiCM9qd2ptURmhKZ8EmLAcTgl9/ZY9hR rnPofTvD6CZcZBQaFAH38NdH9fiVjMnQh/9J7K8ZSQhvRm2KTI8opU1exU0+sLl4 C9zXu7dsyGtuEtMk0q2VHg== =M6UE -----END PGP SIGNATURE----- --=-=-=--