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: in
  stdenv.mkDerivation rec {
    pname = "nvtop" + pname-suffix;
    version = "2.0.4";
  
    src = fetchFromGitHub {
      owner = "Syllo";
      repo = "nvtop";
      rev = version;
      sha256 = "sha256-WOXVmKnVNRjWqShbOUZ0Z4hd0m9njLmCGLnV9FBS3Us=";
    };
  
    cmakeFlags = with lib; [
  
negative.code: { lib
  , stdenv
  , fetchFromGitHub
  , cmake
  , gtest
  , cudatoolkit
  