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 uNzaAwNvHGTgUwEASxT56A (envelope-from ) for ; Thu, 23 Mar 2023 16:23:47 +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 YBXTAgNvHGSGXgEAG6o9tA (envelope-from ) for ; Thu, 23 Mar 2023 16:23:47 +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 C781E3D3C for ; Thu, 23 Mar 2023 16:23:46 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=h0fDHpGs; arc=pass ("zohomail.com:s=zohoarc:i=1"); 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=none ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679585026; 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=8CfVQ3S554KizrVYrv+25VA5fVDPYgcP6W+EVcrU7FM=; b=CGxgxZqtPhLI/uW2kX6HcPeyBETK5jspWNnybCXNb1t0+PFqEna5LFv92SOBu1r1WR2ZeC kzkyeLvHAYYn2Z5sxx91YGoEEoC9eCCyCKszsh0YW8k2fszpu8DVD8L7nywfIAqi4CaOwG LYO7S19AWF+SWCI9lZpYavTIxsgxS29T50MONFPxMA/IVGk3fgl8iEGikhYE4AdJpoGjI9 1ItJS96C1ykfW39z4YynPzaLxiMBVsl6+Nvke1F/JtZ1HJJ+7TKENBEI8LZ6hxNg7RJtZG njyvH0demTksNuxTBP34duM40yyjmEbM03MPKbEr1QHgE5f1J5IdOE9gAqLbrA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1679585026; a=rsa-sha256; cv=pass; b=YSki+XSS1nUhds7m6hADkkkvPPSLEHv1vV0PoVNJmVCEj6BjdC2HGYD49NVOQbMx73k1hZ Q9MznP6ivLaUNHVz8DngBCK4P8E6obwM0ltFCPFtNJPxUPc8wqxEhOF2s2cuMfxSA8P8Qr spe7kR0zdeJIR+fPXRJp9ujkZ0h/B4ox2baGQaqCX4PVpedc85aFVbcFX+lqCVVrpRTAMy 2ZnqmVffG1ygP9tFt0PGE0JGIIn0BK2bFj9dfrXBv/FE3ZheaDtgi/fxat0letl2eNPSkX +uXmdWtcWzXa4wMqD1h3Phwmg0voopg0wzD4louvIVDvtBQp/KwDsT1DJpOc5g== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=h0fDHpGs; arc=pass ("zohomail.com:s=zohoarc:i=1"); 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=none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pfMmc-0007L9-3n; Thu, 23 Mar 2023 11:23:18 -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 1pfMma-0007Kq-TK for guix-devel@gnu.org; Thu, 23 Mar 2023 11:23:16 -0400 Received: from sender3-of-o58.zoho.com ([136.143.184.58]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pfMmZ-0007WV-7m for guix-devel@gnu.org; Thu, 23 Mar 2023 11:23:16 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1679584988; cv=none; d=zohomail.com; s=zohoarc; b=D9b74oFAGDdD+RWcySyfy3uVZdYw+Jw2Q43+0SYcAIUftX7+0SDmyLLpKHEFk8ISw70QlrvAkukASENpukk1F20KjbJ966r89dokBtOmvx1LqkIldsdIRko4X9bU/LXrdsrYvAYTbEY4DAvsnhTw4RebUW5OceWrJs5eu6m3K5g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1679584988; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=8CfVQ3S554KizrVYrv+25VA5fVDPYgcP6W+EVcrU7FM=; b=a9PoIE+zxtu2BDcj4O3scWPRB6/bJUsb6a05/sP1JS+Y9MMkf5AabvYWj7z7qmDMoPvf+92CghXC+yVgRg0dTKTxiQlOzDHrcL8nyTs6bT3WgsXw/pB6JbfB62R37DzMpPo3Ou/uRal5sdvrbrmFMj7ZVcmE8nu2rXYQW9+I2DY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1679584988; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:In-reply-to:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=8CfVQ3S554KizrVYrv+25VA5fVDPYgcP6W+EVcrU7FM=; b=h0fDHpGs1GKK/8iNqUt8YuCxf8bPJ9PPdW/v48zuNoXxAixtcZITxjGrkuKCxdUr F/7aIjsAfiD+mmLOlq6jwtN0ufHJo0MICrA/A28RIgnYAvbd4lPbY8jk6dHVrUINlYq p0hUOeNXhj1EdeisN9NLjCCTkPyqyiUHuoAfcbJE= Received: from localhost (211-108-142-46.pool.kielnet.net [46.142.108.211]) by mx.zohomail.com with SMTPS id 1679584986745408.072619728567; Thu, 23 Mar 2023 08:23:06 -0700 (PDT) References: <87y1nphzqy.fsf@elephly.net> <87bkkkhd4l.fsf@gmail.com> <87pm90ikou.fsf@elephly.net> <874jqcfa4o.fsf@gmail.com> User-agent: mu4e 1.8.13; emacs 28.2 From: Ricardo Wurmus To: Maxim Cournoyer Cc: guix-devel@gnu.org Subject: Re: more package transformations: overrides Date: Thu, 23 Mar 2023 10:32:38 +0100 In-reply-to: <874jqcfa4o.fsf@gmail.com> Message-ID: <87cz4zijag.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.184.58; envelope-from=rekado@elephly.net; helo=sender3-of-o58.zoho.com X-Spam_score_int: -4 X-Spam_score: -0.5 X-Spam_bar: / X-Spam_report: (-0.5 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_03_06=1.592, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: C781E3D3C X-Spam-Score: -7.56 X-Migadu-Spam-Score: -7.56 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: cVzmg2Xpt8sE Maxim Cournoyer writes: >> Considering that the transformations API assumes that you understand >> that higher order functions exist and what to do with them, I think it >> would be good to offer a slightly less advanced method of overriding >> packages. >> >> Manifests can do anything, but this also makes them rather intimidating >> for many of my colleagues. > > OK; then my question would be: why stop at transformations? Perhaps we > could simply have a way to feed arbitrary guix command line arguments > from a file, e.g. > > guix shell --args-file=3Dmy-arguments.txt The transformations command line options are rather verbose: --with-input=3Dpython-pytorch=3Dpython-pytorch-with-extra-features I think it would improve usability to be able to use the *same* names in an override file. Got a package with name =E2=80=9Cpython-pytorch=E2=80=9D= in that file? It replaces =E2=80=9Cpython-pytorch=E2=80=9D in the graph. ~~ On the separate topic of reading arguments from elsewhere, though, I think being able to read arguments from stdin could be useful. Without having to add a new option one could then do guix shell < my-arguments.txt --=20 Ricardo