Files
nixpkgs/pkgs/by-name/pe/peakperf/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

73 lines
1.4 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
cmake,
config,
enableCuda ? config.cudaSupport,
cudaPackages,
versionCheckHook,
installShellFiles,
unstableGitUpdater,
autoAddDriverRunpath,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "peakperf";
version = "1.17-unstable-2024-10-07";
src = fetchFromGitHub {
owner = "Dr-Noob";
repo = "peakperf";
rev = "289c8a2f58eb51712d346d5c993b3c1d136bf031";
hash = "sha256-CoGWj+zskcv8caFjhy55GKTKqFq2y1/nMjiVc6TzU1c=";
};
nativeBuildInputs = [
cmake
installShellFiles
]
++ lib.optionals enableCuda [
cudaPackages.cuda_nvcc
autoAddDriverRunpath
];
buildInputs = lib.optionals enableCuda [
cudaPackages.cuda_cudart
cudaPackages.cuda_nvml_dev
];
postInstall = ''
installManPage ${finalAttrs.src}/peakperf.1
'';
passthru = {
updateScript = unstableGitUpdater { };
};
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = [
"-v"
];
preVersionCheck = ''
export version=1.17
'';
doInstallCheck = true;
versionCheckProgram = "${placeholder "out"}/bin/peakperf";
meta = {
homepage = "https://github.com/Dr-Noob/peakperf";
description = "Achieve peak performance on x86 CPUs and NVIDIA GPUs";
mainProgram = "peakperf";
maintainers = with lib.maintainers; [ bot-wxt1221 ];
platforms = [ "x86_64-linux" ];
license = lib.licenses.gpl2Only;
};
})