2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-30 09:33:41 +00:00
nixpkgs/pkgs/development/libraries/opencl-headers/default.nix
2022-10-12 00:14:00 +00:00

27 lines
590 B
Nix

{ lib, stdenv, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "opencl-headers";
version = "2022.09.30";
src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "OpenCL-Headers";
rev = "v${version}";
sha256 = "sha256-Vbh+bt/g+7glEyqMYCKTANggaIOW/n1L3TaCNouc/28=";
};
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;
};
}