bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
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.3.0";
|
|
hash = "sha256-4fno0aFmB6Rt08FYtfen3HlFUB0cYiLUVNY9Az0dkY8=";
|
|
};
|
|
};
|
|
|
|
callPnpm = variant: callPackage ./generic.nix {inherit (variant) version hash;};
|
|
|
|
mkPnpm = versionSuffix: variant: nameValuePair "pnpm_${versionSuffix}" (callPnpm variant);
|
|
in
|
|
mapAttrs' mkPnpm variants
|