From 5c3225070dba85c30c2f38313ac5597685623867 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= Date: Thu, 4 Jun 2026 13:37:13 +0200 Subject: [PATCH] fetchPnpmDeps: drop serve --- .../node/fetch-pnpm-deps/default.nix | 5 +-- .../node/fetch-pnpm-deps/serve.nix | 43 ------------------- 2 files changed, 1 insertion(+), 47 deletions(-) delete mode 100644 pkgs/build-support/node/fetch-pnpm-deps/serve.nix diff --git a/pkgs/build-support/node/fetch-pnpm-deps/default.nix b/pkgs/build-support/node/fetch-pnpm-deps/default.nix index 58e6370404ae..72f86e612573 100644 --- a/pkgs/build-support/node/fetch-pnpm-deps/default.nix +++ b/pkgs/build-support/node/fetch-pnpm-deps/default.nix @@ -209,10 +209,7 @@ in passthru = args.passthru or { } // { inherit fetcherVersion; - serve = callPackage ./serve.nix { - inherit pnpm; # from args - pnpmDeps = finalAttrs.finalPackage; - }; + serve = throw "fetchPnpmDeps: `serve` has been deprecated as it was removed in pnpm 11 and only had a niche use case."; # Added 2026-06-04 }; dontConfigure = true; diff --git a/pkgs/build-support/node/fetch-pnpm-deps/serve.nix b/pkgs/build-support/node/fetch-pnpm-deps/serve.nix deleted file mode 100644 index 2c3292180d8f..000000000000 --- a/pkgs/build-support/node/fetch-pnpm-deps/serve.nix +++ /dev/null @@ -1,43 +0,0 @@ -{ - writeShellApplication, - pnpm, - pnpmDeps, - zstd, - lib, -}: - -writeShellApplication { - name = "serve-pnpm-store"; - - runtimeInputs = [ - pnpm - zstd - ]; - - text = '' - storePath=$(mktemp -d) - - clean() { - echo "Cleaning up temporary store at '$storePath'..." - - rm -rf "$storePath" - } - - echo "Copying pnpm store '${pnpmDeps}' to temporary store..." - - tar --zstd -xf "${pnpmDeps}/pnpm-store.tar.zst" -C "$storePath" - - chmod -R +w "$storePath" - - echo "Run 'pnpm install --store-dir \"$storePath\"' to install packages from this store." - - trap clean EXIT - - pnpm server start \ - --store-dir "$storePath" - ''; - - meta = { - broken = lib.versionAtLeast pnpm.version "11"; - }; -}