From 7759fe1f2253349dc0ef4185287673672ca4c84e Mon Sep 17 00:00:00 2001 From: Jason Hilton Date: Fri, 9 Nov 2018 18:26:34 -0800 Subject: [PATCH] catch2: init at 2.4.2 --- pkgs/development/libraries/catch2/default.nix | 27 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/development/libraries/catch2/default.nix diff --git a/pkgs/development/libraries/catch2/default.nix b/pkgs/development/libraries/catch2/default.nix new file mode 100644 index 000000000000..073736ce66d9 --- /dev/null +++ b/pkgs/development/libraries/catch2/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchFromGitHub, cmake, python }: + +stdenv.mkDerivation rec { + name = "catch2-${version}"; + version = "2.4.2"; + + src = fetchFromGitHub { + owner = "catchorg"; + repo = "Catch2"; + rev = "v${version}"; + sha256="1105bxbvh1xxl4yxjjp6l6w6hgsh8xbdiwlnga9di5y2x92b9bjd"; + }; + + nativeBuildInputs = [ cmake ]; + + cmakeFlags = [ + "-H.." + "-DBUILD_TESTING=OFF"]; + + meta = with stdenv.lib; { + description = "A multi-paradigm automated test framework for C++ and Objective-C (and, maybe, C)"; + homepage = http://catch-lib.net; + license = licenses.boost; + maintainers = with maintainers; [ edwtjo knedlsepp ]; + platforms = with platforms; unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 018bba2aff81..bfddbd965d13 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1108,6 +1108,8 @@ with pkgs; catch = callPackage ../development/libraries/catch { }; + catch2 = callPackage ../development/libraries/catch2 { }; + catdoc = callPackage ../tools/text/catdoc { }; catdocx = callPackage ../tools/text/catdocx { };