acr-cli: init at 0.14 (#359508)
[NixPkgs.git] / pkgs / by-name / ra / rapidcheck / package.nix
blobce369eb6ff3fd44935187177f8afcfd0753bfc21
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , cmake
5 , unstableGitUpdater
6 , testers
7 }:
9 stdenv.mkDerivation (finalAttrs: {
10   pname = "rapidcheck";
11   version = "0-unstable-2023-12-14";
13   src = fetchFromGitHub {
14     owner = "emil-e";
15     repo  = "rapidcheck";
16     rev   = "ff6af6fc683159deb51c543b065eba14dfcf329b";
17     hash = "sha256-Ixz5RpY0n8Un/Pv4XoTfbs40+70iyMbkQUjDqoLaWOg=";
18   };
20   outputs = [ "out" "dev" ];
22   nativeBuildInputs = [ cmake ];
24   cmakeFlags = [
25     (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
26     (lib.cmakeBool "RC_INSTALL_ALL_EXTRAS" true)
27   ];
29   passthru = {
30     updateScript = unstableGitUpdater { };
31     tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
32   };
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   };