catch2_3: init at 3.0.1
Version 3 is not backwards compatible with version 2: https://github.com/catchorg/Catch2/blob/v3.0.1/docs/migrate-v2-to-v3.md
This commit is contained in:
parent
1acbd5cc84
commit
01fb64af34
42
pkgs/development/libraries/catch2/3.nix
Normal file
42
pkgs/development/libraries/catch2/3.nix
Normal file
@ -0,0 +1,42 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, python3
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "catch2";
|
||||
version = "3.0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "catchorg";
|
||||
repo = "Catch2";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-GcMkAgSfQnWs8wQeQD4ZMxJZED8V7FWBU04qMCutlPo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DCATCH_DEVELOPMENT_BUILD=ON"
|
||||
"-DCATCH_BUILD_TESTING=${if doCheck then "ON" else "OFF"}"
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
checkInputs = [
|
||||
python3
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Modern, C++-native, test framework for unit-tests";
|
||||
homepage = "https://github.com/catchorg/Catch2";
|
||||
changelog = "https://github.com/catchorg/Catch2/blob/${src.rev}/docs/release-notes.md";
|
||||
license = lib.licenses.boost;
|
||||
maintainers = with lib.maintainers; [ dotlambda ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
@ -2959,6 +2959,8 @@ with pkgs;
|
||||
|
||||
catch2 = callPackage ../development/libraries/catch2 { };
|
||||
|
||||
catch2_3 = callPackage ../development/libraries/catch2/3.nix { };
|
||||
|
||||
catdoc = callPackage ../tools/text/catdoc { };
|
||||
|
||||
catdocx = callPackage ../tools/text/catdocx { };
|
||||
|
Loading…
Reference in New Issue
Block a user