Merge pull request #190875 from gbtb/nvtop_203

nvtop: 2.0.2->2.0.3
This commit is contained in:
Christian Kögler 2022-09-13 07:28:18 +02:00 committed by GitHub
commit 85f1c02519
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, cmake
, gtest
, cudatoolkit
@ -24,15 +25,23 @@ let
in
stdenv.mkDerivation rec {
pname = "nvtop" + pname-suffix;
version = "2.0.2";
version = "2.0.3";
src = fetchFromGitHub {
owner = "Syllo";
repo = "nvtop";
rev = version;
sha256 = "sha256-TlhCU7PydzHG/YMlk922mxEJ3CZw40784U0w1YawI3I=";
sha256 = "sha256-LhVgNU2OSM7fOUUQHYJhKhjE0fkFvYC3FIJFgu6T68Q=";
};
#this patch should be fine to remove with next version update
patches = [
(fetchpatch {
url = "https://github.com/Syllo/nvtop/commit/663a69f1c9038eabdfc3155112fb9b8d662578aa.diff";
sha256 = "sha256-/EJlr5b+kZnHm9UxythYreJvO+Ma+1sUI3KLBQFCCmc=";
})
];
cmakeFlags = with lib; [
"-DCMAKE_BUILD_TYPE=Release"
"-DBUILD_TESTING=ON"