opencl-headers: 2.2 -> 2020.03.13

The KhronosGroup released a first tag in the reference repository for
headers.

See
https://github.com/KhronosGroup/OpenCL-Headers/releases/tag/v2020.03.13
This commit is contained in:
Lancelot SIX 2020-03-26 19:26:26 +01:00
parent e71419b11c
commit 8bbea171d9
No known key found for this signature in database
GPG Key ID: 02E1542BA66FB047
2 changed files with 9 additions and 15 deletions

View File

@ -1,25 +1,25 @@
{ stdenv, fetchFromGitHub
, version # "12" for "1.2", "22" for "2.2" and so on
}:
stdenv.mkDerivation {
name = "opencl-headers-${version}-2017-07-18";
stdenv.mkDerivation rec {
name = "opencl-headers-${version}";
version = "2020.03.13";
src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "OpenCL-Headers";
rev = "f039db6764d52388658ef15c30b2237bbda49803";
sha256 = "0z04i330zr8czak2624q71aajdcq7ly8mb5bgala5m235qjpsrh7";
rev = "v${version}";
sha256 = "1d9ibiwicaj17757h9yyjc9i2hny8d8npn4spbjscins8972z3hw";
};
installPhase = ''
mkdir -p $out/include/CL
cp opencl${version}/CL/* $out/include/CL
cp CL/* $out/include/CL
'';
meta = with stdenv.lib; {
description = "Khronos OpenCL headers version ${version}";
homepage = https://www.khronos.org/registry/cl/;
homepage = "https://www.khronos.org/registry/cl/";
license = licenses.mit;
platforms = platforms.unix;
};

View File

@ -13820,10 +13820,7 @@ in
nvidia_x11 = linuxPackages.nvidia_x11.override { libsOnly = true; };
};
ocl-icd-oclhGen = oclh: callPackage ../development/libraries/ocl-icd { opencl-headers = oclh; };
ocl-icd-oclh_1_2 = ocl-icd-oclhGen opencl-headers_1_2;
ocl-icd-oclh_2_2 = ocl-icd-oclhGen opencl-headers_2_2;
ocl-icd = ocl-icd-oclh_2_2;
ocl-icd = callPackage ../development/libraries/ocl-icd { };
ode = callPackage ../development/libraries/ode { };
@ -13855,10 +13852,7 @@ in
opencascade = callPackage ../development/libraries/opencascade { };
opencascade-occt = callPackage ../development/libraries/opencascade-occt { };
opencl-headersGen = v: callPackage ../development/libraries/opencl-headers { version = v; };
opencl-headers_1_2 = opencl-headersGen "12";
opencl-headers_2_2 = opencl-headersGen "22";
opencl-headers = opencl-headers_2_2;
opencl-headers = callPackage ../development/libraries/opencl-headers { };
opencl-clhpp = callPackage ../development/libraries/opencl-clhpp { };