1 { lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, file, libuv, lz4 }:
3 stdenv.mkDerivation rec {
4 pname = "raft-canonical";
7 src = fetchFromGitHub {
11 sha256 = "050dwy34jh8dihfwfm0r1by2i3sy9crapipp9idw32idm79y4izb";
14 nativeBuildInputs = [ autoreconfHook file pkg-config ];
15 buildInputs = [ libuv lz4 ];
17 enableParallelBuilding = true;
19 # Ignore broken test, likely not causing huge breakage
20 # (https://github.com/canonical/raft/issues/292)
22 substituteInPlace test/integration/test_uv_tcp_connect.c --replace \
23 "TEST(tcp_connect, closeDuringHandshake, setUp, tearDownDeps, 0, NULL)" \
24 "TEST(tcp_connect, closeDuringHandshake, setUp, tearDownDeps, MUNIT_TEST_OPTION_TODO, NULL)"
28 substituteInPlace configure --replace /usr/bin/ " "
33 outputs = [ "dev" "out" ];
37 Fully asynchronous C implementation of the Raft consensus protocol
40 The library has modular design: its core part implements only the core
41 Raft algorithm logic, in a fully platform independent way. On top of
42 that, a pluggable interface defines the I/O implementation for networking
43 (send/receive RPC messages) and disk persistence (store log entries and
46 homepage = "https://github.com/canonical/raft";
47 license = licenses.asl20;
48 platforms = platforms.linux;
49 maintainers = with maintainers; [ wucke13 ];