2022-07-30 07:51:56 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
cmake,
|
|
|
|
folly,
|
|
|
|
gflags,
|
|
|
|
glog,
|
|
|
|
openssl,
|
|
|
|
double-conversion,
|
|
|
|
unstableGitUpdater,
|
|
|
|
}:
|
2022-03-29 12:06:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "wdt";
|
2024-11-28 00:57:57 +00:00
|
|
|
version = "1.27.1612021-unstable-2024-11-14";
|
2022-03-29 12:06:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "facebook";
|
|
|
|
repo = "wdt";
|
2024-11-28 00:57:57 +00:00
|
|
|
rev = "52acd2a7f4e822143662181d8cb2db98c0d72fa7";
|
|
|
|
sha256 = "sha256-jPXAmB4E3TWJ+Np4WAxqnJM7AES5gt84NBqZFO1gJwc=";
|
2022-03-29 12:06:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2024-11-13 13:45:03 +00:00
|
|
|
buildInputs = [
|
|
|
|
folly
|
|
|
|
gflags
|
|
|
|
glog
|
|
|
|
openssl
|
|
|
|
double-conversion
|
|
|
|
];
|
2022-03-29 12:06:52 +00:00
|
|
|
|
|
|
|
# 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 07:51:56 +00:00
|
|
|
passthru = {
|
2024-02-07 16:23:42 +00:00
|
|
|
updateScript = unstableGitUpdater {
|
|
|
|
tagPrefix = "v";
|
|
|
|
};
|
2022-07-30 07:51:56 +00:00
|
|
|
};
|
|
|
|
|
2022-03-29 12:06:52 +00: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" ];
|
|
|
|
};
|
|
|
|
}
|