mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
20 lines
520 B
Nix
20 lines
520 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.10.0";
|
|
hash = "sha256-NVqKuNu2rUG+++85vE/Wtd+F4Sdh0nJL0B8T6HjeSxM";
|
|
};
|
|
};
|
|
|
|
callPnpm = variant: callPackage ./generic.nix {inherit (variant) version hash;};
|
|
|
|
mkPnpm = versionSuffix: variant: nameValuePair "pnpm_${versionSuffix}" (callPnpm variant);
|
|
in
|
|
mapAttrs' mkPnpm variants
|