2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, kernel, ncurses }:
|
2018-01-20 06:40:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2022-01-10 23:30:11 +01:00
|
|
|
pname = "tmon";
|
|
|
|
version = kernel.version;
|
2018-01-20 06:40:23 +01:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-01-20 06:40:23 +01:00
|
|
|
description = "Monitoring and Testing Tool for Linux kernel thermal subsystem";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.kernel.org/";
|
2018-01-20 06:40:23 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|