From 54cbe01782057817426df996f99c455281671a36 Mon Sep 17 00:00:00 2001 From: David Wood Date: Mon, 18 Nov 2019 23:01:12 +0000 Subject: [PATCH] doctest: init at 2.3.5 Signed-off-by: David Wood --- .../development/libraries/doctest/default.nix | 25 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/libraries/doctest/default.nix diff --git a/pkgs/development/libraries/doctest/default.nix b/pkgs/development/libraries/doctest/default.nix new file mode 100644 index 000000000000..e55313bc9fe4 --- /dev/null +++ b/pkgs/development/libraries/doctest/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchFromGitHub, installShellFiles, cmake }: + +stdenv.mkDerivation rec { + pname = "doctest"; + version = "2.3.5"; + + src = fetchFromGitHub { + owner = "onqtam"; + repo = "doctest"; + rev = version; + sha256 = "0rddlzhnv0f5036q0m0p019pismka7sx6x8cnzk65sk77b1dsbhg"; + }; + + nativeBuildInputs = [ cmake ]; + + enableParallelBuilding = true; + + meta = with stdenv.lib; { + homepage = "https://github.com/onqtam/doctest"; + description = "The fastest feature-rich C++11/14/17/20 single-header testing framework"; + platforms = platforms.linux; + license = licenses.mit; + maintainers = with maintainers; [ davidtwco ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4fba286384e3..beaffb2013e9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11230,6 +11230,8 @@ in dlib = callPackage ../development/libraries/dlib { }; + doctest = callPackage ../development/libraries/doctest { }; + docopt_cpp = callPackage ../development/libraries/docopt_cpp { }; dotconf = callPackage ../development/libraries/dotconf { };