2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, unstableGitUpdater
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "rapidcheck";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "unstable-2023-04-16";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "emil-e";
|
|
|
|
repo = "rapidcheck";
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "a5724ea5b0b00147109b0605c377f1e54c353ba2";
|
|
|
|
hash = "sha256-nq2VBDREkAOnvtdYr3m0TYNXx7mv9hbV5HZFVL2uTTg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2020-12-09 12:39:15 +00:00
|
|
|
# Install the extras headers
|
2020-04-24 23:36:52 +00:00
|
|
|
postInstall = ''
|
2020-12-09 12:39:15 +00:00
|
|
|
cp -r $src/extras $out
|
|
|
|
chmod -R +w $out/extras
|
|
|
|
rm $out/extras/CMakeLists.txt
|
|
|
|
rm $out/extras/**/CMakeLists.txt
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A C++ framework for property based testing inspired by QuickCheck";
|
|
|
|
inherit (src.meta) homepage;
|
2022-04-15 01:41:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|