clinfo: modernize

Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
This commit is contained in:
Ethan Carter Edwards
2026-09-28 13:11:29 -04:00
parent 24bf7787b5
commit fb2b9561ba

View File

@@ -4,17 +4,21 @@
fetchFromGitHub,
ocl-icd,
opencl-headers,
versionCheckHook,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "clinfo";
version = "3.1.26.09.26";
strictDeps = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "Oblomov";
repo = "clinfo";
rev = finalAttrs.version;
sha256 = "sha256-5lM/6ULfw0xwXOZU2Kvc2h1oY7JBCvbAFuVn8mRvRX8=";
tag = finalAttrs.version;
hash = "sha256-5lM/6ULfw0xwXOZU2Kvc2h1oY7JBCvbAFuVn8mRvRX8=";
};
buildInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [
@@ -24,6 +28,9 @@ stdenv.mkDerivation (finalAttrs: {
makeFlags = [ "PREFIX=${placeholder "out"}" ];
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
meta = {
description = "Print all known information about all available OpenCL platforms and devices in the system";
homepage = "https://github.com/Oblomov/clinfo";