anchor.diff: -{ stdenv, fetchFromGitHub, cmakeCurses, libyamlcpp, pkgconfig
  +{ stdenv, fetchFromGitHub, cmake, libyamlcpp, pkgconfig
   , smartSupport ? false, libatasmart }:
   
   stdenv.mkDerivation rec {
  
positive.code:     sha256 = "107vw0962hrwva3wra9n3hxlbfzg82ldc10qssv3dspja88g8psr";
    };
  
    configureFlags = [
      "-DCMAKE_INSTALL_DOCDIR=share/doc/${pname}"
      "-DUSE_NVML=OFF"
      "-DUSE_ATASMART=ON"
      "-DUSE_YAML=ON"
    ];
  
    nativeBuildInputs = [ cmakeCurses pkgconfig ];
  
    buildInputs = [libyamlcpp] ++ stdenv.lib.optional smartSupport libatasmart;
  
    cmakeFlags = stdenv.lib.optional smartSupport "-DUSE_ATASMART=ON";
  
    installPhase = ''
      install -Dm755 {.,$out/bin}/thinkfan
  
negative.code:     install -Dm644 {src,$out/share/man/man1}/thinkfan.1
    '';
  
    meta = with stdenv.lib; {
      license = licenses.gpl3;
      homepage = "https://github.com/vmatare/thinkfan";
      maintainers = with maintainers; [ domenkozar ];
      platforms = platforms.linux;
    };
  }
  