nixpkgs/pkgs/development/tools/pnpm/default.nix
misilelaboratory ea0adc05b5
pnpm: 9.14.2 -> 9.14.4
Signed-off-by: misilelaboratory <misileminecord@gmail.com>
2024-11-29 23:59:35 +09:00

25 lines
529 B
Nix

{
lib,
callPackage,
}:
let
inherit (lib) mapAttrs' nameValuePair;
variants = {
"8" = {
version = "8.15.9";
hash = "sha256-2qJ6C1QbxjUyP/lsLe2ZVGf/n+bWn/ZwIVWKqa2dzDY=";
};
"9" = {
version = "9.14.4";
hash = "sha256-JqcmtjO2KaP6vaAG9pauQmCVSjYyyAVBEteuiXeeX5o=";
};
};
callPnpm = variant: callPackage ./generic.nix { inherit (variant) version hash; };
mkPnpm = versionSuffix: variant: nameValuePair "pnpm_${versionSuffix}" (callPnpm variant);
in
mapAttrs' mkPnpm variants