12 stdenv.mkDerivation rec {
13 pname = "raft-cowsql";
16 src = fetchFromGitHub {
19 rev = "refs/tags/v${version}";
20 hash = "sha256-CMcKXX2u+qiroleg5GIovTOVAg9ycXBsRDqfsOCL3yo=";
23 nativeBuildInputs = [ autoreconfHook pkg-config ];
24 buildInputs = [ libuv lz4 ];
26 enableParallelBuilding = true;
29 # network tests either hang indefinitely, or fail outright
30 ./disable-net-tests.patch
32 # missing dir check is flaky
33 ./disable-missing-dir-test.patch
37 substituteInPlace configure --replace /usr/bin/ " "
42 outputs = [ "dev" "out" ];
45 inherit (incus) tests;
47 updateScript = gitUpdater {
53 description = "Asynchronous C implementation of the Raft consensus protocol";
54 homepage = "https://github.com/cowsql/raft";
55 license = licenses.lgpl3Only;
56 platforms = platforms.linux;
57 maintainers = with maintainers; [ adamcstephens ];