summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authormatthewcroughan <matt@croughan.sh>2023-11-07 01:16:28 +0000
committermatthewcroughan <matt@croughan.sh>2023-11-20 21:54:58 +0000
commit2249f4de3466c9151cd3a33b024128e365925d14 (patch)
treec86e565865522540b5d0252f29574b63ecc2a74f /pkgs
parent83d2098e69207a14cd5601c7ef812003c5feb32e (diff)
ut: init at 2.0.0
Co-authored-by: Mikael Fangel <34864484+MikaelFangel@users.noreply.github.com>
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/by-name/ut/ut/package.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/by-name/ut/ut/package.nix b/pkgs/by-name/ut/ut/package.nix
new file mode 100644
index 0000000000000..2ed2bdde444fb
--- /dev/null
+++ b/pkgs/by-name/ut/ut/package.nix
@@ -0,0 +1,35 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, cmake
+, ninja
+}:
+stdenv.mkDerivation (finalAttrs: {
+  pname = "ut";
+  version = "2.0.0";
+
+  cmakeFlags = [
+    "-DBOOST_UT_ALLOW_CPM_USE=OFF"
+  ];
+
+  src = fetchFromGitHub {
+    owner = "boost-ext";
+    repo = "ut";
+    rev = "v${finalAttrs.version}";
+    hash = "sha256-nMRhVtbnORMnZxIdrv6pvfj8/fv/buh4Y7mz0cr4p+E=";
+  };
+
+  nativeBuildInputs = [
+    cmake
+    ninja
+  ];
+
+  meta = with lib; {
+    description = "UT: C++20 μ(micro)/Unit Testing Framework";
+    homepage = "https://github.com/boost-ext/ut";
+    license = licenses.boost;
+    maintainers = with maintainers; [ matthewcroughan ];
+    platforms = platforms.all;
+  };
+})
+