Merge pull request #254870 from lelgenio/opencl-headers-export-dev

opencl-headers: use cmake build
This commit is contained in:
Mario Rodas 2023-12-17 19:17:08 -05:00 committed by GitHub
commit 433d476e6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,7 @@
{ lib, stdenv, fetchFromGitHub
{ lib
, stdenv
, fetchFromGitHub
, cmake
}:
stdenv.mkDerivation rec {
@ -12,10 +15,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-BJDaDokyHgmyl+bGqCwG1J7iOvu0E3P3iYZ1/krot8s=";
};
installPhase = ''
mkdir -p $out/include/CL
cp CL/* $out/include/CL
'';
nativeBuildInputs = [ cmake ];
meta = with lib; {
description = "Khronos OpenCL headers version ${version}";