opencl-clhpp: add passthru.tests.pkg-config
This commit is contained in:
@@ -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/";
|
||||
|
||||
Reference in New Issue
Block a user