summary refs log tree commit diff
path: root/pkgs/development/libraries/opencl-headers/default.nix
blob: 682a547d8f335169b9a1d0c182e3565aa1d3faaf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, fetchFromGitHub
}:

stdenv.mkDerivation rec {
  name = "opencl-headers-${version}";
  version = "2020.03.13";

  src = fetchFromGitHub {
    owner = "KhronosGroup";
    repo = "OpenCL-Headers";
    rev = "v${version}";
    sha256 = "1d9ibiwicaj17757h9yyjc9i2hny8d8npn4spbjscins8972z3hw";
  };

  installPhase = ''
    mkdir -p $out/include/CL
    cp CL/* $out/include/CL
  '';

  meta = with stdenv.lib; {
    description = "Khronos OpenCL headers version ${version}";
    homepage = "https://www.khronos.org/registry/cl/";
    license = licenses.mit;
    platforms = platforms.unix;
  };
}