diff --git a/pkgs/build-support/node/fetch-pnpm-deps/default.nix b/pkgs/build-support/node/fetch-pnpm-deps/default.nix index 4669d4909b7f..cb92599d5cf6 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"; - }; -}