2017-12-01 00:00:00 +00:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
}:
|
2016-03-29 11:23:12 +01:00
|
|
|
|
2020-03-26 18:26:26 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "opencl-headers-${version}";
|
|
|
|
version = "2020.03.13";
|
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}";
|
|
|
|
sha256 = "1d9ibiwicaj17757h9yyjc9i2hny8d8npn4spbjscins8972z3hw";
|
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
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.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/";
|
2016-03-29 11:23:12 +01:00
|
|
|
license = licenses.mit;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = platforms.unix;
|
2016-03-29 11:23:12 +01:00
|
|
|
};
|
|
|
|
}
|