1{ lib, stdenv, kernel, ncurses }:
2
3stdenv.mkDerivation {
4 pname = "tmon";
5 version = kernel.version;
6
7 inherit (kernel) src;
8
9 buildInputs = [ ncurses ];
10
11 configurePhase = ''
12 cd tools/thermal/tmon
13 '';
14
15 makeFlags = kernel.makeFlags ++ [ "INSTALL_ROOT=\"$(out)\"" "BINDIR=bin" ];
16 NIX_CFLAGS_LINK = "-lgcc_s";
17
18 enableParallelBuilding = true;
19
20 meta = with lib; {
21 description = "Monitoring and Testing Tool for Linux kernel thermal subsystem";
22 homepage = "https://www.kernel.org/";
23 license = licenses.gpl2;
24 platforms = platforms.linux;
25 };
26}