2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2017-12-01 00:00:00 +00:00
|
|
|
}:
|
2016-03-29 11:23:12 +01:00
|
|
|
|
2020-03-26 18:26:26 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "opencl-headers-${version}";
|
2021-08-15 16:56:08 +01:00
|
|
|
version = "2021.06.30";
|
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}";
|
2021-08-15 16:56:08 +01:00
|
|
|
sha256 = "sha256-MdKC48f1zhVAcHrqzrgT9iaYrHXurV8vDt+GnDroO9s=";
|
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
|
|
|
'';
|
|
|
|
|
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 18:50:55 +01:00
|
|
|
platforms = platforms.unix;
|
2016-03-29 11:23:12 +01:00
|
|
|
};
|
|
|
|
}
|