2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2017-12-01 00:00:00 +00:00
|
|
|
}:
|
2016-03-29 11:23:12 +01:00
|
|
|
|
2020-03-26 18:26:26 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "opencl-headers-${version}";
|
2020-06-30 11:09:41 +01:00
|
|
|
version = "2020.06.16";
|
2016-03-29 11:23:12 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KhronosGroup";
|
|
|
|
repo = "OpenCL-Headers";
|
2020-03-26 18:26:26 +00:00
|
|
|
rev = "v${version}";
|
2020-06-30 11:09:41 +01:00
|
|
|
sha256 = "0viiwhfqccw90r3mr45ab3wyhabpdrihplj5842brn5ny0ayh73z";
|
2016-03-29 11:23:12 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/include/CL
|
2020-03-26 18:26:26 +00:00
|
|
|
cp CL/* $out/include/CL
|
2016-03-29 11:23:12 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2017-12-01 00:00:00 +00:00
|
|
|
description = "Khronos OpenCL headers version ${version}";
|
2020-03-26 18:26:26 +00:00
|
|
|
homepage = "https://www.khronos.org/registry/cl/";
|
2021-02-15 03:34:05 +00:00
|
|
|
license = licenses.asl20;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = platforms.unix;
|
2016-03-29 11:23:12 +01:00
|
|
|
};
|
|
|
|
}
|