3 # this GPU families are supported "by-default" upstream (see https://github.com/Syllo/nvtop/blob/3a69c2d060298cd6f92cb09db944eded98be1c23/CMakeLists.txt#L81)
4 # coincidentally, these families are also easy to build in nixpkgs at the moment
5 defaultGPUFamilies = [ "amd" "intel" "msm" "nvidia" "panfrost" "panthor" ];
6 # these GPU families are partially supported upstream, they are also tricky to build in nixpkgs
7 # volunteers with specific hardware needed to build and test these package variants
8 additionalGPUFamilies = [ "apple" "ascend" ];
9 defaultSupport = builtins.listToAttrs (builtins.map (gpu: { name = gpu; value = true; }) defaultGPUFamilies);
12 full = callPackage ./build-nvtop.nix defaultSupport; #this package supports all default GPU families
14 # additional packages with only one specific GPU family support
15 // builtins.listToAttrs (builtins.map (gpu: { name = gpu; value = (callPackage ./build-nvtop.nix { "${gpu}" = true; }); }) defaultGPUFamilies)