nixpkgs/pkgs/os-specific/linux/tmon/default.nix

26 lines
563 B
Nix
Raw Normal View History

{ lib, stdenv, kernel, ncurses }:
2018-01-20 05:40:23 +00:00
stdenv.mkDerivation {
name = "tmon-${kernel.version}";
inherit (kernel) src;
buildInputs = [ ncurses ];
configurePhase = ''
cd tools/thermal/tmon
'';
makeFlags = kernel.makeFlags ++ [ "INSTALL_ROOT=\"$(out)\"" "BINDIR=bin" ];
NIX_CFLAGS_LINK = "-lgcc_s";
2018-01-20 05:40:23 +00:00
enableParallelBuilding = true;
meta = with lib; {
2018-01-20 05:40:23 +00:00
description = "Monitoring and Testing Tool for Linux kernel thermal subsystem";
homepage = "https://www.kernel.org/";
2018-01-20 05:40:23 +00:00
license = licenses.gpl2;
platforms = platforms.linux;
};
}