Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 hashcat, 7 ocl-icd, 8 tesseract, 9 testers, 10 opencl-clhpp, 11}: 12 13stdenv.mkDerivation (finalAttrs: { 14 pname = "opencl-headers"; 15 version = "2024.10.24"; 16 17 src = fetchFromGitHub { 18 owner = "KhronosGroup"; 19 repo = "OpenCL-Headers"; 20 rev = "v${finalAttrs.version}"; 21 sha256 = "sha256-KDlruE0IG8d+lAChxYyc6dg5XOvqCMrMyO69sdAzejA="; 22 }; 23 24 nativeBuildInputs = [ cmake ]; 25 26 passthru.tests = { 27 inherit 28 ocl-icd 29 tesseract 30 hashcat 31 opencl-clhpp 32 ; 33 pkg-config = testers.hasPkgConfigModules { 34 package = finalAttrs.finalPackage; 35 moduleNames = [ "OpenCL-Headers" ]; 36 }; 37 }; 38 39 meta = { 40 description = "Khronos OpenCL headers version ${finalAttrs.version}"; 41 homepage = "https://www.khronos.org/registry/cl/"; 42 license = lib.licenses.asl20; 43 platforms = lib.platforms.unix ++ lib.platforms.windows; 44 maintainers = [ lib.maintainers.xokdvium ]; 45 }; 46})