2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, opencl-headers, cmake, withTracing ? false }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2024-01-25 14:12:00 +00:00
|
|
|
pname = "opencl-icd-loader";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "2024.05.08";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KhronosGroup";
|
|
|
|
repo = "OpenCL-ICD-Loader";
|
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-wFwc1ku3FNEH2k8TJij2sT7JspWorR/XbxXwPZaQcGA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ opencl-headers ];
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
(lib.cmakeBool "OCL_ICD_ENABLE_TRACE" withTracing)
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2022-12-28 21:21:41 +00:00
|
|
|
description = "Official Khronos OpenCL ICD Loader";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "cllayerinfo";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/KhronosGroup/OpenCL-ICD-Loader";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ davidtwco ];
|
2024-01-25 14:12:00 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|