From 3cd8f014f70b9751a1c72ffa1fe44d25fb2dcb7d Mon Sep 17 00:00:00 2001 From: Padreug Date: Sat, 23 May 2026 10:55:50 +0200 Subject: [PATCH] build: use top-level fetchPnpmDeps/pnpmConfigHook + fetcherVersion=2 Nixpkgs deprecated pkgs.pnpm.{fetchDeps,configHook} in favor of the top-level pkgs.fetchPnpmDeps and pkgs.pnpmConfigHook. fetchPnpmDeps now requires fetcherVersion to be set; 2 is correct for pnpm v9+ lockfiles. --- webapp.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webapp.nix b/webapp.nix index 966e123..851b203 100644 --- a/webapp.nix +++ b/webapp.nix @@ -18,12 +18,13 @@ let # Fixed-output derivation of the pnpm offline store. # On first build / lockfile change, set hash = lib.fakeHash and rebuild; # Nix will report the correct hash to substitute. - pnpmDeps = pkgs.pnpm.fetchDeps { + pnpmDeps = pkgs.fetchPnpmDeps { inherit (finalAttrs) pname version src; hash = cfg.pnpmDepsHash; + fetcherVersion = 2; }; - nativeBuildInputs = [ pkgs.nodejs_20 pkgs.pnpm.configHook ]; + nativeBuildInputs = [ pkgs.nodejs_20 pkgs.pnpmConfigHook ]; # Skip Electron binary download (we're building a web app, not desktop) ELECTRON_SKIP_BINARY_DOWNLOAD = "1";