From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 QOVyJvESG2RfOQAASxT56A (envelope-from ) for ; Wed, 22 Mar 2023 15:38:41 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GO5BJvESG2Ro4QAAauVa8A (envelope-from ) for ; Wed, 22 Mar 2023 15:38:41 +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 610B02BF3C for ; Wed, 22 Mar 2023 15:38:41 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=NGy7s17J; 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=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679495921; 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=loWwYsPbR5w+mq8NVR5zoFAVFnok1ygfRP5NBqspsBA=; b=WlBYAeT9uAkgDNwN9wv4HVqOMKl5D+A4CHFf3PACnAmf0jW+cG7kKPrSwhSvGTmV28NBeG sKG+Gg0Q1FnzD/AXYfPUqxT5xKuGZlbIXsUdaI7J3hhSf4bsGgdIysrrjJqMJGB3BZh1Sr SkxLjqGvP6LhxrVvHhS/rV7yIxlP06dKtI9xInO3ov8xIANu5OTkIHIPgM83zW0G03XbIq u5ckMINeymE1w4lvfC1ptqCzUKEHh85figeAB7D4Drpghj1v+i16VrxoE1UnpkBjqXs2hH +ZNXiDJk1jGcBqrV7gXNK9DTNA4g1cjTkt8tfeoQXZW8F4x6HVYH8G7irS2OVA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679495921; a=rsa-sha256; cv=none; b=LQn4pXVVeWcl0H7XwC3/hjgMdfr9WgGdTn4txqgMhN5V7o/QbZn2eKqfyFrlyX3NtkaUjU EOdRUBA7ZQztYzldmolwlAWe++IiWObRwf4zBVMo9tb4v19FHBbvodN9WvOR87+zdic2oX /hsr57pxlXtN6thERF/MMOQr+NVuduEtb9UzP/VyGWQwa32BLPgWoQyaKJ18wkmphh9p2h KhQFcyqTNuX8DmE6aa0oa+7Cl5suHZcr6qkV4xj1DwHUEGJewF14IKRnrCXXICL7hYrCnF jHai0U7Qu4MRDFaxQ6jkg+f4Hy1bt2T6zSkIGGSydmD5AmX9kwawnNuif/NFcw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=NGy7s17J; 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=gnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pezbQ-0003IO-6B; Wed, 22 Mar 2023 10:38:12 -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 1pezbO-0003Hg-DG for guix-devel@gnu.org; Wed, 22 Mar 2023 10:38:10 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pezbK-0007Il-Cm; Wed, 22 Mar 2023 10:38:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=loWwYsPbR5w+mq8NVR5zoFAVFnok1ygfRP5NBqspsBA=; b=NGy7s17JTWt2rkyuYjqv Y29177bVIxBvjkF0WWEf4C/N4E64qt3NZfxPbLe0zaQw+5p69EN9QsxCJQlcUEmuMSix3lD1wYc2w YD4bPZO8ArhqPsSwXwRD0fPLYHlCw1dT1ZR05se6iLKkro7x2d0o79SqS0tuZOmjqTExtT6XhHWXK yg9yQTb+YVqz9Os79Qw89lRUcXy7M3WYtjNRp3H6ultjYL0PmnLAa0FyyIyELlZIsE7FrABAbS1RY W29yTQzz1E0G7xX+CmemiL2s7/awSdwoemoU4aLAYZD/w6SRxD2TTD6KZrJ0oQrKyYFhxLRpcQXwL 2Ny4IdcOeHeHew==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pezbJ-0007S3-T7; Wed, 22 Mar 2023 10:38:06 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Ricardo Wurmus Cc: guix-devel@gnu.org Subject: Re: more package transformations: overrides References: <87y1nphzqy.fsf@elephly.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Duodi 2 Germinal an 231 de la =?utf-8?Q?R=C3=A9volut?= =?utf-8?Q?ion=2C?= jour du Platane X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 22 Mar 2023 15:38:03 +0100 In-Reply-To: <87y1nphzqy.fsf@elephly.net> (Ricardo Wurmus's message of "Wed, 22 Mar 2023 10:55:35 +0100") Message-ID: <87zg84c0ms.fsf@gnu.org> 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 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: X-Migadu-Scanner: scn0.migadu.com List-Post: X-Migadu-Queue-Id: 610B02BF3C X-Spam-Score: -10.17 X-Migadu-Spam-Score: -10.17 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: Q08kYWoSKMra Hi, Ricardo Wurmus skribis: > 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. The long-command-line issue can be addressed by using a manifest, possibly generated (info "(guix) Writing Manifests"). > 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. Could this override mechanism be itself a package transformation option? :-) guix shell python-pytorch \ --with-overrides=3D$HOME/.config/guix/my-stuff.scm Perhaps =E2=80=98--with-overrides=E2=80=99 without any argument would pick = a default file name. It would be implemented in terms of =E2=80=98package-input-rewriting/spec= =E2=80=99 I suppose. Ludo=E2=80=99.