From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id 93FB521E70; Fri, 08 Aug 2025 18:02:35 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id D47FA21E8E; Fri, 08 Aug 2025 18:02:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on atuin.qyliss.net X-Spam-Level: X-Spam-Status: No, score=-0.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DMARC_MISSING,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=4.0.1 Received: from fout-b3-smtp.messagingengine.com (fout-b3-smtp.messagingengine.com [202.12.124.146]) by atuin.qyliss.net (Postfix) with ESMTPS id 347C421E8D for ; Fri, 08 Aug 2025 18:02:31 +0000 (UTC) Received: from phl-compute-09.internal (phl-compute-09.internal [10.202.2.49]) by mailfout.stl.internal (Postfix) with ESMTP id 6D6C21D0013C; Fri, 8 Aug 2025 14:02:28 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-09.internal (MEProxy); Fri, 08 Aug 2025 14:02:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h=cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1754676148; x=1754762548; bh=/mieHqDI4V odsciOAykwcT7lUhf53sozwV1xJPYQ7YU=; b=ldgin3tVgjUkptQET8f6DdMIoB nujqeF8Ox6agrCk6qZZ7ouaOf8/X4BIy47+on+bNM5JBgu5cN2OD7uPVww8uRbOr QWLVdVejRvCwNLlXlCZ95mdInuTw6yCiHNS4Cq2543BM4XaGJHJBPjBxeCpzw6l9 etUzsjfbVnbwoEgVZ+FBNQfFViQGfvss7IAJZSFr1hvGFqzqNisGggyt6K+A3rNQ o/8REg/wepJF8fLvdjpss9OoWk3Zw3lyACsoY5Apv9zwnlZKZrwWg0ICAiM+R7T0 Cdjy8Y3erbbqqK5PdcMGYwtxiBzlfp5GPC20U7UpVX1CeaKqf12JOKSLvyeg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1754676148; x=1754762548; bh=/mieHqDI4VodsciOAykwcT7lUhf53sozwV1 xJPYQ7YU=; b=bYVcudA6fxAheZlepXcx+R94sqfWD4T+YpskaKZukSuMTmcD5iZ EVBHSg0Afui8YubYGqf4Dps9Mg+EU4n1XG5gGr1VAb9eWklB4KnS2ONghVAgwmI9 VI52pqGHQqF2s159hfx0E7wXpB/Qy7lxS+2KllLXYQgPxslJZmqA7duzk+pxntgR ZdL9BKsTozhhiUPWhX2YgAZJ/j1xIxXTYae1V0XBe6UwLUwKV+ULPj4T+tpLmfee C4lyP14rtgHuDf3q+TYtI62+2zz2W0QWVH4LxPdcMuHTxzdqHRVxSV88L5z//CFg 3lM/R750RSnUsYyrngJgQW8ub6xiEh4fO3g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdduvdeggeekucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhephffvufgjfhffkfggtgesghdtreertddttdenucfhrhhomheptehlhihsshgrucft ohhsshcuoehhihesrghlhihsshgrrdhisheqnecuggftrfgrthhtvghrnhepvdeuvdeivd ehhfeikedtvddvhefgheffleevueeigffgtdffffeujedujeejkeejnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhephhhisegrlhihshhsrgdrih hspdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegu vghmihhosggvnhhouhhrsehgmhgrihhlrdgtohhmpdhrtghpthhtohepuggvvhgvlhessh hpvggtthhruhhmqdhoshdrohhrgh X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 8 Aug 2025 14:02:26 -0400 (EDT) Received: by mbp.qyliss.net (Postfix, from userid 1000) id C5B2C133D6B1; Fri, 08 Aug 2025 20:02:16 +0200 (CEST) From: Alyssa Ross To: Demi Marie Obenour , Spectrum OS Development Subject: Re: [PATCH] Add wrapper scripts to run make in a Nix shell In-Reply-To: <9d80226e-4805-4c4c-91f7-2caef62b9c8e@gmail.com> References: <20250807-make-wrapper-scripts-v1-1-3f020195a916@gmail.com> <87zfc9hn8e.fsf@alyssa.is> <9d80226e-4805-4c4c-91f7-2caef62b9c8e@gmail.com> Date: Fri, 08 Aug 2025 20:02:15 +0200 Message-ID: <87zfc94rq0.fsf@alyssa.is> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Message-ID-Hash: 5APASQUPBJBZUPEODN4MLFWPE7NNZDHC X-Message-ID-Hash: 5APASQUPBJBZUPEODN4MLFWPE7NNZDHC X-MailFrom: hi@alyssa.is X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-devel.spectrum-os.org-0; header-match-devel.spectrum-os.org-1; header-match-devel.spectrum-os.org-2; header-match-devel.spectrum-os.org-3; header-match-devel.spectrum-os.org-4; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: Patches and low-level development discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Demi Marie Obenour writes: > On 8/8/25 11:00, Alyssa Ross wrote: >> Demi Marie Obenour writes: >>=20 >>> It is very easy to forget to do this, and the results are confusing at >>> best and wrong at worst. Add wrapper scripts that get it right and also >>> automatically change to the correct directory for you. >>=20 >> I think you'd probably be better setting up nix-direnv or something. It >> makes it so that you can't forget to be in the shell, but also means you >> can just run make, rather than having to remember to run some other >> script. It also comes with caching I think, so if that works you'll >> probably save quite a bit of time over doing a Nix evaluation for every >> make invocation. > > For general development I agree, but unless nix-direnv always rebuilds > when needed I think wrappers like this might be better for scripted use. > The big advantage is that they guarantee the environment variables > passed to 'make' will always be up-to-date, and I'm not sure how to > achieve that in a script otherwise. I think that's exactly what it does, but do correct me if I'm wrong. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRV/neXydHjZma5XLJbRZGEIw/wogUCaJY7pwAKCRBbRZGEIw/w oqOGAP9v3pQ2vrwY2rB69LF/4fmO/IMW0HaamHNYW7AllQsTrAEAjLtuDK/dQiZ4 1bwHSdJaUT0ha+RXVLqj4qblLVLMow0= =UjJI -----END PGP SIGNATURE----- --=-=-=--