1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 09:02:46 +00:00
nixpkgs/pkgs/os-specific/linux/tmon/default.nix
2020-04-10 17:54:53 +01:00

26 lines
565 B
Nix

{ stdenv, kernel, ncurses }:
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";
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "Monitoring and Testing Tool for Linux kernel thermal subsystem";
homepage = "https://www.kernel.org/";
license = licenses.gpl2;
platforms = platforms.linux;
};
}