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 BB24322137; Fri, 08 Aug 2025 18:36:53 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 9383922114; Fri, 08 Aug 2025 18:36:51 +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.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DMARC_MISSING,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=4.0.1 Received: from fhigh-b8-smtp.messagingengine.com (fhigh-b8-smtp.messagingengine.com [202.12.124.159]) by atuin.qyliss.net (Postfix) with ESMTPS id 4D50B221C9 for ; Fri, 08 Aug 2025 18:36:50 +0000 (UTC) Received: from phl-compute-07.internal (phl-compute-07.internal [10.202.2.47]) by mailfhigh.stl.internal (Postfix) with ESMTP id DF2997A0076; Fri, 8 Aug 2025 14:36:48 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-07.internal (MEProxy); Fri, 08 Aug 2025 14:36:48 -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=1754678208; x=1754764608; bh=c7mEHeKDOk jRHY4CrGGusAe0GFgZGYuDjHPRinyxTwU=; b=I1h0UFhlb2EnylD2BiZTU5ZWVC PqhUSpJqGyUCsQQEvA9uErmhGSZPRcJhcqxPLOs4UsL7mvCKco8UjvifYViHT1Zp U4OYqn5XkpLqlFSBslpCblJoxLzOkvwdHXrCKQY50NgSOEISjOZgA+cvFu95Gxpq GgmHmk4h5nKsoBkq/0Dy9mReQXTRC9Q9QZ5zrqpnkxTZriMXW6Jtwk+Ir3DysY0z rLlLI7rd8fGi6/zblSnCB5tVxqd2UchVYYRo6hV2Rc4WLapzaL07xOh9NuLzBS2M B72Ql82zJODKMfuc8QmibrTBNALhU6YfloXqPspOfYOYBJh2nEtI2mXhe2jg== 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= 1754678208; x=1754764608; bh=c7mEHeKDOkjRHY4CrGGusAe0GFgZGYuDjHP RinyxTwU=; b=Nf58JOMfNwVIWY+XZiKgiVYs5SJiax1O9oOjUGhspx3g6T+2Uo8 1XLUkAiRrYGxTtFM0xfdF5oZOIgXWTBpKTU5aP9LLak6VKPz3+aoGrkXbxLOjUSk 0XLDw2W30nabIYBWmaFtiggGp/avpBq3Ihb8joKHxKL+azIrrmEnKN7nCNGnnyB7 ytAm6J5nX8GufaWHZo8J4v7HGHgbRoJGafTduk5qytLwd7M8bZ2qTuZyGUPPzojz q2VnPXJ1VDVNBpkWQwm2SrJ4ZK5M3yXPB1vHfSj7iaUMybw0dmgeiI5OPKOJ8Vbn JGcGKSFV+3yk7tpcS9K+U3QI6ocdVF6Lt/g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdduvdegheehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhephffvufgjfhffkfggtgesghdtreertddtjeenucfhrhhomheptehlhihsshgrucft ohhsshcuoehhihesrghlhihsshgrrdhisheqnecuggftrfgrthhtvghrnhepffduudffue ffgeehieegjedtkefhudehheefudehlefftedtkeeitdegfefgleehnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhephhhisegrlhihshhsrgdrih hspdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegu vghmihhosggvnhhouhhrsehgmhgrihhlrdgtohhmpdhrtghpthhtohepuggvvhgvlhessh hpvggtthhruhhmqdhoshdrohhrgh X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 8 Aug 2025 14:36:48 -0400 (EDT) Received: by mbp.qyliss.net (Postfix, from userid 1000) id 78700133DB16; Fri, 08 Aug 2025 20:36:46 +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: <0c439512-95cb-408a-b95a-9718672d8fe4@gmail.com> References: <20250807-make-wrapper-scripts-v1-1-3f020195a916@gmail.com> <87zfc9hn8e.fsf@alyssa.is> <9d80226e-4805-4c4c-91f7-2caef62b9c8e@gmail.com> <87zfc94rq0.fsf@alyssa.is> <0c439512-95cb-408a-b95a-9718672d8fe4@gmail.com> Date: Fri, 08 Aug 2025 20:36:44 +0200 Message-ID: <87tt2h4q4j.fsf@alyssa.is> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Message-ID-Hash: PLAOKXJGXHVNUNXIWQEZOLOEFAX53CR3 X-Message-ID-Hash: PLAOKXJGXHVNUNXIWQEZOLOEFAX53CR3 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; charset=utf-8 Content-Transfer-Encoding: quoted-printable Demi Marie Obenour writes: > On 8/8/25 14:02, Alyssa Ross wrote: >> Demi Marie Obenour writes: >>=20 >>> On 8/8/25 11:00, Alyssa Ross wrote: >>>> Demi Marie Obenour writes: >>>> >>>>> 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 a= lso >>>>> automatically change to the correct directory for you. >>>> >>>> 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 y= ou >>>> 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. >>=20 >> I think that's exactly what it does, but do correct me if I'm wrong. > > Is there a way to use nix-direnv from a script? direnv exec? But it's a relatively obscure thing to want to do, because generally it makes it so you don't need to think about it=E2=80=A6 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRV/neXydHjZma5XLJbRZGEIw/wogUCaJZDvAAKCRBbRZGEIw/w orDgAQDWP1d49607CFuSiq83tJNmNPo1fogNbCNpRxCw5mAhggD+JKmyOIRVKuKO UTBIMo8WhGWVSGz02v0ZTi8dr9h5mAA= =LpMh -----END PGP SIGNATURE----- --=-=-=--