blob: f07734928bf97e7aa87512e02e0e296e667140a5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{ stdenv
, lib
, fetchFromGitHub
, cmake
, folly
, boost
, gflags
, glog
, openssl
, double-conversion
, fmt
, unstableGitUpdater
}:
stdenv.mkDerivation {
pname = "wdt";
version = "1.27.1612021-unstable-2024-08-22";
src = fetchFromGitHub {
owner = "facebook";
repo = "wdt";
rev = "4cc8a21cfa29e55aa803365ab69248d0bf8fbb82";
sha256 = "sha256-BEoZ662KsL6gf6hfN9ahgoPtHOFBi9k3gjRuGWs3zOw=";
};
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 {
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" ];
};
}
|