From a7447f9e338fbaa12aeda5849041a39e04dd4b11 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Thu, 14 Dec 2023 16:33:41 -0500 Subject: [PATCH] rapidcheck: Add `meta.pkgConfigModules` and test The last update added pkg-config support. Co-authored-by: Robert Hensing --- .../libraries/rapidcheck/default.nix | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/rapidcheck/default.nix b/pkgs/development/libraries/rapidcheck/default.nix index 77799cc598b2b..68f2e5e096a8b 100644 --- a/pkgs/development/libraries/rapidcheck/default.nix +++ b/pkgs/development/libraries/rapidcheck/default.nix @@ -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 { (lib.cmakeBool "RC_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; }; -} +})