From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id YLIlLM1G1WQ8JwEASxT56A (envelope-from ) for ; Thu, 10 Aug 2023 22:21:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UJEkLM1G1WQPRQEA9RJhRA (envelope-from ) for ; Thu, 10 Aug 2023 22:21:33 +0200 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 512DA3A0F8 for ; Thu, 10 Aug 2023 22:21:33 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ultrarare.space header.s=dkim header.b=32RbRgQF; 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"; dmarc=pass (policy=reject) header.from=ultrarare.space ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1691698893; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=BF+c8v+cIZoLqA9hP2Rkh9dhaTWMy1t6GMEJAMGM9Zc=; b=ZslydFUIHN/uw4NupKp4cB+0BrYpo9FnKujMG+6/UfTvd/1Lc+R9sesGPC4IL3zJ5oJDhN g2Oq4NP5jCljEwk8mesNuAXroUkuXt/mRNPz+Ui90RuPNKxnyqSLkVwQMzEu94++RLsxOb Bq/kxPj7sM9+PcQmQaI5CrqvS5KF/ReR8j1nyD5Lh0SyCH581yotF7Xn493jvRtzBLdXyq yGNMZ4B0dy9bVOSBPO9bESPZZePNCOSkLj23cQuo7Rs4iwXVTd2pynQAIWqhaMhUHDh91V AEpGW3qEvY+kqYM9hWD3gWSPMwWVhjD1n6WQ1huBShxdCm3SzGniF41hffo5Ww== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=ultrarare.space header.s=dkim header.b=32RbRgQF; 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"; dmarc=pass (policy=reject) header.from=ultrarare.space ARC-Seal: i=1; s=key1; d=yhetil.org; t=1691698893; a=rsa-sha256; cv=none; b=C43ciVgJ+Jv9GqzysN3UA4Oc9+Sev3Vf09V8YDmzLSuGWKvTCidCaMh9U4tqk5qYhh/Z45 yOtAvRq0j/C6BY/KXagxP+Ryuc8XKAg4/f4vs977K8YtLcXM3y5Nw/LN0AOEA1SLng8/Gb l8DhA8xY7xPpS6zvq+dUOHmygUHoSM++RMgMWYlyNtT6waGAu+IynAH20opW9q5G2aFg+l iQOpwpNf8GiIt/K/M9vGzt0OTIqt67nNEzt/jht/ehFkyhWOFV8/72Uwxwr9+Sx/8iztDs mtfDUcbBM01+pwRG0GZ2aljf4YUFVzD8jednB0uZcuj5SbjexKByKMqvANK83A== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qUC9j-0006dz-TF; Thu, 10 Aug 2023 16:21:15 -0400 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 1qTvJk-0006KT-Ab for help-guix@gnu.org; Wed, 09 Aug 2023 22:22:31 -0400 Received: from mail.boiledscript.com ([144.168.59.46]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qTvJd-0002Br-Pn for help-guix@gnu.org; Wed, 09 Aug 2023 22:22:26 -0400 Date: Thu, 10 Aug 2023 09:07:42 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1691634133; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=BF+c8v+cIZoLqA9hP2Rkh9dhaTWMy1t6GMEJAMGM9Zc=; b=32RbRgQFFf8RiD1SOXQJR5MA+2A0SKO8MFB5Xx8kVVCgcyFR0YqpqN3WnR2wCovfRg4LgZ riewjslEaX3hljmBEFXfX7yzJDY3Ws0NDwNAxyf6I9HmWFqN7PGdy9Cbo8RLsEeFZ5uRvw gwSOaH3JC47AVg/FXqeidmmvD2smhHShsm3KtkcR4djqzmDyjtHhJfd+SwtAtn1Whr5OB+ 3kUNN9U1zbmw819rxKgaARhRBOxNAwkxPxyMGE0DAJrstmJDB+A3eQxQ/enmXQ78OdoQch 4Xh+ofER8iH0PcTvYivaWfHdMTSKGtj+c2dhwrndS61ZjSrgur0W63wAm7OIkQ== Message-ID: <87350rpuw1.wl-hako@ultrarare.space> From: Hilton Chain To: Simon Pugnet Cc: help-guix@gnu.org Subject: Re: guix pack: support for something similar to Nix's buildLayeredImage In-Reply-To: <871qgcwd93.fsf@polaris64.net> References: <871qgcwd93.fsf@polaris64.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: / Received-SPF: pass client-ip=144.168.59.46; envelope-from=hako@ultrarare.space; helo=mail.boiledscript.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 10 Aug 2023 16:21:14 -0400 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: 512DA3A0F8 X-Migadu-Scanner: mx1.migadu.com X-Spam-Score: -7.16 X-Migadu-Spam-Score: -7.16 X-TUID: BT6nh9bGsHa+ Hi Simon, On Wed, 09 Aug 2023 20:59:02 +0800, Simon Pugnet wrote: > > I'm not a Guix or Nix expert but as far as I understand Nix solves > this problem by using "pkgs.dockerTools.buildLayeredImage" (see > http://ryantm.github.io/nixpkgs/builders/images/dockertools/#ssec-pkgs-dockerTools-buildLayeredImage) > and "streamLayeredImage". In this example, this could in theory be > used to build a coreutils-python image where coreutils exists in its > own layer. That would mean that the coreutils-rust image could share > the coreutils layer, saving space. > > Is there any way to achieve something similar in Guix? If not then are > there any plans to support this functionality? It's currently not available in Guix, but there's a patch series for it. Thanks