2015-05-25 09:38:42 +01:00
|
|
|
{ stdenv, lib, cmake, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "catch-${version}";
|
2015-08-26 11:59:57 +01:00
|
|
|
version = "1.2.1";
|
2015-05-25 09:38:42 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "philsquared";
|
|
|
|
repo = "Catch";
|
2015-08-26 11:59:57 +01:00
|
|
|
rev = "v" + version;
|
|
|
|
sha256 = "0rz2nmvvh66x6w2nb7l08vc5x9aqg1qfz2qfiykaz1ybc19fwck2";
|
2015-05-25 09:38:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cmake ];
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
cmake -Hprojects/CMake -BBuild -DCMAKE_BUILD_TYPE=Release
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|