2024-02-25 06:57:57 +00:00
{ callPackage }:
2022-04-21 13:26:11 +00:00
let
2024-02-25 06:57:57 +00:00
# this GPU families are supported "by-default" upstream (see https://github.com/Syllo/nvtop/blob/3a69c2d060298cd6f92cb09db944eded98be1c23/CMakeLists.txt#L81)
# coincidentally, these families are also easy to build in nixpkgs at the moment
defaultGPUFamilies = [ " a m d " " i n t e l " " m s m " " n v i d i a " " p a n f r o s t " " p a n t h o r " ] ;
# these GPU families are partially supported upstream, they are also tricky to build in nixpkgs
# volunteers with specific hardware needed to build and test these package variants
additionalGPUFamilies = [ " a p p l e " " a s c e n d " ] ;
defaultSupport = builtins . listToAttrs ( builtins . map ( gpu : { name = gpu ; value = true ; } ) defaultGPUFamilies ) ;
2022-04-21 13:26:11 +00:00
in
2024-02-25 06:57:57 +00:00
{
full = callPackage ./build-nvtop.nix defaultSupport ; #this package supports all default GPU families
}
# additional packages with only one specific GPU family support
// builtins . listToAttrs ( builtins . map ( gpu : { name = gpu ; value = ( callPackage ./build-nvtop.nix { " ${ gpu } " = true ; } ) ; } ) defaultGPUFamilies )
2018-07-21 17:04:04 +00:00
2022-06-13 14:25:17 +00:00
2022-11-16 21:15:16 +00:00