fetchPnpmDeps: drop serve (#525377)

This commit is contained in:
Marcin Serwin
2026-06-26 17:29:01 +00:00
committed by GitHub
2 changed files with 1 additions and 47 deletions
@@ -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;
@@ -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";
};
}