1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 02:46:28 +00:00
nixpkgs/pkgs/development/libraries/catch/default.nix

38 lines
833 B
Nix
Raw Normal View History

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 ];
platforms = with platforms; unix;
2015-05-25 09:38:42 +01:00
};
}