mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-10 06:55:10 +00:00
25 lines
529 B
Nix
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.12.2";
|
|
hash = "sha256-LvblR7CwfYQdYFJA3OTWNWd4MRSM0w9tVkuPT5KPc9I=";
|
|
};
|
|
};
|
|
|
|
callPnpm = variant: callPackage ./generic.nix { inherit (variant) version hash; };
|
|
|
|
mkPnpm = versionSuffix: variant: nameValuePair "pnpm_${versionSuffix}" (callPnpm variant);
|
|
in
|
|
mapAttrs' mkPnpm variants
|