about summary refs log tree commit diff
path: root/pkgs/applications/networking/sync/wdt/default.nix
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2022-03-29 20:06:52 +0800
committerNick Cao <nickcao@nichi.co>2022-03-29 21:06:21 +0800
commit7150ca1c28ffe1861371a4df2ee454e0de377745 (patch)
treee59e51009193a3be4de32a7cc48e247be966e3a7 /pkgs/applications/networking/sync/wdt/default.nix
parent3491c5ea290bca5437845b6348919fcb23950af9 (diff)
wdt: init at unstable-2022-03-24
Diffstat (limited to 'pkgs/applications/networking/sync/wdt/default.nix')
-rw-r--r--pkgs/applications/networking/sync/wdt/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/applications/networking/sync/wdt/default.nix b/pkgs/applications/networking/sync/wdt/default.nix
new file mode 100644
index 0000000000000..53a112790baec
--- /dev/null
+++ b/pkgs/applications/networking/sync/wdt/default.nix
@@ -0,0 +1,34 @@
+{ stdenv, lib, fetchFromGitHub, cmake, folly, boost, gflags, glog, openssl, double-conversion, fmt }:
+
+stdenv.mkDerivation {
+  pname = "wdt";
+  version = "unstable-2022-03-24";
+
+  src = fetchFromGitHub {
+    owner = "facebook";
+    repo = "wdt";
+    rev = "43319e59d0c77092468367cdadab37d12d7a2383";
+    sha256 = "sha256-MajYK2eTUbWhEql0iTlgW5yLg9xAGZQk+Dx4fNxFFqw=";
+  };
+
+  nativeBuildInputs = [ cmake ];
+  buildInputs = [ folly boost gflags glog openssl double-conversion fmt ];
+
+  # source is expected to be named wdt
+  # https://github.com/facebook/wdt/blob/43319e59d0c77092468367cdadab37d12d7a2383/CMakeLists.txt#L238
+  postUnpack = ''
+    ln -s $sourceRoot wdt
+  '';
+
+  cmakeFlags = [
+    "-DWDT_USE_SYSTEM_FOLLY=ON"
+  ];
+
+  meta = with lib; {
+    description = "Warp speed Data Transfer";
+    homepage = "https://github.com/facebook/wdt";
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ nickcao ];
+    platforms = [ "x86_64-linux" ];
+  };
+}