f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
20 lines
520 B
Nix
20 lines
520 B
Nix
{ lib, callPackage }:
|
|
let
|
|
inherit (lib) mapAttrs' nameValuePair;
|
|
|
|
variants = {
|
|
"8" = {
|
|
version = "8.15.8";
|
|
hash = "sha256-aR/hdu6pqKgN8g5JdvPftEoEhBzriFY4/iomF0+B5l4=";
|
|
};
|
|
"9" = {
|
|
version = "9.4.0";
|
|
hash = "sha256-tv0L/aVV5+WErX5WswxosB1aBPnuk5ifS5PKhHPEnHQ=";
|
|
};
|
|
};
|
|
|
|
callPnpm = variant: callPackage ./generic.nix {inherit (variant) version hash;};
|
|
|
|
mkPnpm = versionSuffix: variant: nameValuePair "pnpm_${versionSuffix}" (callPnpm variant);
|
|
in
|
|
mapAttrs' mkPnpm variants
|