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:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user