2015-05-25 09:38:42 +01:00
|
|
|
{ stdenv, lib, cmake, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "catch-${version}";
|
2017-02-02 20:23:16 +00:00
|
|
|
version = "1.7.0";
|
2015-05-25 09:38:42 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "philsquared";
|
|
|
|
repo = "Catch";
|
2017-02-02 20:23:16 +00:00
|
|
|
rev = "v." + version;
|
|
|
|
sha256 = "0harki6irc4mqipjc24zyy0jimidr5ng3ss29bnpzbbwhrnkyrgm";
|
2015-05-25 09:38:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cmake ];
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
|
|
|
buildPhase = ''
|
2017-02-02 20:23:16 +00:00
|
|
|
cmake . -BBuild -DCMAKE_BUILD_TYPE=Release -DUSE_CPP11=ON
|
2015-05-25 09:38:42 +01:00
|
|
|
cd Build
|
|
|
|
make
|
|
|
|
cd ..
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
mv include $out/.
|
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
maintainers = with maintainers; [ edwtjo ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = with platforms; unix;
|
2015-05-25 09:38:42 +01:00
|
|
|
};
|
|
|
|
}
|