From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id KI7LMlxEG2SOPQAASxT56A (envelope-from ) for ; Wed, 22 Mar 2023 19:09:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yPoAMlxEG2QRNgAAG6o9tA (envelope-from ) for ; Wed, 22 Mar 2023 19:09:32 +0100 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 7F5A33BEFF for ; Wed, 22 Mar 2023 19:09:32 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="Q3/8SctA"; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679508572; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=0+/XN/yOSIFYrjlzol7dK+Y5PsG4bAF8zdZib7cZMC4=; b=tDwvuqn2Kn4juIniAIbYAba5+Ts4taHwFFfJ2bvAyUdc29x4AfxZokXO09bAvx5wcPAHrj oX8Pr+ppxw6PdsZ55lCg5+PBseE0fwalwgRnUjvB+TCiPVukfYkCR8IDNWiMHAYPvQLhi3 wyYmB/Vbw7x8D2QtJvV9+d0bKOZlWA0kHxqmSwGoOCs+Kdr0MkoAKJXcraF3QtodI24P7o XsDndrDSWXBHcVdEfK9GRirt4Kg8NbuULic5LAcTpH06In3LWLIT2DjqtyZ1lgXzzyMDwz GyOwfQQADBdraWqzHU8zb6xxEzxgiTGWwytRacKdVM6Fxm0gZa82zy3qNOMpAg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679508572; a=rsa-sha256; cv=none; b=QHl70qLgPspQlCqxEtgBTB20Q8wprBcjJa2vFG/Sco+HoxJCht5AQ+ExvqZ4g9U37AWMwZ 6nLJkTOYOjwhFVxeBf5U6fB+bz6df7YEPIK+70BlpnVwGPs5HoTCh3WxP8XQh0beBBP0Jt tSNadak0WCJXvhLD6h7j5TjF31J0HCK57M7stcRq8/HQ28AB/7ZDlwvAexQ2HTCBd0TBkF I7MHr/hI4ekGjXcOacbndDFni6v2tYeUTNmQ8I0NiNmhpdYsBHzfmRmAUJy9r5k2kZb+XE +f8hTHEL0BEhgAFWWHKe1kXXUH+CIhweVQeLfXfKyySA88NUMimMrbWNZnvBug== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="Q3/8SctA"; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pf2tk-00066r-3O; Wed, 22 Mar 2023 14:09:20 -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 1pf2ti-00066Y-Nt for guix-devel@gnu.org; Wed, 22 Mar 2023 14:09:18 -0400 Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pf2th-0006hR-9R for guix-devel@gnu.org; Wed, 22 Mar 2023 14:09:18 -0400 Received: by mail-qt1-x82c.google.com with SMTP id s12so23718479qtq.11 for ; Wed, 22 Mar 2023 11:09:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679508556; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=0+/XN/yOSIFYrjlzol7dK+Y5PsG4bAF8zdZib7cZMC4=; b=Q3/8SctA7z3Pfq13FAumKUC4AD0jDmdXP3ww+7gNjJ6nH3oa5bFr3OdzcW9sYs5C6P G7DcN2UVf37s0t06QsdF1izsAeRfIPZO6oXluPmjxM6GeBwxe/+8y4DLp0juc3vkGcia va1B3HXQvPVyyICqtPrk73dfQ8Z+ScwjwPvdytfQo50d1XMYko1wBZdWUQkrJkVOHTOf VWKnHov+/jX+nkf7Hi338zHa69+AuasdxkC6WHOcYcP3wufa0Trp80OZdckLZiCaThMP C3skZLFjtinFqLqUYGvAcOrnI76Mt+ZFJyNmH/r1tnvyqrgGEYjNtUvf7+GyI+3LmqYD FlJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679508556; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=0+/XN/yOSIFYrjlzol7dK+Y5PsG4bAF8zdZib7cZMC4=; b=7eZXLw629t01mIAeL7ARGp7OBpL2oH3PhUwJNYhE7ZBnQLyd705yA3vUc5c6kV+fnU ecZlYj9r+4Kd2JeWUfeISNhceKE+LtsMiE3pafCOJg17OuxfpFYph/NhVcFkypCmvBDE 7DQluShIQsaRhQ652gdlbw/tERpoe2DtyXmekEZ4+pSSRq12b/X+c1pDAuPiSnsW0nez YADGfyRvr2DrTFcvZX7AX5wTbYRtiMhFDhNbj8qCDb5dU05ZKN8qYdhgw1SXGc1J5UxA EUmO2li15wHwMxDoL7woZBmto5d6m7iGHTL7U7QHzz0gjD91STQE3PNHsNZdf0M5XUpi NujQ== X-Gm-Message-State: AO0yUKVjtbL+9zpprzZTRUv3g9C7i5eH9vi+nEcT1lBkO0mpvQcriLbb Qd6HeaKxGclQEe2HgUY9YIgNF7Pd6A15/g== X-Google-Smtp-Source: AK7set9oaxqhLA/6XbiSz+B4KpXoU4DnVe37KRkmB2MKKPbep5mnEAE1FCJEO/hL94GI/Jg0/UqhGw== X-Received: by 2002:ac8:5a88:0:b0:3e0:ceec:6c67 with SMTP id c8-20020ac85a88000000b003e0ceec6c67mr6232028qtc.19.1679508555988; Wed, 22 Mar 2023 11:09:15 -0700 (PDT) Received: from hurd ([2607:fad8:4:3::1001]) by smtp.gmail.com with ESMTPSA id l5-20020ac87245000000b003d3b9f79b4asm10430542qtp.68.2023.03.22.11.09.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 11:09:15 -0700 (PDT) From: Maxim Cournoyer To: Ricardo Wurmus Cc: guix-devel@gnu.org Subject: Re: more package transformations: overrides References: <87y1nphzqy.fsf@elephly.net> Date: Wed, 22 Mar 2023 14:09:14 -0400 In-Reply-To: <87y1nphzqy.fsf@elephly.net> (Ricardo Wurmus's message of "Wed, 22 Mar 2023 10:55:35 +0100") Message-ID: <87bkkkhd4l.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::82c; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x82c.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: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Queue-Id: 7F5A33BEFF X-Spam-Score: -10.78 X-Migadu-Spam-Score: -10.78 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-TUID: cjJlZWrqzoWo Hi Ricardo, Ricardo Wurmus writes: > Hi Guix, > > when using package transformations the command line can become crowded > very quickly. Sometimes I would like to be able to provide a file > containing a set of alternative packages that are used recursively in > the package dependency graph, as some sort of override. > > What do you think about extending package transformations to allow for > reading override packages from a file? The replacements would happen by > matching package names, so a package named =E2=80=9Cpython-pytorch=E2=80= =9D in my > overrides file would replace the original =E2=80=9Cpython-pytorch=E2=80= =9D package in > the input graph. All these packages would be applied as overrides > together. Would you not be better off using a manifest in this case, using the Guix API to apply the transformations? --=20 Thanks, Maxim