Files
nixpkgs/pkgs/by-name/ca/catch2/package.nix
2026-08-14 17:36:26 +02:00

37 lines
730 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "catch2";
version = "2.13.10";
src = fetchFromGitHub {
owner = "catchorg";
repo = "Catch2";
tag = "v${finalAttrs.version}";
hash = "sha256-XnT2ziES94Y4uzWmaxSw7nWegJFQjAqFUG8PkwK5nLU=";
};
nativeBuildInputs = [ cmake ];
strictDeps = true;
cmakeFlags = [ "-H.." ];
__structuredAttrs = true;
meta = {
description = "Multi-paradigm automated test framework for C++ and Objective-C (and, maybe, C)";
homepage = "http://catch-lib.net";
license = lib.licenses.boost;
maintainers = with lib.maintainers; [
edwtjo
];
platforms = with lib.platforms; unix ++ windows;
};
})