2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, cmake, fetchFromGitHub }:
|
2018-10-08 16:06:31 +02:00
|
|
|
|
2020-06-07 23:11:08 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "rapidcheck";
|
2020-12-21 17:20:35 +01:00
|
|
|
version = "unstable-2020-12-19";
|
2018-10-08 16:06:31 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "emil-e";
|
|
|
|
repo = "rapidcheck";
|
2020-12-21 17:20:35 +01:00
|
|
|
rev = "b78f89288c7e086d06e2a1e10b605d8375517a8a";
|
|
|
|
sha256 = "0fj11gbhkaxbsgix2im7vdfvr26l75b8djk462sfw8xrwrfkjbdz";
|
2018-10-08 16:06:31 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2020-12-09 05:51:33 +01:00
|
|
|
# Install the extras headers
|
2018-10-08 16:06:31 +02:00
|
|
|
postInstall = ''
|
2020-12-09 05:51:33 +01:00
|
|
|
cp -r $src/extras $out
|
|
|
|
chmod -R +w $out/extras
|
|
|
|
rm $out/extras/CMakeLists.txt
|
|
|
|
rm $out/extras/**/CMakeLists.txt
|
2018-10-08 16:06:31 +02:00
|
|
|
'';
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2018-10-08 16:06:31 +02:00
|
|
|
description = "A C++ framework for property based testing inspired by QuickCheck";
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
maintainers = with maintainers; [ jb55 ];
|
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|