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