94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
38 lines
871 B
Nix
38 lines
871 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, unstableGitUpdater
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rapidcheck";
|
|
version = "unstable-2023-04-16";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "emil-e";
|
|
repo = "rapidcheck";
|
|
rev = "a5724ea5b0b00147109b0605c377f1e54c353ba2";
|
|
hash = "sha256-nq2VBDREkAOnvtdYr3m0TYNXx7mv9hbV5HZFVL2uTTg=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
# Install the extras headers
|
|
postInstall = ''
|
|
cp -r $src/extras $out
|
|
chmod -R +w $out/extras
|
|
rm $out/extras/CMakeLists.txt
|
|
rm $out/extras/**/CMakeLists.txt
|
|
'';
|
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
meta = with lib; {
|
|
description = "A C++ framework for property based testing inspired by QuickCheck";
|
|
inherit (src.meta) homepage;
|
|
maintainers = with maintainers; [ ];
|
|
license = licenses.bsd2;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|