mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-31 20:54:56 +00:00
39 lines
696 B
Nix
39 lines
696 B
Nix
{
|
|
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"
|
|
];
|
|
|
|
env.NIX_CFLAGS_LINK = "-lgcc_s";
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
description = "Monitoring and Testing Tool for Linux kernel thermal subsystem";
|
|
mainProgram = "tmon";
|
|
homepage = "https://www.kernel.org/";
|
|
license = lib.licenses.gpl2Only;
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|