opencl-clhpp: add passthru.tests.pkg-config

This commit is contained in:
Sergei Zimmerman
2025-04-28 19:52:16 +00:00
committed by Sergei Zimmerman
parent 3bcb7247bd
commit 95f9b9ffc3
+9
View File
@@ -7,6 +7,7 @@
ruby,
opencl-headers,
khronos-ocl-icd-loader,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -39,6 +40,14 @@ stdenv.mkDerivation (finalAttrs: {
(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/";