forked from mirrors/nixpkgs
27 lines
600 B
Nix
27 lines
600 B
Nix
{ lib, stdenv, fetchFromGitHub
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "opencl-headers-${version}";
|
|
version = "2021.06.30";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "KhronosGroup";
|
|
repo = "OpenCL-Headers";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-MdKC48f1zhVAcHrqzrgT9iaYrHXurV8vDt+GnDroO9s=";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/include/CL
|
|
cp CL/* $out/include/CL
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Khronos OpenCL headers version ${version}";
|
|
homepage = "https://www.khronos.org/registry/cl/";
|
|
license = licenses.asl20;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|