Package peakperf

This commit is contained in:
Erwin Boskma 2024-09-26 11:27:34 +02:00
parent 3a5135a814
commit 89c0e9d212
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk
2 changed files with 31 additions and 0 deletions

View file

@ -260,6 +260,7 @@
dnspyre = pkgs.callPackage ./pkgs/dnspyre { };
git-repo-go = pkgs.callPackage ./pkgs/git-repo-go { };
hassbridge = pkgs.callPackage ./pkgs/hassbridge { };
peakperf = pkgs.callPackage ./pkgs/peakperf { };
tinyows = pkgs.callPackage ./pkgs/tinyows { };
tsui = pkgs.callPackage ./pkgs/tsui { };
};

30
pkgs/peakperf/default.nix Normal file
View file

@ -0,0 +1,30 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "peakperf";
version = "1.17";
src = fetchFromGitHub {
owner = "Dr-Noob";
repo = "peakperf";
rev = "v${finalAttrs.version}";
hash = "sha256-bP38oo0tHDvzbWHiNwbkQoM7ZQ4nwTimVYfbPh0FUd4=";
};
nativeBuildInputs = [
cmake
];
meta = {
description = "Achieve peak performance on x86 CPUs and NVIDIA GPUs";
homepage = "https://github.com/Dr-Noob/peakperf";
license = lib.licenses.gpl2Only;
mainProgram = "peakperf";
platforms = lib.platforms.all;
};
})