2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, kernel, ncurses }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "tmon-${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;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Monitoring and Testing Tool for Linux kernel thermal subsystem";
|
|
|
|
homepage = "https://www.kernel.org/";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|