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

28 lines
690 B
Nix
Raw Normal View History

2017-06-30 19:19:09 +03:00
{ stdenv, fetchFromGitHub, cmake }:
2015-05-25 11:38:42 +03:00
stdenv.mkDerivation rec {
pname = "catch";
2018-11-11 19:28:04 +03:00
version = "1.12.2";
2015-05-25 11:38:42 +03:00
src = fetchFromGitHub {
2017-11-18 01:10:19 +03:00
owner = "catchorg";
2015-05-25 11:38:42 +03:00
repo = "Catch";
2017-06-17 18:21:50 +03:00
rev = "v${version}";
2018-11-11 19:28:04 +03:00
sha256 = "1gdp5wm8khn02g2miz381llw3191k7309qj8s3jd6sasj01rhf23";
2015-05-25 11:38:42 +03:00
};
2017-06-17 18:21:50 +03:00
nativeBuildInputs = [ cmake ];
2017-02-02 22:47:01 +03:00
cmakeFlags = [ "-DUSE_CPP14=ON" ];
2015-05-25 11:38:42 +03:00
2017-02-02 22:47:01 +03:00
doCheck = true;
checkTarget = "test";
2015-05-25 11:38:42 +03: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;
2015-05-25 11:38:42 +03:00
license = licenses.boost;
2017-02-02 22:47:01 +03:00
maintainers = with maintainers; [ edwtjo knedlsepp ];
platforms = with platforms; unix;
2015-05-25 11:38:42 +03:00
};
}