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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
574 B
Nix
Raw Normal View History

{ lib, stdenv, kernel, ncurses }:
2018-01-20 06:40:23 +01:00
stdenv.mkDerivation {
2022-01-10 23:30:11 +01:00
pname = "tmon";
version = kernel.version;
2018-01-20 06:40:23 +01:00
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 06:40:23 +01:00
enableParallelBuilding = true;
meta = with lib; {
2018-01-20 06:40:23 +01:00
description = "Monitoring and Testing Tool for Linux kernel thermal subsystem";
homepage = "https://www.kernel.org/";
2018-01-20 06:40:23 +01:00
license = licenses.gpl2;
platforms = platforms.linux;
};
}