2020-03-26 18:40:16 +00:00
|
|
|
{ stdenv, fetchFromGitHub, opencl-headers, cmake, withTracing ? false }:
|
2019-10-04 13:45:26 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "khronos-ocl-icd-loader-${version}";
|
2020-03-26 18:40:16 +00:00
|
|
|
version = "2020.03.13";
|
2019-10-04 13:45:26 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KhronosGroup";
|
|
|
|
repo = "OpenCL-ICD-Loader";
|
2020-03-26 18:40:16 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0zk6fyfrklx8a848613rfcx0y4yn0dsxkxzzl9pgdh9i6qdfjj9k";
|
2019-10-04 13:45:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = stdenv.lib.lists.optional withTracing ./tracing.patch;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2020-03-26 18:40:16 +00:00
|
|
|
buildInputs = [ opencl-headers ];
|
2019-10-04 13:45:26 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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 13:45:26 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ davidtwco ];
|
|
|
|
};
|
|
|
|
}
|