mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-17 02:14:08 +00:00
58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
folly,
|
|
gflags,
|
|
glog,
|
|
openssl,
|
|
double-conversion,
|
|
unstableGitUpdater,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "wdt";
|
|
version = "1.27.1612021-unstable-2024-12-06";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "facebook";
|
|
repo = "wdt";
|
|
rev = "7e56c871be706cc96df48be7c4017bff7c6fc7c8";
|
|
sha256 = "sha256-mvfJUiOI7Cre90hIaBJcmfTbTV5M+Hf+p6VKNYEc5WU=";
|
|
};
|
|
|
|
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
|
|
'';
|
|
|
|
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" ];
|
|
};
|
|
}
|