2023-09-13 03:10:41 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
2023-12-17 04:20:00 +00:00
|
|
|
, hashcat
|
|
|
|
, ocl-icd
|
|
|
|
, tesseract
|
2023-12-17 04:20:00 +00:00
|
|
|
, testers
|
2017-12-01 00:00:00 +00:00
|
|
|
}:
|
2016-03-29 10:23:12 +00:00
|
|
|
|
2023-12-17 04:20:00 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-02-14 19:55:54 +00:00
|
|
|
pname = "opencl-headers";
|
2024-05-09 01:27:59 +00:00
|
|
|
version = "2024.05.08";
|
2016-03-29 10:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KhronosGroup";
|
|
|
|
repo = "OpenCL-Headers";
|
2023-12-17 04:20:00 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2024-05-09 01:27:59 +00:00
|
|
|
sha256 = "sha256-FXDZa5umNilFPls3g/2aNqJvJOJX2JYfY08/Lfm1H1Q=";
|
2016-03-29 10:23:12 +00:00
|
|
|
};
|
|
|
|
|
2023-09-13 03:10:41 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2016-03-29 10:23:12 +00:00
|
|
|
|
2023-12-17 04:20:00 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit ocl-icd tesseract hashcat;
|
2023-12-17 04:20:00 +00:00
|
|
|
pkg-config = testers.hasPkgConfigModules {
|
|
|
|
package = finalAttrs.finalPackage;
|
|
|
|
moduleNames = [ "OpenCL-Headers" ];
|
|
|
|
};
|
2023-12-17 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2023-12-17 04:20:00 +00:00
|
|
|
description = "Khronos OpenCL headers version ${finalAttrs.version}";
|
2020-03-26 18:26:26 +00:00
|
|
|
homepage = "https://www.khronos.org/registry/cl/";
|
2021-02-15 03:34:05 +00:00
|
|
|
license = licenses.asl20;
|
2024-02-20 02:58:00 +00:00
|
|
|
platforms = platforms.unix ++ platforms.windows;
|
2023-12-17 04:20:00 +00:00
|
|
|
maintainers = [ ];
|
2016-03-29 10:23:12 +00:00
|
|
|
};
|
2023-12-17 04:20:00 +00:00
|
|
|
})
|