2017-06-30 16:19:09 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake }:
|
2015-05-25 08:38:42 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "catch-${version}";
|
2017-06-30 16:19:09 +00:00
|
|
|
version = "1.9.6";
|
2015-05-25 08:38:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "philsquared";
|
|
|
|
repo = "Catch";
|
2017-06-17 15:21:50 +00:00
|
|
|
rev = "v${version}";
|
2017-06-30 16:19:09 +00:00
|
|
|
sha256 = "0nqnyw6haa2771748ycag4hhjb8ni32cv4f7w3h0pji212542xan";
|
2015-05-25 08:38:42 +00:00
|
|
|
};
|
|
|
|
|
2017-06-17 15:21:50 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2017-02-02 19:47:01 +00:00
|
|
|
cmakeFlags = [ "-DUSE_CPP14=ON" ];
|
2015-05-25 08:38:42 +00:00
|
|
|
|
2017-02-02 19:47:01 +00:00
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
2015-05-25 08:38:42 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A multi-paradigm automated test framework for C++ and Objective-C (and, maybe, C)";
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = http://catch-lib.net;
|
2015-05-25 08:38:42 +00:00
|
|
|
license = licenses.boost;
|
2017-02-02 19:47:01 +00:00
|
|
|
maintainers = with maintainers; [ edwtjo knedlsepp ];
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = with platforms; unix;
|
2015-05-25 08:38:42 +00:00
|
|
|
};
|
|
|
|
}
|