Merge pull request #199894 from anthonyroussel/nvtop
This commit is contained in:
commit
4a5943d97d
1 changed files with 9 additions and 8 deletions
|
@ -1,7 +1,6 @@
|
||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
|
||||||
, cmake
|
, cmake
|
||||||
, gtest
|
, gtest
|
||||||
, cudatoolkit
|
, cudatoolkit
|
||||||
|
@ -10,6 +9,7 @@
|
||||||
, addOpenGLRunpath
|
, addOpenGLRunpath
|
||||||
, amd ? true
|
, amd ? true
|
||||||
, nvidia ? true
|
, nvidia ? true
|
||||||
|
, udev
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
@ -25,13 +25,13 @@ let
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "nvtop" + pname-suffix;
|
pname = "nvtop" + pname-suffix;
|
||||||
version = "2.0.4";
|
version = "3.0.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Syllo";
|
owner = "Syllo";
|
||||||
repo = "nvtop";
|
repo = "nvtop";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-WOXVmKnVNRjWqShbOUZ0Z4hd0m9njLmCGLnV9FBS3Us=";
|
hash = "sha256-vLvt2sankpQWAVZBPo3OePs4LDy7YfVnMkZLfN6ERAc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cmakeFlags = with lib; [
|
cmakeFlags = with lib; [
|
||||||
|
@ -44,7 +44,7 @@ stdenv.mkDerivation rec {
|
||||||
++ optional amd "-DLibdrm_INCLUDE_DIRS=${libdrm}/lib/stubs/libdrm.so.2"
|
++ optional amd "-DLibdrm_INCLUDE_DIRS=${libdrm}/lib/stubs/libdrm.so.2"
|
||||||
;
|
;
|
||||||
nativeBuildInputs = [ cmake gtest ] ++ lib.optional nvidia addOpenGLRunpath;
|
nativeBuildInputs = [ cmake gtest ] ++ lib.optional nvidia addOpenGLRunpath;
|
||||||
buildInputs = with lib; [ ncurses ]
|
buildInputs = with lib; [ ncurses udev ]
|
||||||
++ optional nvidia cudatoolkit
|
++ optional nvidia cudatoolkit
|
||||||
++ optional amd libdrm
|
++ optional amd libdrm
|
||||||
;
|
;
|
||||||
|
@ -55,14 +55,15 @@ stdenv.mkDerivation rec {
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A (h)top like task monitor for AMD and NVIDIA GPUs";
|
description = "A (h)top like task monitor for AMD, Intel and NVIDIA GPUs";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
Nvtop stands for Neat Videocard TOP, a (h)top like task monitor for AMD and NVIDIA GPUs. It can handle multiple GPUs and print information about them in a htop familiar way.
|
Nvtop stands for Neat Videocard TOP, a (h)top like task monitor for AMD, Intel and NVIDIA GPUs. It can handle multiple GPUs and print information about them in a htop familiar way.
|
||||||
'';
|
'';
|
||||||
homepage = "https://github.com/Syllo/nvtop";
|
homepage = "https://github.com/Syllo/nvtop";
|
||||||
license = licenses.gpl3;
|
changelog = "https://github.com/Syllo/nvtop/releases/tag/${version}";
|
||||||
|
license = licenses.gpl3Only;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = with maintainers; [ willibutz gbtb ];
|
maintainers = with maintainers; [ willibutz gbtb anthonyroussel ];
|
||||||
mainProgram = "nvtop";
|
mainProgram = "nvtop";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue