mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 02:23:54 +00:00
nvtopPackages.apple: darwin support
This commit is contained in:
parent
8ebe7dbb74
commit
b80d0435e4
@ -8,6 +8,7 @@
|
||||
, ncurses
|
||||
, testers
|
||||
, udev
|
||||
, apple-sdk_12
|
||||
, addDriverRunpath
|
||||
, amd ? false
|
||||
, intel ? false
|
||||
@ -53,7 +54,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
];
|
||||
nativeBuildInputs = [ cmake gtest ] ++ lib.optional nvidia addDriverRunpath;
|
||||
|
||||
buildInputs = [ ncurses udev ]
|
||||
buildInputs = [ ncurses ]
|
||||
++ lib.optional stdenv.isLinux udev
|
||||
++ lib.optional stdenv.isDarwin apple-sdk_12
|
||||
++ lib.optional nvidia cudatoolkit
|
||||
++ lib.optional needDrm libdrm
|
||||
;
|
||||
@ -83,8 +86,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
homepage = "https://github.com/Syllo/nvtop";
|
||||
changelog = "https://github.com/Syllo/nvtop/releases/tag/${finalAttrs.version}";
|
||||
license = licenses.gpl3Only;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ willibutz gbtb anthonyroussel ];
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
maintainers = with maintainers; [ willibutz gbtb anthonyroussel moni ];
|
||||
mainProgram = "nvtop";
|
||||
};
|
||||
})
|
||||
|
@ -2,10 +2,10 @@
|
||||
let
|
||||
# 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 = [ "amd" "intel" "msm" "nvidia" "panfrost" "panthor" ];
|
||||
defaultGPUFamilies = [ "amd" "apple" "intel" "msm" "nvidia" "panfrost" "panthor" ];
|
||||
# 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 = [ "apple" "ascend" ];
|
||||
additionalGPUFamilies = [ "ascend" ];
|
||||
defaultSupport = builtins.listToAttrs (builtins.map (gpu: { name = gpu; value = true; }) defaultGPUFamilies);
|
||||
in
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user