From ef0e10f591402cb9fad3e4f0faa8f66162655c04 Mon Sep 17 00:00:00 2001 From: midischwarz12 Date: Mon, 16 Mar 2026 16:30:15 -0500 Subject: [PATCH] prettier-plugin-astro: set HOME in build to avoid pnpm hook failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Export HOME=$TMPDIR in preConfigure so pnpm config doesn’t fail on /homeless-shelter --- docs/manual/release-notes/rl-0.9.md | 5 +++++ flake/pkgs/by-name/prettier-plugin-astro/package.nix | 2 ++ 2 files changed, 7 insertions(+) diff --git a/docs/manual/release-notes/rl-0.9.md b/docs/manual/release-notes/rl-0.9.md index a82c9667..c792df75 100644 --- a/docs/manual/release-notes/rl-0.9.md +++ b/docs/manual/release-notes/rl-0.9.md @@ -57,6 +57,11 @@ ## Changelog {#sec-release-0-9-changelog} +[midischwarz12](https://github.com/midischwarz12): + +- Changed the prettier-plugin-astro build to use `writableTmpDirAsHomeHook` to + avoid pnpm hook failures in sandboxed builds. + [taylrfnt](https://github.com/taylrfnt) - Introduce a `darwinModule` option for Darwin users. The ergonomics of diff --git a/flake/pkgs/by-name/prettier-plugin-astro/package.nix b/flake/pkgs/by-name/prettier-plugin-astro/package.nix index 0c0d206f..882718a0 100644 --- a/flake/pkgs/by-name/prettier-plugin-astro/package.nix +++ b/flake/pkgs/by-name/prettier-plugin-astro/package.nix @@ -6,6 +6,7 @@ pnpmConfigHook, fetchPnpmDeps, pins, + writableTmpDirAsHomeHook, }: let pin = pins.prettier-plugin-astro; in @@ -28,6 +29,7 @@ in nativeBuildInputs = [ nodejs + writableTmpDirAsHomeHook (pnpmConfigHook.overrideAttrs { propagatedBuildInputs = [pnpm_9]; })