{ stdenv, lib, fetchFromGitHub, cmake, folly, gflags, glog, openssl, double-conversion, unstableGitUpdater, }: stdenv.mkDerivation { pname = "wdt"; version = "1.27.1612021-unstable-2025-07-09"; src = fetchFromGitHub { owner = "facebook"; repo = "wdt"; rev = "e4d03e392e90b8ff4d2a67da31d65405afd32db5"; sha256 = "sha256-epjZFTczJLmI5MgKLMVXhEhv9MYJCYWYOAkZcvqeBs0="; }; nativeBuildInputs = [ cmake ]; buildInputs = [ folly gflags glog openssl double-conversion ]; # source is expected to be named wdt # https://github.com/facebook/wdt/blob/43319e59d0c77092468367cdadab37d12d7a2383/CMakeLists.txt#L238 postUnpack = '' ln -s $sourceRoot wdt ''; patches = [ ./fix-glog-include.patch ]; cmakeFlags = [ "-DWDT_USE_SYSTEM_FOLLY=ON" ]; passthru = { updateScript = unstableGitUpdater { tagPrefix = "v"; }; }; 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" ]; }; }