blob: 1a299ad5066920d74f09bc5c11e1acad9140f3ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{
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;
};
}
|