at 25.11-pre 36 lines 653 B view raw
1{ 2 lib, 3 stdenv, 4 kernel, 5 kernelModuleMakeFlags, 6 ncurses, 7}: 8 9stdenv.mkDerivation { 10 pname = "tmon"; 11 version = kernel.version; 12 13 inherit (kernel) src; 14 15 buildInputs = [ ncurses ]; 16 17 configurePhase = '' 18 cd tools/thermal/tmon 19 ''; 20 21 makeFlags = kernelModuleMakeFlags ++ [ 22 "INSTALL_ROOT=\"$(out)\"" 23 "BINDIR=bin" 24 ]; 25 NIX_CFLAGS_LINK = "-lgcc_s"; 26 27 enableParallelBuilding = true; 28 29 meta = with lib; { 30 description = "Monitoring and Testing Tool for Linux kernel thermal subsystem"; 31 mainProgram = "tmon"; 32 homepage = "https://www.kernel.org/"; 33 license = licenses.gpl2Only; 34 platforms = platforms.linux; 35 }; 36}