2017-12-01 01:00:00 +01:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, version # "12" for "1.2", "22" for "2.2" and so on
|
|
|
|
}:
|
2016-03-29 12:23:12 +02:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2017-12-01 01:00:00 +01:00
|
|
|
name = "opencl-headers-${version}-2017-07-18";
|
2016-03-29 12:23:12 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KhronosGroup";
|
|
|
|
repo = "OpenCL-Headers";
|
2017-12-01 01:00:00 +01:00
|
|
|
rev = "f039db6764d52388658ef15c30b2237bbda49803";
|
|
|
|
sha256 = "0z04i330zr8czak2624q71aajdcq7ly8mb5bgala5m235qjpsrh7";
|
2016-03-29 12:23:12 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/include/CL
|
2017-12-01 01:00:00 +01:00
|
|
|
cp opencl${version}/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}";
|
2017-08-01 22:03:30 +02: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
|
|
|
};
|
|
|
|
}
|