Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
693 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenv,
kernel,
ncurses,
}:
stdenv.mkDerivation {
pname = "tmon";
version = kernel.version;
inherit (kernel) src;
buildInputs = [ ncurses ];
configurePhase = ''
cd tools/thermal/tmon
'';
makeFlags = [
"ARCH=${stdenv.hostPlatform.linuxArch}"
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
"INSTALL_ROOT=\"$(out)\""
"BINDIR=bin"
];
NIX_CFLAGS_LINK = "-lgcc_s";
enableParallelBuilding = true;
meta = with lib; {
description = "Monitoring and Testing Tool for Linux kernel thermal subsystem";
mainProgram = "tmon";
homepage = "https://www.kernel.org/";
license = licenses.gpl2Only;
platforms = platforms.linux;
};
}