nixpkgs/pkgs/by-name/op/opencl-headers/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
871 B
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, cmake
, hashcat
, ocl-icd
, tesseract
2023-12-17 04:20:00 +00:00
, testers
}:
2023-12-17 04:20:00 +00:00
stdenv.mkDerivation (finalAttrs: {
pname = "opencl-headers";
version = "2024.05.08";
src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "OpenCL-Headers";
2023-12-17 04:20:00 +00:00
rev = "v${finalAttrs.version}";
sha256 = "sha256-FXDZa5umNilFPls3g/2aNqJvJOJX2JYfY08/Lfm1H1Q=";
};
nativeBuildInputs = [ cmake ];
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" ];
};
};
meta = with lib; {
2023-12-17 04:20:00 +00:00
description = "Khronos OpenCL headers version ${finalAttrs.version}";
homepage = "https://www.khronos.org/registry/cl/";
license = licenses.asl20;
platforms = platforms.unix ++ platforms.windows;
2023-12-17 04:20:00 +00:00
maintainers = [ ];
};
2023-12-17 04:20:00 +00:00
})