Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
777 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenv,
fetchFromGitHub,
opencl-headers,
cmake,
withTracing ? false,
}:
stdenv.mkDerivation rec {
pname = "opencl-icd-loader";
version = "2025.07.22";
src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "OpenCL-ICD-Loader";
rev = "v${version}";
hash = "sha256-jwviNwX7C7b9lqIS4oZ4YLEFBfBdmQfXHxW3FPPYxYs=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ opencl-headers ];
cmakeFlags = [
(lib.cmakeBool "OCL_ICD_ENABLE_TRACE" withTracing)
];
meta = with lib; {
description = "Official Khronos OpenCL ICD Loader";
mainProgram = "cllayerinfo";
homepage = "https://github.com/KhronosGroup/OpenCL-ICD-Loader";
license = licenses.asl20;
maintainers = [ ];
platforms = platforms.unix;
};
}