summary refs log tree commit diff
path: root/pkgs/os-specific/linux/tmon
diff options
context:
space:
mode:
authorBen Wolsieffer <benwolsieffer@gmail.com>2018-01-20 00:40:23 -0500
committerBen Wolsieffer <benwolsieffer@gmail.com>2018-02-18 01:29:27 -0500
commit687ecce998439fe7379e731611221e17f8b7b771 (patch)
tree7275f067dd08f4193fc0206586559893b9eeff59 /pkgs/os-specific/linux/tmon
parent5be93a588335082d0610c739067035dfc1ddd260 (diff)
downloadnixpkgs-687ecce998439fe7379e731611221e17f8b7b771.tar
nixpkgs-687ecce998439fe7379e731611221e17f8b7b771.tar.gz
nixpkgs-687ecce998439fe7379e731611221e17f8b7b771.tar.bz2
nixpkgs-687ecce998439fe7379e731611221e17f8b7b771.tar.lz
nixpkgs-687ecce998439fe7379e731611221e17f8b7b771.tar.xz
nixpkgs-687ecce998439fe7379e731611221e17f8b7b771.tar.zst
nixpkgs-687ecce998439fe7379e731611221e17f8b7b771.zip
tmon: init
Diffstat (limited to 'pkgs/os-specific/linux/tmon')
-rw-r--r--pkgs/os-specific/linux/tmon/default.nix24
1 files changed, 24 insertions, 0 deletions
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;
+  };
+}