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 6CC561B30C; Sat, 01 Nov 2025 12:21:33 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 67C4C1B307; Sat, 01 Nov 2025 12:21:31 +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 fout-b6-smtp.messagingengine.com (fout-b6-smtp.messagingengine.com [202.12.124.149]) by atuin.qyliss.net (Postfix) with ESMTPS id 8CD691B2A3 for ; Sat, 01 Nov 2025 12:21:30 +0000 (UTC) Received: from phl-compute-11.internal (phl-compute-11.internal [10.202.2.51]) by mailfout.stl.internal (Postfix) with ESMTP id 4F9D71D00075; Sat, 1 Nov 2025 08:21:29 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-11.internal (MEProxy); Sat, 01 Nov 2025 08:21:29 -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=1761999689; x=1762086089; bh=vBCY6LSsgm QDCU/v1ktCA/qiCB5STdoZ1+B3AcMzZA4=; b=NzeEe/eTP92oOvp6OTJAzaTNv3 850sdzxYkwkFMfjjS2Akm7ktlWpzkIOfz2x8PnoZ9rQQS/qHKjHSA6LFxh1dauSA PrdzhKHjCHEqCe4CU8eXEgCyXebTnlyY0RNk2D2YZRS0JGtE7FqCws9MXvb4i7iW fA8pfDCeciMBqWqProBQwvBRxyExmLK2ZjayRzWOR0B/vjICdsDTfUAik5x+YL+f s7DpyPTsBF8kLaZvrY9oNLiG4nsxVGhRJQcNGhrOWAy//A2CH5yR+5YmdYH5M6TH C/SSNhFYkk4APjiAxiFyBVDwgX0sxuFm5xZ/yEWMwCncChgi2vrlEvxevYmQ== 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= 1761999689; x=1762086089; bh=vBCY6LSsgmQDCU/v1ktCA/qiCB5STdoZ1+B 3AcMzZA4=; b=JDlTqMBJnsXQ5MD/2jzNHVG1Y/hFOcdPyuRD2dMqbl8TUMYQsr0 FWUFnlpuWPEmBviduxaFT4ZF1g/yE759sINUodIiic2MuiMx//++VQOtnt5Qt+9Z W+bkdxkYijDcq0vaKLoCH95z77jNKQD/D63YZcHRoI6zLXFM9N3QmAZDH3E5tz4B e1CrRKmpc9e/3tUmQUe5IWerclOYA6dsygKA/KAs+4TTCeNEq7AcBdVt2yr8o36v YYYgIMmSvHlezo82L6yX9vWypk9u2e0Xvi9I5IVYAFfLh/ybCrBY6wvBvTY7GgEc hPUyIgWt+sHQgj+u3izzBSPY5/tt1D4oLhA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddujedvfeeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhephffvufgjfhffkfggtgesghdtreertddttdenucfhrhhomheptehlhihsshgrucft ohhsshcuoehhihesrghlhihsshgrrdhisheqnecuggftrfgrthhtvghrnhepudffieeule dtheevheefieetveevfffhvddutefhiedvgfehiedtfeefleevgfdunecuffhomhgrihhn pehsphgvtghtrhhumhdqohhsrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomhephhhisegrlhihshhsrgdrihhspdhnsggprhgtphhtthho pedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopeguvghmihhosggvnhhouhhrse hgmhgrihhlrdgtohhmpdhrtghpthhtohepuggvvhgvlhesshhpvggtthhruhhmqdhoshdr ohhrgh X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 1 Nov 2025 08:21:28 -0400 (EDT) Received: by mbp.qyliss.net (Postfix, from userid 1000) id C480162B5FBC; Sat, 01 Nov 2025 13:21:27 +0100 (CET) From: Alyssa Ross To: Demi Marie Obenour , Spectrum OS Development Subject: Re: Is builtins.readFile okay? In-Reply-To: References: Date: Sat, 01 Nov 2025 13:21:27 +0100 Message-ID: <878qgqq6yg.fsf@alyssa.is> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Message-ID-Hash: RDSTQVJBTDUQLD44OOKD7LPP6FRVEHXN X-Message-ID-Hash: RDSTQVJBTDUQLD44OOKD7LPP6FRVEHXN 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 Demi Marie Obenour writes: > Is it okay to use builtins.readFile in a Spectrum derivation? If the > input is a store path that is Import From Derivation and discouraged, > but I don't know if Spectrum's sources will ever be in a store path. That wouldn't be a problem. readFile is fine in principle, although it is rarely what you actually want. There are very few cases where you have a string you need at eval time but don't want to inline into a Nix file, so if you're reaching for readFile I'd take a step back and think about whether there's a better approach. Where readFile is used in your sysupdate VM, the build configuration mechanism[1] might be a better fit, if you don't want to hardcode it. [1]: https://spectrum-os.org/doc/development/build-configuration.html --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRV/neXydHjZma5XLJbRZGEIw/wogUCaQX7RwAKCRBbRZGEIw/w oqulAQDyP86QtqgUCUNowLoEuUZg4Fi2e1cFXm77eoloPUOCYwD+OGukuXdPDuOK IdrJfnHsp33t728Zr5DTp7nnnBP6jA4= =DlDr -----END PGP SIGNATURE----- --=-=-=--