depot/third_party/nixpkgs/pkgs/os-specific/linux/tmon/default.nix
Default email 83627f9931 Project import generated by Copybara.
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
2024-06-24 14:47:55 -04:00

27 lines
604 B
Nix

{ lib, stdenv, kernel, ncurses }:
stdenv.mkDerivation {
pname = "tmon";
version = 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 lib; {
description = "Monitoring and Testing Tool for Linux kernel thermal subsystem";
mainProgram = "tmon";
homepage = "https://www.kernel.org/";
license = licenses.gpl2Only;
platforms = platforms.linux;
};
}