anchor.diff:    ++ optional amd "-DLibdrm_INCLUDE_DIRS=${libdrm}/lib/stubs/libdrm.so.2"
     ;
     nativeBuildInputs = [ cmake gtest ] ++ lib.optional nvidia addOpenGLRunpath;
  -  buildInputs = with lib; [ ncurses ]
  +  buildInputs = with lib; [ ncurses udev ]
       ++ optional nvidia cudatoolkit
       ++ optional amd libdrm
     ;
  
positive.code: , addOpenGLRunpath
  , amd ? true
  , nvidia ? true
  }:
  
  let
  
negative.code:   doCheck = true;
  
    meta = with lib; {
      description = "A (h)top like task monitor for AMD, Intel and NVIDIA GPUs";
      longDescription = ''
        Nvtop stands for Neat Videocard TOP, a (h)top like task monitor for AMD, Intel and NVIDIA GPUs. It can handle multiple GPUs and print information about them in a htop familiar way.
      '';
      homepage = "https://github.com/Syllo/nvtop";
      changelog = "https://github.com/Syllo/nvtop/releases/tag/${version}";
      license = licenses.gpl3Only;
      platforms = platforms.linux;
      maintainers = with maintainers; [ willibutz gbtb ];
      mainProgram = "nvtop";
  