rapidcheck: Add meta.pkgConfigModules and test

The last update added pkg-config support.

Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
(cherry picked from commit a7447f9e33)
(cherry picked from commit 96d3c843d3)
This commit is contained in:
John Ericson 2023-12-14 16:33:41 -05:00
parent 6bca544be7
commit 0af53606be

View File

@ -3,9 +3,10 @@
, fetchFromGitHub
, cmake
, unstableGitUpdater
, testers
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "rapidcheck";
version = "unstable-2023-12-14";
@ -25,13 +26,25 @@ stdenv.mkDerivation rec {
"-DRC_INSTALL_ALL_EXTRAS=TRUE"
];
passthru.updateScript = unstableGitUpdater { };
passthru = {
updateScript = unstableGitUpdater { };
tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
};
meta = with lib; {
description = "A C++ framework for property based testing inspired by QuickCheck";
inherit (src.meta) homepage;
inherit (finalAttrs.src.meta) homepage;
maintainers = with maintainers; [ ];
license = licenses.bsd2;
pkgConfigModules = [
"rapidcheck"
# Extras
"rapidcheck_boost"
"rapidcheck_boost_test"
"rapidcheck_catch"
"rapidcheck_doctest"
"rapidcheck_gtest"
];
platforms = platforms.all;
};
}
})