1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 02:24:27 +00:00
nixpkgs/pkgs/tools/system/nvtop/default.nix
2019-01-25 10:19:30 +09:00

31 lines
822 B
Nix

{ stdenv, fetchFromGitHub, cmake, nvidia_x11, cudatoolkit, ncurses }:
stdenv.mkDerivation rec {
name = "nvtop-${version}";
version = "1.0.0";
src = fetchFromGitHub {
owner = "Syllo";
repo = "nvtop";
rev = version;
sha256 = "1b6yz54xddip1r0k8cbqg41dpyhds18fj29bj3yf40xvysklb0f4";
};
cmakeFlags = [
"-DNVML_INCLUDE_DIRS=${cudatoolkit}/include"
"-DNVML_LIBRARIES=${nvidia_x11}/lib/libnvidia-ml.so"
"-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 ];
};
}