depot/third_party/nixpkgs/pkgs/development/libraries/opencl-headers/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

39 lines
871 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, hashcat
, ocl-icd
, tesseract
, testers
}:
stdenv.mkDerivation (finalAttrs: {
pname = "opencl-headers";
version = "2023.12.14";
src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "OpenCL-Headers";
rev = "v${finalAttrs.version}";
sha256 = "sha256-wF9KQjzYKJf6ulXRy80o53bp6lTtm8q1NubKbcH+RY0=";
};
nativeBuildInputs = [ cmake ];
passthru.tests = {
inherit ocl-icd tesseract hashcat;
pkg-config = testers.hasPkgConfigModules {
package = finalAttrs.finalPackage;
moduleNames = [ "OpenCL-Headers" ];
};
};
meta = with lib; {
description = "Khronos OpenCL headers version ${finalAttrs.version}";
homepage = "https://www.khronos.org/registry/cl/";
license = licenses.asl20;
platforms = platforms.unix ++ platforms.windows;
maintainers = [ ];
};
})