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

37 lines
794 B
Nix
Raw Normal View History

2015-05-25 08:38:42 +00:00
{ stdenv, lib, cmake, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "catch-${version}";
2015-08-26 10:59:57 +00:00
version = "1.2.1";
2015-05-25 08:38:42 +00:00
src = fetchFromGitHub {
owner = "philsquared";
repo = "Catch";
2015-08-26 10:59:57 +00:00
rev = "v" + version;
sha256 = "0rz2nmvvh66x6w2nb7l08vc5x9aqg1qfz2qfiykaz1ybc19fwck2";
2015-05-25 08:38:42 +00: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 ];
};
}