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
59 lines
1.3 KiB
Nix
59 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
python3,
|
|
ruby,
|
|
opencl-headers,
|
|
khronos-ocl-icd-loader,
|
|
testers,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "opencl-clhpp";
|
|
version = "2025.07.22";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "KhronosGroup";
|
|
repo = "OpenCL-CLHPP";
|
|
tag = "v${finalAttrs.version}";
|
|
fetchSubmodules = true;
|
|
sha256 = "sha256-afiHjAhdhjtNkGggCO69MwHiQuJZb028lfpQl3HIvXw=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
python3
|
|
];
|
|
|
|
propagatedBuildInputs = [ opencl-headers ];
|
|
|
|
strictDeps = true;
|
|
|
|
doCheck = true;
|
|
checkInputs = [ khronos-ocl-icd-loader ];
|
|
nativeCheckInputs = [ ruby ];
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeBool "OPENCL_CLHPP_BUILD_TESTING" finalAttrs.finalPackage.doCheck)
|
|
(lib.cmakeBool "BUILD_EXAMPLES" finalAttrs.finalPackage.doCheck)
|
|
];
|
|
|
|
passthru.tests = {
|
|
pkg-config = testers.hasPkgConfigModules {
|
|
package = finalAttrs.finalPackage;
|
|
moduleNames = [ "OpenCL-CLHPP" ];
|
|
# Package version does not match the pkg-config module version.
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
description = "OpenCL Host API C++ bindings";
|
|
homepage = "http://github.khronos.org/OpenCL-CLHPP/";
|
|
license = lib.licenses.asl20;
|
|
maintainers = [ lib.maintainers.xokdvium ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|