nixpkgs/pkgs/development/tools/pnpm/default.nix
Gutyina Gergő 747e1cdd1b pnpm_11: 11.5.3 -> 11.6.0
(cherry picked from commit 408759f373)
2026-06-16 11:43:01 +00:00

38 lines
1.1 KiB
Nix

{
lib,
callPackage,
}:
let
inherit (lib) mapAttrs' nameValuePair;
variants = {
"8" = {
version = "8.15.9";
hash = "sha256-2qJ6C1QbxjUyP/lsLe2ZVGf/n+bWn/ZwIVWKqa2dzDY=";
};
"9" = {
version = "9.15.9";
hash = "sha256-z4anrXZEBjldQoam0J1zBxFyCsxtk+nc6ax6xNxKKKc=";
};
# 10.29.3 made a breaking change: https://github.com/pnpm/pnpm/issues/10601.
# Pnpm packages that depend on electron builder must be upgraded to 26.8.2 or newer
# otherwise a runtime error will occur when launching the application.
"10_29_2" = {
version = "10.29.2";
hash = "sha256-hAL2daH0zJ1PJ7v6s1wtSi4dfrATHfA9rQlhnoZnTQw=";
};
"10" = {
version = "10.33.4";
hash = "sha256-jnDdxmSbGLw9iVzzqQjAKR6kw4A5rYcixH4Bja8enPw=";
};
"11" = {
version = "11.6.0";
hash = "sha256-oBYpSdGrGeEuizzZ8PWe8C1750oouAbPf0n7f0wH5c4=";
};
};
callPnpm = variant: callPackage ./generic.nix { inherit (variant) version hash; };
mkPnpm = versionSuffix: variant: nameValuePair "pnpm_${versionSuffix}" (callPnpm variant);
in
mapAttrs' mkPnpm variants