depot/third_party/nixpkgs/pkgs/development/libraries/opencl-headers/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

26 lines
590 B
Nix

{ lib, stdenv, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "opencl-headers";
version = "2023.02.06";
src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "OpenCL-Headers";
rev = "v${version}";
sha256 = "sha256-BJDaDokyHgmyl+bGqCwG1J7iOvu0E3P3iYZ1/krot8s=";
};
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;
};
}