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

37 lines
809 B
Nix
Raw Normal View History

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