2018-01-20 06:40:23 +01:00
|
|
|
{ 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" ];
|
2018-05-20 00:25:57 +02:00
|
|
|
NIX_CFLAGS_LINK = "-lgcc_s";
|
2018-01-20 06:40:23 +01:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|