1{ lib
2, stdenv
3, fetchFromGitHub
4, cmake
5, unstableGitUpdater
6, testers
7}:
8
9stdenv.mkDerivation (finalAttrs: {
10 pname = "rapidcheck";
11 version = "0-unstable-2023-12-14";
12
13 src = fetchFromGitHub {
14 owner = "emil-e";
15 repo = "rapidcheck";
16 rev = "ff6af6fc683159deb51c543b065eba14dfcf329b";
17 hash = "sha256-Ixz5RpY0n8Un/Pv4XoTfbs40+70iyMbkQUjDqoLaWOg=";
18 };
19
20 outputs = [ "out" "dev" ];
21
22 nativeBuildInputs = [ cmake ];
23
24 cmakeFlags = [
25 (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
26 (lib.cmakeBool "RC_INSTALL_ALL_EXTRAS" true)
27 ];
28
29 passthru = {
30 updateScript = unstableGitUpdater { };
31 tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
32 };
33
34 meta = with lib; {
35 description = "C++ framework for property based testing inspired by QuickCheck";
36 inherit (finalAttrs.src.meta) homepage;
37 maintainers = [ ];
38 license = licenses.bsd2;
39 pkgConfigModules = [
40 "rapidcheck"
41 # Extras
42 "rapidcheck_boost"
43 "rapidcheck_boost_test"
44 "rapidcheck_catch"
45 "rapidcheck_doctest"
46 "rapidcheck_gtest"
47 ];
48 platforms = platforms.all;
49 };
50})