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 {
|
|
|
|
name = "khronos-ocl-icd-loader-${version}";
|
2020-06-26 12:59:41 +00:00
|
|
|
version = "2020.06.16";
|
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}";
|
2020-06-26 12:59:41 +00:00
|
|
|
sha256 = "0v2yi6d3g5qshzy6pjic09c5irwgds106yvr93q62f32psfblnmy";
|
2019-10-04 12:45:26 +00:00
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
patches = lib.lists.optional withTracing ./tracing.patch;
|
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
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2019-10-04 12:45:26 +00:00
|
|
|
description = "Offical Khronos OpenCL ICD Loader";
|
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;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ davidtwco ];
|
|
|
|
};
|
|
|
|
}
|