mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +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.
56 lines
1.4 KiB
Nix
56 lines
1.4 KiB
Nix
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, file, libuv, lz4, lxd-lts }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "raft-canonical";
|
|
version = "0.18.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "canonical";
|
|
repo = "raft";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-ogTw0+ZFhMRaLAxAAXzHSlLRYFuX8W/zjqglXHfvUv4=";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook file pkg-config ];
|
|
buildInputs = [ libuv lz4 ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
patches = [
|
|
# network tests either hang indefinitely, or fail outright
|
|
./disable-net-tests.patch
|
|
|
|
# missing dir check is flaky
|
|
./disable-missing-dir-test.patch
|
|
];
|
|
|
|
preConfigure = ''
|
|
substituteInPlace configure --replace /usr/bin/ " "
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
outputs = [ "dev" "out" ];
|
|
|
|
passthru.tests = {
|
|
inherit lxd-lts;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = ''
|
|
Fully asynchronous C implementation of the Raft consensus protocol
|
|
'';
|
|
longDescription = ''
|
|
The library has modular design: its core part implements only the core
|
|
Raft algorithm logic, in a fully platform independent way. On top of
|
|
that, a pluggable interface defines the I/O implementation for networking
|
|
(send/receive RPC messages) and disk persistence (store log entries and
|
|
snapshots).
|
|
'';
|
|
homepage = "https://github.com/canonical/raft";
|
|
license = licenses.asl20;
|
|
platforms = platforms.linux;
|
|
maintainers = [ ];
|
|
};
|
|
}
|