2024-10-23 06:41:50 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
callPackage,
|
|
|
|
}:
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
let
|
|
|
|
inherit (lib) mapAttrs' nameValuePair;
|
|
|
|
|
|
|
|
variants = {
|
|
|
|
"8" = {
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "8.15.9";
|
|
|
|
hash = "sha256-2qJ6C1QbxjUyP/lsLe2ZVGf/n+bWn/ZwIVWKqa2dzDY=";
|
2024-06-20 14:57:18 +00:00
|
|
|
};
|
|
|
|
"9" = {
|
2024-10-23 06:41:50 +00:00
|
|
|
version = "9.12.2";
|
|
|
|
hash = "sha256-LvblR7CwfYQdYFJA3OTWNWd4MRSM0w9tVkuPT5KPc9I=";
|
2024-06-20 14:57:18 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-10-23 06:41:50 +00:00
|
|
|
callPnpm = variant: callPackage ./generic.nix { inherit (variant) version hash; };
|
2024-06-20 14:57:18 +00:00
|
|
|
|
|
|
|
mkPnpm = versionSuffix: variant: nameValuePair "pnpm_${versionSuffix}" (callPnpm variant);
|
|
|
|
in
|
|
|
|
mapAttrs' mkPnpm variants
|