From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id TRu1KqdAB2TZDQAASxT56A (envelope-from ) for ; Tue, 07 Mar 2023 14:48:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GFWHKadAB2TLDAEAauVa8A (envelope-from ) for ; Tue, 07 Mar 2023 14:48:23 +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 3227E36A19 for ; Tue, 7 Mar 2023 14:48:23 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=O4qbsg5b; 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=1678196903; 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=0M3+c3HYPb2HWuRkWSSyPR1xeZUYX8AyiEJtaHnGYFE=; b=cBs6K5O/SV/4akE9L1tGf4uv20uHAfUe/U9ib+k9VAI5W+PUbJ3zdqBvVpanHQ/0Ef4/p4 Qkifx+4XjwXp84akY30OvQFYteb3/OJMtPguBPm/KqdfO/RYXXl3VdAA/q/y7v5oyOx8+3 rjlAUNKHMqpFUbU5mWu9ReX4lR+kQXl95yeDQEAUt+UTvIy0PIZjpMo8EH0m8abDR5MxFU /nU5OfPsl4Td03xhmzj0JIdv/Yab70DaeUs3OT0OnnuaC7QD6vpJwPwWT/p2vNsNp18+7P 9rQGbu5cQvJmZayMLeajN4B6k8X/to6A23N+zGwBL1Jq/v1pTQY6Fo5GvMQZBg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678196903; a=rsa-sha256; cv=none; b=IByK2Qe1jAiJup9KYejhNVbII+K1i1vyERJvfFzRzS+aN8c9uD4c1/UjMN0o02qmGFwokJ PP/7hCB1WvY4SqwQpXYkU6gwXEYuAYaGjy5lOq8LxtBSdyQw5K+owYL/Bq7fVaALfHiY9X k5XI4wkG9eO3bU5CMsY8EBG3vGmudKehgbd3R0roUEx/suzm4kvZXjiOlEhqItC1Wp1ySu a02dmerUYZ1J45BaOrK2+JDso+H2W9hjT0RQaOcKvv2xr0e4K4tnWqYZcoHECFnxdhIHXr 7QsEAykYRYwGJLBCBfE6+EMQ2SFRYPldgPshv49vj+z9P5diqhYewIXgqrrTuw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=O4qbsg5b; 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 1pZXfY-0001Cr-3w; Tue, 07 Mar 2023 08:47:56 -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 1pZXfW-0001AV-5F for guix-devel@gnu.org; Tue, 07 Mar 2023 08:47:54 -0500 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZXfT-0006zl-Ex for guix-devel@gnu.org; Tue, 07 Mar 2023 08:47:52 -0500 Received: by mail-wr1-x42c.google.com with SMTP id t15so12166600wrz.7 for ; Tue, 07 Mar 2023 05:47:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678196870; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=0M3+c3HYPb2HWuRkWSSyPR1xeZUYX8AyiEJtaHnGYFE=; b=O4qbsg5bfbbBwJQdvxS2xh4H64B62hbZXjDUuytaCuoyd6xpIGDXb2y/NtpF0oxPCK BszaAa415QMMjn3OsxivVdOrJkJdkyAZMxPcalrl5VYaA/L5bnYnyBvyqP3T1s6oCwz4 x7v8loiouUbqJeGhO8bmgTaM570VjdGwIPZg8j1oOSRuebnfw2F8noRJTyAa8TgxXeY1 /F5kcHSXT3tU8VxhL0rlAjMxlj1RpJU+SQExbtWWgigQoJMaEHzPT09/FcccT1KXhDhH xGoSHROwt2uaIPFwN4961HWwvXbVagTuyOYpE7oKPW9heGL4jVJ40pMzC2E8kQ619Nkf l9Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678196870; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0M3+c3HYPb2HWuRkWSSyPR1xeZUYX8AyiEJtaHnGYFE=; b=nO+HiKUiIva+90KlGBRTT/wivElUy+bNkZk3OuUcoyF7HIfIg7ctVKyUbXLDiTYqVM 5xx7rzpUH6ILc1Uti6An2wWXKYPm+t0ZzqxT0DZDH1HXq11vyb6mZihFz54HtgzqnIAR q+OdCgzFiUAoizF7AklQ3HwohD22dy4wENtshNFbYfHBL/0UJTgyec0ityGLwxodZYgO HLr0Razm5ExGEuJMsnD0M5geKddbRZEGJWace/Ak6xIjTBJ6nhIRyOp1e07iOEG/cJ3N fHlPXEApNWraFCrF/7Uh23scN06qPL52gyjIFbUnsiBqZGtKVfvjaa2Ewy424qtay8OE 4l9Q== X-Gm-Message-State: AO0yUKWBjturUgW8r7hM2lDdKhqQCITLIrV9znHjjH7948cyxePGXofe JdFtkEQx3TMRcy17Vr2q2GuwqGJ4xng= X-Google-Smtp-Source: AK7set/uQ9JazKWCj/7wHNTsXzFJASQAVrITfkDMgcj3TkLpcm6lBcZ6+w9gICgisywqEWrtl+4LiQ== X-Received: by 2002:adf:fe07:0:b0:2c9:d574:3c55 with SMTP id n7-20020adffe07000000b002c9d5743c55mr8567220wrr.5.1678196869955; Tue, 07 Mar 2023 05:47:49 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id z6-20020adfd0c6000000b002c55efa9cbesm12605102wrh.39.2023.03.07.05.47.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:47:49 -0800 (PST) From: Simon Tournier To: Tobias Geerinckx-Rice , Maxim Cournoyer Cc: Guix Devel Subject: Re: The package/inherit trap (was: gnu: stellarium: Enable ShowMySky.) In-Reply-To: <87jzzxy6l0.fsf@nckx> References: <20230221130600.18932-1-sharlatanus@gmail.com> <20230226004406.6215-1-sharlatanus@gmail.com> <87ilfmhkuh.fsf_-_@gnu.org> <87lekijcwi.fsf@gmail.com> <87v8jixg6u.fsf@gnu.org> <87o7p94yqk.fsf@gmail.com> <87jzzxy6l0.fsf@nckx> Date: Tue, 07 Mar 2023 12:46:24 +0100 Message-ID: <86lek8dbsf.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x42c.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-Scanner: scn0.migadu.com X-Migadu-Queue-Id: 3227E36A19 X-Spam-Score: -10.24 X-Migadu-Spam-Score: -10.24 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-Flow: FLOW_IN X-Migadu-Country: US X-TUID: RLdyBCrxzr6m Hi, On Fri, 03 Mar 2023 at 20:21, Tobias Geerinckx-Rice wrote: > Could we rename it to something like=20 > =E2=80=98package+replacements/inherit=E2=80=99? To me, that captures the= spirit,=20 > without being overly longer. Well, I gave a look at the code and have seen the replacement. But I had not thought about the package transformation and the like. >From my point of view, the best would to add a paragraph with index entries under =E2=80=9CDefining-Package-Variants=E2=80=9D section [1]. However, in the light of Maxim=E2=80=99s explanations, the example from the manual appears to me inconsistent: --8<---------------cut here---------------start------------->8--- You can just as well define variants with a different set of dependencies than the original package. For example, the default @code{gdb} package depends on @code{guile}, but since that is an optional dependency, you can define a variant that removes that dependency like so: @lisp (use-modules (gnu packages gdb)) ;for 'gdb' (define gdb-sans-guile (package (inherit gdb) (inputs (modify-inputs (package-inputs gdb) (delete "guile"))))) @end lisp --8<---------------cut here---------------end--------------->8--- Well, since the trap is not completely clear for me yet, I am not able to propose a paragraph. IMHO, a paragraph here would help in mitigating the trap. Whatever the name of =E2=80=99package/inherit=E2=80=99. :-) 1: Cheers, simon