From 687ecce998439fe7379e731611221e17f8b7b771 Mon Sep 17 00:00:00 2001 From: Ben Wolsieffer Date: Sat, 20 Jan 2018 00:40:23 -0500 Subject: tmon: init --- pkgs/os-specific/linux/tmon/default.nix | 24 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/os-specific/linux/tmon/default.nix diff --git a/pkgs/os-specific/linux/tmon/default.nix b/pkgs/os-specific/linux/tmon/default.nix new file mode 100644 index 00000000000..01c84a1d1fa --- /dev/null +++ b/pkgs/os-specific/linux/tmon/default.nix @@ -0,0 +1,24 @@ +{ 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" ]; + + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1b4fbf8c1e6..14a95836ebe 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13202,6 +13202,8 @@ with pkgs; systemtap = callPackage ../development/tools/profiling/systemtap { }; + tmon = callPackage ../os-specific/linux/tmon { }; + tp_smapi = callPackage ../os-specific/linux/tp_smapi { }; usbip = callPackage ../os-specific/linux/usbip { }; -- cgit 1.4.1