2022-07-30 09:51:56 +02:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, folly
|
|
|
|
, boost
|
|
|
|
, gflags
|
|
|
|
, glog
|
|
|
|
, openssl
|
|
|
|
, double-conversion
|
|
|
|
, fmt
|
|
|
|
, unstableGitUpdater
|
|
|
|
}:
|
2022-03-29 14:06:52 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "wdt";
|
2022-07-30 09:51:56 +02:00
|
|
|
version = "unstable-2022-07-08";
|
2022-03-29 14:06:52 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "facebook";
|
|
|
|
repo = "wdt";
|
2022-07-30 09:51:56 +02:00
|
|
|
rev = "8f01b7558a80e5f08b06244d2821c3eb5c1d6e9b";
|
|
|
|
sha256 = "sha256-ozii7EA3j3F/o+lE2mPsUY5lrm3OOtK75gjGkrvoaQ0=";
|
2022-03-29 14:06:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
2022-07-30 09:51:56 +02:00
|
|
|
passthru = {
|
|
|
|
updateScript = unstableGitUpdater { };
|
|
|
|
};
|
|
|
|
|
2022-03-29 14:06:52 +02:00
|
|
|
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" ];
|
|
|
|
};
|
|
|
|
}
|