From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id yCVADogHTmdIIQAAqHPOHw:P1 (envelope-from ) for ; Mon, 02 Dec 2024 19:16:24 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id yCVADogHTmdIIQAAqHPOHw (envelope-from ) for ; Mon, 02 Dec 2024 20:16:24 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=kSHoZaGD; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1733166984; a=rsa-sha256; cv=none; b=dOUvlE9fYQFE6lZgJ4wuul8iYyleulGqjt61w18/4bUjsimLXMGFPBZYh56becjwIZDVv3 ZtPo0fuhEyd1oiU+LLTIfL39asuqLDnfqIWELtXnR6HL8qy/dQGH+oDDpmTRBBPl8ioSVC EhQ9o0xk0NG8zpHeXHf3eFgPIoCOMmdlsHbFjAhmHUYu2zfLdwp+RDA687Rf/O39QFxhlb bj5RQWSR44kkyL3y7FGW2OCVdxDGt8M3GfZQjM+R3h5Np7SS4gcIOsE8GshzqZQaiGlkIg hbt1fYpAshWwVkYqSeLU52ztwle3kfBHSAuk92gZeOfxFID1531iGFg1IGunPQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=kSHoZaGD; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1733166984; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=CE4CaPDb2Np5mjUt9fvhajG+tdI6NyR4xhjyGc6ycNw=; b=PgUoyJOmi6Ou2g60OL/QCST9UqSRHHb2/em9z6DjjWz5uxLM5SgC9keytlaQfu6M6NaP4h Jig152CsvGHWI3hc6ASGWFfOGLS3M6LUIB4bgKw6zgxN+I6xNp0LLj9e+wqYGHFrgJHzug ScBLQpp7izKDNhb88iGbaAny+i/OKMMPZhev2TdgQoFi1/Wbi3QAeTkQB7cgoRCBfBe9lc nmIUdatLVsaOzOWa2+q6lS8Mr+lha8EOOw1KNSJoKqHBLGx5nU8cRJr6RHsYHN3932+j1T VK8BLRP/BZSRF2ItzJE7ia4HOE5Tib2Q/zUXed5v3pT/Yul6fTt3k9CXHQHjAw== 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 1A40183497 for ; Mon, 02 Dec 2024 20:16:24 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIBsx-0002VC-MP; Mon, 02 Dec 2024 14:15:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tIBsv-0002Te-2K for help-guix@gnu.org; Mon, 02 Dec 2024 14:15:05 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tIBst-00070k-Bu for help-guix@gnu.org; Mon, 02 Dec 2024 14:15:04 -0500 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-43494a20379so38041325e9.0 for ; Mon, 02 Dec 2024 11:15:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733166901; x=1733771701; darn=gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :from:to:cc:subject:date:message-id:reply-to; bh=CE4CaPDb2Np5mjUt9fvhajG+tdI6NyR4xhjyGc6ycNw=; b=kSHoZaGDq5z2F8o3lPheT+w+uAXDd90DEVfvFDj6TW5e6UA1shMM8z/UIwj5O8Jl5Z p9U1is7VIDmdholqKXM2YraohMg/5LIMOdLQy/0LkMrUV1ngqAVBD6oX2fNASPb7TkOF im60FpbYGi5zs+ohLTh0o6ZAPQJXf+Eu2VhW3HmJiUwUNG3lwmIJ17F0657cDmNlp5T7 WbCA165dFNygW9+GuO5M9K4+nC9HK+eOuV9PA2Jkyy9Pep+Mwyx626uNdspm7nzdOXSK 1KXpmBhhmcyLNHwrbbQu+3d3GMqYDIFfJdZMyAA+N8jahVs7/qfvDFcgCHqYtdRfkL0B QBEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733166901; x=1733771701; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CE4CaPDb2Np5mjUt9fvhajG+tdI6NyR4xhjyGc6ycNw=; b=eTmAh9eUjdEaV04UWgQOpk+QQ56yiKinMu3JEjQewSD9vODOkuhTU5ZmBu42nvpNXn l+ER8hiW0bStDPbxEyZC23FOhQSkC1goYgnt7ZtZ3/ws93TgcPnsFWnkLvYtg/bn0+72 qbhUM4BDQyRitA1OMSUPBn1vjUBMwUGR4zMMm5ByE/S3cgP/pO/2vQTdnnPQBDwBljCH q+sCvwAArGjbiPdxMX0mA8P8kdWleX6CcrYmx+YuL/ieLrktp/f0t7QOpJJ/6OMwQ3bV xSJ/0oWXe8MYyeZ5MP++txcncb32LN5Ca5e8hS4hvwOdgGmiWhH+zo225EoF89/S3gEE f5eQ== X-Forwarded-Encrypted: i=1; AJvYcCXlgS2Bs27OphdYoFzQcDKl/b0JktEv9nd9iXSNb6PvrELIqAEVdSKxVqfortI2++UPUitad79wfic=@gnu.org X-Gm-Message-State: AOJu0YzEXT0MLOZ+tWrkA1mH2zYAxC9U6Oq4NZxZoIOvxWsxOL0kE1EL Owzv8FQ6BKOMSQVUaedKjed1KRXEfcPbikR2UUEdm95voIu7Fz2UxA9cTg== X-Gm-Gg: ASbGnctNTVRDfsSDTgtN6LI6IAdU2WxAwuFkW8lHtx0sbPqxwCOLn5fFtb9i70dj1cC QU/cNLd12W708I3wUJjGtb9p9LYLqM53SeLmONr8RzBkdNkPmOHDLboiVWDKo8B7EiwTB8hX+AN BoJFGox5I+BFgscgKT4s8i4ai5I0CKMtK99hvOjYYpNBFzlkQF8t6Lcqso5XHiJaOFVWW3z0MYM x4q/l5f9RbfQjJ+EPQVGzMCV8dOoUyxnyl4gqT7Z/fJltCVI6amZLY0FNtN97T4meVermFWiL0P WDASDV6b9Q3Xa8uUrLPH+xNhHsXOnqThODk= X-Google-Smtp-Source: AGHT+IHL3otqR97eEEft1DJMfKbyTE5wV1xvD6YNP91qWs1Iv5CkUghLw30IkVcutuXJuukt5Ph4Ng== X-Received: by 2002:a05:600c:450a:b0:434:a7e3:db56 with SMTP id 5b1f17b1804b1-434a9dbba71mr221298585e9.6.1733166901199; Mon, 02 Dec 2024 11:15:01 -0800 (PST) Received: from lili (roam-nat-fw-prg-194-254-61-46.net.univ-paris-diderot.fr. [194.254.61.46]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-434aa7d21bcsm197466285e9.30.2024.12.02.11.14.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Dec 2024 11:15:00 -0800 (PST) From: Simon Tournier To: wifi <80211.532nf@simplelogin.co>, Guix Help Subject: Re: How to export downloaded files for a system profile? In-Reply-To: <173300778691.7.1670758004836259934.514586941@simplelogin.co> References: <173300778691.7.1670758004836259934.514586941@simplelogin.co> Date: Mon, 02 Dec 2024 19:59:03 +0100 Message-ID: <87cyi9oqrs.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x333.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.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 1A40183497 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -8.35 X-Spam-Score: -8.35 X-TUID: sdFXBH4XZPSO --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, On Sat, 30 Nov 2024 at 23:03, wifi via wrote: > I've been digging around looking for a way to build a complete build > dependency and runtime dependency graph of every package and their > derivations, but there doesn't appear to be a straightforward way to > do it. If such a complete graph could be built, it seems to be only a > matter of finding the leaf nodes and exporting those from the store. Well, I think that you can write a manifest that walks the whole graph and find the =E2=80=9Cleaf=E2=80=9D packages, i.e., the packages that have = no dependents: packages that do appear elsewhere in any other packages. Maybe there is some typo, but I think this manifest builds all the leaf packages and thus it will build the whole packages of Guix. Assuming, there is no mistake, I count 14143 leaf packages over 32459 packages. Hope that helps. Cheers, simon --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=leaf-packages.scm Content-Description: manifest.scm (use-modules (gnu packages) (guix packages) (guix sets) (ice-9 match) (ice-9 vlist) (srfi srfi-1)) (define all (all-packages)) (define (p->k p) (string-append (package-name p) "@" (package-version p))) (define vall-packages (fold (lambda (package result) (vhash-cons (p->k package) package result)) vlist-null all)) (define vleaf-packages (vhash-fold (lambda (key package result) (let loop ((dependencies (package-direct-inputs package)) (updated result)) (match dependencies ('() updated) ((or ((_ p) . tail) ((_ p _) . tail)) (if (package? p) (loop tail (vhash-delete (p->k p) updated)) (loop tail updated)))))) vall-packages vall-packages)) (define leaf-packages (vhash-fold (lambda (key package result) (cons package result)) '() vleaf-packages)) (packages->manifest leaf-packages) --=-=-=--