2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, opencl-headers, cmake, withTracing ? false }:
|
2019-10-04 12:45:26 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2024-01-20 07:29:05 +00:00
|
|
|
pname = "opencl-icd-loader";
|
2024-11-08 12:47:51 +00:00
|
|
|
version = "2024.10.24";
|
2019-10-04 12:45:26 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KhronosGroup";
|
|
|
|
repo = "OpenCL-ICD-Loader";
|
2020-03-26 18:40:16 +00:00
|
|
|
rev = "v${version}";
|
2024-11-08 12:47:51 +00:00
|
|
|
hash = "sha256-A+Rd/3LyBoUW2MrRDMOcwsTqTADuNxSQdF1HHgfq3mY=";
|
2019-10-04 12:45:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2020-03-26 18:40:16 +00:00
|
|
|
buildInputs = [ opencl-headers ];
|
2019-10-04 12:45:26 +00:00
|
|
|
|
2024-01-20 07:29:05 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
(lib.cmakeBool "OCL_ICD_ENABLE_TRACE" withTracing)
|
|
|
|
];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2022-12-18 00:39:44 +00:00
|
|
|
description = "Official Khronos OpenCL ICD Loader";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "cllayerinfo";
|
2020-03-26 18:40:16 +00:00
|
|
|
homepage = "https://github.com/KhronosGroup/OpenCL-ICD-Loader";
|
2019-10-04 12:45:26 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ davidtwco ];
|
2024-01-20 07:29:05 +00:00
|
|
|
platforms = platforms.unix;
|
2019-10-04 12:45:26 +00:00
|
|
|
};
|
|
|
|
}
|