summary refs log blame commit diff
path: root/pkgs/os-specific/linux/tmon/default.nix
blob: 3a2697e0a712a7e51b6f4b8d3c8f7734f38f97dc (plain) (tree)
1
2
3
4
5
                                 

                     

                           









                                                                             
                              


                                
                    
                                                                                   
                                         



                                
{ lib, stdenv, kernel, ncurses }:

stdenv.mkDerivation {
  pname = "tmon";
  version = kernel.version;

  inherit (kernel) src;

  buildInputs = [ ncurses ];

  configurePhase = ''
    cd tools/thermal/tmon
  '';

  makeFlags = kernel.makeFlags ++ [ "INSTALL_ROOT=\"$(out)\"" "BINDIR=bin" ];
  NIX_CFLAGS_LINK = "-lgcc_s";

  enableParallelBuilding = true;

  meta = with lib; {
    description = "Monitoring and Testing Tool for Linux kernel thermal subsystem";
    homepage = "https://www.kernel.org/";
    license = licenses.gpl2;
    platforms = platforms.linux;
  };
}