about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/unittest-cpp
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/unittest-cpp')
-rw-r--r--nixpkgs/pkgs/development/libraries/unittest-cpp/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/unittest-cpp/default.nix b/nixpkgs/pkgs/development/libraries/unittest-cpp/default.nix
new file mode 100644
index 000000000000..d185d32c816f
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/unittest-cpp/default.nix
@@ -0,0 +1,27 @@
+{lib, stdenv, fetchFromGitHub, cmake}:
+
+with lib;
+
+stdenv.mkDerivation rec {
+  pname = "unittest-cpp";
+  version = "2.0.0";
+
+  src = fetchFromGitHub {
+    owner = "unittest-cpp";
+    repo = "unittest-cpp";
+    rev = "v${version}";
+    sha256 = "0sxb3835nly1jxn071f59fwbdzmqi74j040r81fanxyw3s1azw0i";
+  };
+
+  nativeBuildInputs = [ cmake ];
+
+  doCheck = false;
+
+  meta = {
+    homepage = "https://github.com/unittest-cpp/unittest-cpp";
+    description = "Lightweight unit testing framework for C++";
+    license = licenses.mit;
+    maintainers = [];
+    platforms = lib.platforms.unix;
+  };
+}