2018-07-21 19:04:04 +02:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, nvidia_x11, cudatoolkit, ncurses }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "nvtop";
|
2019-01-25 02:19:12 +01:00
|
|
|
version = "1.0.0";
|
2018-07-21 19:04:04 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Syllo";
|
|
|
|
repo = "nvtop";
|
|
|
|
rev = version;
|
2019-01-25 02:19:12 +01:00
|
|
|
sha256 = "1b6yz54xddip1r0k8cbqg41dpyhds18fj29bj3yf40xvysklb0f4";
|
2018-07-21 19:04:04 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DNVML_INCLUDE_DIRS=${cudatoolkit}/include"
|
2018-10-01 23:08:07 +02:00
|
|
|
"-DNVML_LIBRARIES=${nvidia_x11}/lib/libnvidia-ml.so"
|
2018-07-21 19:04:04 +02:00
|
|
|
"-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";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/Syllo/nvtop";
|
2018-07-21 19:04:04 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ willibutz ];
|
|
|
|
};
|
|
|
|
}
|