2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, unstableGitUpdater
|
2024-01-02 11:29:13 +00:00
|
|
|
, testers
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "rapidcheck";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0-unstable-2023-12-14";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "emil-e";
|
|
|
|
repo = "rapidcheck";
|
2024-01-02 11:29:13 +00:00
|
|
|
rev = "ff6af6fc683159deb51c543b065eba14dfcf329b";
|
|
|
|
hash = "sha256-Ixz5RpY0n8Un/Pv4XoTfbs40+70iyMbkQUjDqoLaWOg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
(lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
|
|
|
|
(lib.cmakeBool "RC_INSTALL_ALL_EXTRAS" true)
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = unstableGitUpdater { };
|
|
|
|
tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
|
|
|
};
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "C++ framework for property based testing inspired by QuickCheck";
|
2024-01-02 11:29:13 +00:00
|
|
|
inherit (finalAttrs.src.meta) homepage;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd2;
|
2024-01-02 11:29:13 +00:00
|
|
|
pkgConfigModules = [
|
|
|
|
"rapidcheck"
|
|
|
|
# Extras
|
|
|
|
"rapidcheck_boost"
|
|
|
|
"rapidcheck_boost_test"
|
|
|
|
"rapidcheck_catch"
|
|
|
|
"rapidcheck_doctest"
|
|
|
|
"rapidcheck_gtest"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
2024-01-02 11:29:13 +00:00
|
|
|
})
|