Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
968 B
Nix
47 lines
968 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
hashcat,
|
|
ocl-icd,
|
|
tesseract,
|
|
testers,
|
|
opencl-clhpp,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "opencl-headers";
|
|
version = "2025.07.22";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "KhronosGroup";
|
|
repo = "OpenCL-Headers";
|
|
rev = "v${finalAttrs.version}";
|
|
sha256 = "sha256-XcDzBt4EAsip+5/lbZwPBO7/nDGAognUkJO/2Jg4OeY=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
passthru.tests = {
|
|
inherit
|
|
ocl-icd
|
|
tesseract
|
|
hashcat
|
|
opencl-clhpp
|
|
;
|
|
pkg-config = testers.hasPkgConfigModules {
|
|
package = finalAttrs.finalPackage;
|
|
moduleNames = [ "OpenCL-Headers" ];
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
description = "Khronos OpenCL headers version ${finalAttrs.version}";
|
|
homepage = "https://www.khronos.org/registry/cl/";
|
|
license = lib.licenses.asl20;
|
|
platforms = lib.platforms.unix ++ lib.platforms.windows;
|
|
maintainers = [ lib.maintainers.xokdvium ];
|
|
};
|
|
})
|