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

29 lines
700 B
Nix
Raw Normal View History

2017-02-02 19:47:01 +00:00
{ stdenv, cmake, fetchFromGitHub }:
2015-05-25 09:38:42 +01:00
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 ];
2017-02-02 19:47:01 +00:00
cmakeFlags = [ "-DUSE_CPP14=ON" ];
2015-05-25 09:38:42 +01:00
2017-02-02 19:47:01 +00:00
doCheck = true;
checkTarget = "test";
2015-05-25 09:38:42 +01:00
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;
2017-02-02 19:47:01 +00:00
maintainers = with maintainers; [ edwtjo knedlsepp ];
platforms = with platforms; unix;
2015-05-25 09:38:42 +01:00
};
}