nixpkgs/pkgs/development/libraries/catch/default.nix

37 lines
809 B
Nix
Raw Normal View History

2015-05-25 11:38:42 +03:00
{ stdenv, lib, cmake, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "catch-${version}";
2016-04-27 16:37:15 +03:00
version = "1.5.0";
2015-05-25 11:38:42 +03:00
src = fetchFromGitHub {
owner = "philsquared";
repo = "Catch";
2015-08-26 13:59:57 +03:00
rev = "v" + version;
2016-04-27 16:37:15 +03:00
sha256 = "1ag8siafg7fmb50qdqznryrg3lvv56f09nvqwqqn2rlk83zjnaw0";
2015-05-25 11:38:42 +03:00
};
buildInputs = [ cmake ];
dontUseCmakeConfigure = true;
buildPhase = ''
2016-04-27 16:37:15 +03:00
cmake -Hprojects/CMake -BBuild -DCMAKE_BUILD_TYPE=Release -DUSE_CPP11=ON
2015-05-25 11:38:42 +03: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 ];
};
}