1 { lib, stdenv, fetchFromGitHub, opencl-headers, cmake, withTracing ? false }:
3 stdenv.mkDerivation rec {
4 pname = "khronos-ocl-icd-loader";
5 version = "2022.01.04";
7 src = fetchFromGitHub {
8 owner = "KhronosGroup";
9 repo = "OpenCL-ICD-Loader";
11 sha256 = "sha256-T2tBoN0yv41W+UksFABVjsetdkXlnEFUINfxumGgC04=";
14 patches = lib.optional withTracing ./tracing.patch;
16 nativeBuildInputs = [ cmake ];
17 buildInputs = [ opencl-headers ];
20 description = "Official Khronos OpenCL ICD Loader";
21 homepage = "https://github.com/KhronosGroup/OpenCL-ICD-Loader";
22 license = licenses.asl20;
23 platforms = platforms.linux;
24 maintainers = with maintainers; [ davidtwco ];