Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / opencl-headers / default.nix
blob6bb2b4c235ac1dd6f78b0d560808ef4109896895
1 { lib, stdenv, fetchFromGitHub
2 }:
4 stdenv.mkDerivation rec {
5   pname = "opencl-headers";
6   version = "2023.02.06";
8   src = fetchFromGitHub {
9     owner = "KhronosGroup";
10     repo = "OpenCL-Headers";
11     rev = "v${version}";
12     sha256 = "sha256-BJDaDokyHgmyl+bGqCwG1J7iOvu0E3P3iYZ1/krot8s=";
13   };
15   installPhase = ''
16     mkdir -p $out/include/CL
17     cp CL/* $out/include/CL
18   '';
20   meta = with lib; {
21     description = "Khronos OpenCL headers version ${version}";
22     homepage = "https://www.khronos.org/registry/cl/";
23     license = licenses.asl20;
24     platforms = platforms.unix;
25   };