1{ lib, stdenv, fetchFromGitHub, cmake }:
2
3stdenv.mkDerivation rec {
4 pname = "catch2";
5 version = "2.13.10";
6
7 src = fetchFromGitHub {
8 owner = "catchorg";
9 repo = "Catch2";
10 rev = "v${version}";
11 sha256="sha256-XnT2ziES94Y4uzWmaxSw7nWegJFQjAqFUG8PkwK5nLU=";
12 };
13
14 nativeBuildInputs = [ cmake ];
15
16 cmakeFlags = [ "-H.." ];
17
18 meta = with lib; {
19 description = "A multi-paradigm automated test framework for C++ and Objective-C (and, maybe, C)";
20 homepage = "http://catch-lib.net";
21 license = licenses.boost;
22 maintainers = with maintainers; [ edwtjo knedlsepp ];
23 platforms = platforms.unix ++ [ "x86_64-windows" ];
24 };
25}