2024-05-17 11:09:12 +02:00
|
|
|
{ lib, callPackage }:
|
|
|
|
let
|
|
|
|
inherit (lib) mapAttrs' nameValuePair;
|
|
|
|
|
|
|
|
variants = {
|
|
|
|
"8" = {
|
2024-07-19 12:18:40 +02:00
|
|
|
version = "8.15.9";
|
|
|
|
hash = "sha256-2qJ6C1QbxjUyP/lsLe2ZVGf/n+bWn/ZwIVWKqa2dzDY=";
|
2024-05-17 11:09:12 +02:00
|
|
|
};
|
|
|
|
"9" = {
|
2024-09-04 10:05:13 +02:00
|
|
|
version = "9.9.0";
|
|
|
|
hash = "sha256-ekJh5Q2aRNkkC69snW4QCJ3PCnnQAH8qJphaaScyQXc=";
|
2024-05-17 11:09:12 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
callPnpm = variant: callPackage ./generic.nix {inherit (variant) version hash;};
|
|
|
|
|
|
|
|
mkPnpm = versionSuffix: variant: nameValuePair "pnpm_${versionSuffix}" (callPnpm variant);
|
|
|
|
in
|
|
|
|
mapAttrs' mkPnpm variants
|