diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/networking/sync/wdt')
-rw-r--r-- | nixpkgs/pkgs/applications/networking/sync/wdt/default.nix | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/networking/sync/wdt/default.nix b/nixpkgs/pkgs/applications/networking/sync/wdt/default.nix new file mode 100644 index 000000000000..6c6dddee1735 --- /dev/null +++ b/nixpkgs/pkgs/applications/networking/sync/wdt/default.nix @@ -0,0 +1,50 @@ +{ stdenv +, lib +, fetchFromGitHub +, cmake +, folly +, boost +, gflags +, glog +, openssl +, double-conversion +, fmt +, unstableGitUpdater +}: + +stdenv.mkDerivation { + pname = "wdt"; + version = "unstable-2022-12-19"; + + src = fetchFromGitHub { + owner = "facebook"; + repo = "wdt"; + rev = "6a122f24deb4f2ff6c6f97b6a803301a7f7b666c"; + sha256 = "sha256-fH4Inqy7DfMJbW1FYWanScLATu8cZA1n+Vas8ee3xwA="; + }; + + 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" + ]; + + passthru = { + updateScript = unstableGitUpdater { }; + }; + + 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" ]; + }; +} |