2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2017-12-01 00:00:00 +00:00
|
|
|
}:
|
2016-03-29 10:23:12 +00:00
|
|
|
|
2020-03-26 18:26:26 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2022-02-14 19:55:54 +00:00
|
|
|
pname = "opencl-headers";
|
2022-10-12 00:14:00 +00:00
|
|
|
version = "2022.09.30";
|
2016-03-29 10:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KhronosGroup";
|
|
|
|
repo = "OpenCL-Headers";
|
2020-03-26 18:26:26 +00:00
|
|
|
rev = "v${version}";
|
2022-10-12 00:14:00 +00:00
|
|
|
sha256 = "sha256-Vbh+bt/g+7glEyqMYCKTANggaIOW/n1L3TaCNouc/28=";
|
2016-03-29 10:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/include/CL
|
2020-03-26 18:26:26 +00:00
|
|
|
cp CL/* $out/include/CL
|
2016-03-29 10:23:12 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with 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/";
|
2021-02-15 03:34:05 +00:00
|
|
|
license = licenses.asl20;
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = platforms.unix;
|
2016-03-29 10:23:12 +00:00
|
|
|
};
|
|
|
|
}
|