mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 09:13:17 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{ 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" ];
|
|
};
|
|
}
|