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