2017-02-02 19:47:01 +00:00
|
|
|
{ stdenv, cmake, fetchFromGitHub }:
|
2015-05-25 08:38:42 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "catch-${version}";
|
2017-02-02 20:23:16 +00:00
|
|
|
version = "1.7.0";
|
2015-05-25 08:38:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "philsquared";
|
|
|
|
repo = "Catch";
|
2017-02-02 20:23:16 +00:00
|
|
|
rev = "v." + version;
|
|
|
|
sha256 = "0harki6irc4mqipjc24zyy0jimidr5ng3ss29bnpzbbwhrnkyrgm";
|
2015-05-25 08:38:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ 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)";
|
|
|
|
homepage = "http://catch-lib.net";
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|