8 stdenv.mkDerivation rec {
12 src = fetchFromGitHub {
16 hash = "sha256-DqGGfNjKPW9HFJrX9arFHyNYjB61uoL6NabZatTWrr0=";
24 "-DCATCH_DEVELOPMENT_BUILD=ON"
25 "-DCATCH_BUILD_TESTING=${if doCheck then "ON" else "OFF"}"
26 ] ++ lib.optionals (stdenv.isDarwin && doCheck) [
27 # test has a faulty path normalization technique that won't work in
28 # our darwin build environment https://github.com/catchorg/Catch2/issues/1691
29 "-DCMAKE_CTEST_ARGUMENTS=-E;ApprovalTests"
39 description = "Modern, C++-native, test framework for unit-tests";
40 homepage = "https://github.com/catchorg/Catch2";
41 changelog = "https://github.com/catchorg/Catch2/blob/${src.rev}/docs/release-notes.md";
42 license = lib.licenses.boost;
43 maintainers = with lib.maintainers; [ dotlambda ];
44 platforms = lib.platforms.unix;