From de2f79467d20bd524c915c171cf3c5d381056851 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 8 Oct 2018 07:06:31 -0700 Subject: [PATCH] rapidcheck: init at unstable-2018-09-27 rapidcheck is a C++ property-based testing framework inspired by QuickCheck Signed-off-by: William Casarin --- .../libraries/rapidcheck/default.nix | 27 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/development/libraries/rapidcheck/default.nix diff --git a/pkgs/development/libraries/rapidcheck/default.nix b/pkgs/development/libraries/rapidcheck/default.nix new file mode 100644 index 000000000000..9d8ce8cef202 --- /dev/null +++ b/pkgs/development/libraries/rapidcheck/default.nix @@ -0,0 +1,27 @@ +{ stdenv, cmake, fetchFromGitHub }: + +stdenv.mkDerivation rec{ + name = "rapidcheck-${version}"; + version = "unstable-2018-09-27"; + + src = fetchFromGitHub { + owner = "emil-e"; + repo = "rapidcheck"; + rev = "de54478fa35c0d9cea14ec0c5c9dfae906da524c"; + sha256 = "0n8l0mlq9xqmpkgcj5xicicd1my2cfwxg25zdy8347dqkl1ppgbs"; + }; + + nativeBuildInputs = [ cmake ]; + + postInstall = '' + cp ../extras/boost_test/include/rapidcheck/boost_test.h $out/include/rapidcheck + ''; + + meta = with stdenv.lib; { + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2548afe22f58..b0e88d39a3a5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11958,6 +11958,8 @@ with pkgs; rabbitmq-java-client = callPackage ../development/libraries/rabbitmq-java-client {}; + rapidcheck = callPackage ../development/libraries/rapidcheck {}; + rapidjson = callPackage ../development/libraries/rapidjson {}; raul = callPackage ../development/libraries/audio/raul { };