2017-01-20 00:23:04 +00:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2016-03-29 10:23:12 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-01-20 00:31:16 +00:00
|
|
|
name = "opencl-headers-2.1-2016-11-29";
|
2016-03-29 10:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KhronosGroup";
|
|
|
|
repo = "OpenCL-Headers";
|
2017-01-20 00:31:16 +00:00
|
|
|
rev = "abb29588550c77f8340a6c3683531407013bf26b";
|
|
|
|
sha256 = "0zjznq65i4b2h4k36qfbbzq1acf2jdd9vygjv5az1yk7qgsp4jj7";
|
2016-03-29 10:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/include/CL
|
|
|
|
cp * $out/include/CL
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Khronos OpenCL headers";
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = https://www.khronos.org/registry/cl/;
|
2016-03-29 10:23:12 +00:00
|
|
|
license = licenses.mit;
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = platforms.unix;
|
2016-03-29 10:23:12 +00:00
|
|
|
};
|
|
|
|
}
|