nvtop: init at 0.2.2

This commit is contained in:
WilliButz 2018-07-21 19:04:04 +02:00 committed by Robin Gloster
parent ea36b975ab
commit 354a477f0f
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,30 @@
{ stdenv, fetchFromGitHub, cmake, nvidia_x11, cudatoolkit, ncurses }:
stdenv.mkDerivation rec {
name = "nvtop-${version}";
version = "0.2.2";
src = fetchFromGitHub {
owner = "Syllo";
repo = "nvtop";
rev = version;
sha256 = "0gampikzmd1l0vdhvarl0hckl6kmjh2rwcllpg6rrm2p75njw7hv";
};
cmakeFlags = [
"-DNVML_INCLUDE_DIRS=${cudatoolkit}/include"
"-DNVML_LIBRARIES=${nvidia_x11}/lib/libnvidia-ml.so.390.67"
"-DCMAKE_BUILD_TYPE=Release"
];
nativeBuildInputs = [ cmake ];
buildInputs = [ ncurses nvidia_x11 cudatoolkit ];
meta = with stdenv.lib; {
description = "A (h)top like like task monitor for NVIDIA GPUs";
homepage = https://github.com/Syllo/nvtop;
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ willibutz ];
};
}

View File

@ -11174,6 +11174,10 @@ with pkgs;
nvidia-video-sdk = callPackage ../development/libraries/nvidia-video-sdk { };
nvtop = callPackage ../tools/system/nvtop {
nvidia_x11 = linuxPackages.nvidia_x11.override { libsOnly = true; };
};
ocl-icd-oclhGen = oclh: callPackage ../development/libraries/ocl-icd { opencl-headers = oclh; };
ocl-icd-oclh_1_2 = ocl-icd-oclhGen opencl-headers_1_2;
ocl-icd-oclh_2_2 = ocl-icd-oclhGen opencl-headers_2_2;