nixpkgs-suyu/pkgs/os-specific/linux/tmon/default.nix
Ben Wolsieffer 687ecce998 tmon: init
2018-02-18 01:29:27 -05:00

24 lines
532 B
Nix

{ stdenv, kernel, ncurses }:
stdenv.mkDerivation {
name = "tmon-${kernel.version}";
inherit (kernel) src;
buildInputs = [ ncurses ];
configurePhase = ''
cd tools/thermal/tmon
'';
makeFlags = kernel.makeFlags ++ [ "INSTALL_ROOT=\"$(out)\"" "BINDIR=bin" ];
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "Monitoring and Testing Tool for Linux kernel thermal subsystem";
homepage = https://www.kernel.org/;
license = licenses.gpl2;
platforms = platforms.linux;
};
}