1{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, file, libuv
2, raft-canonical, sqlite, lxd }:
3
4stdenv.mkDerivation rec {
5 pname = "dqlite";
6 version = "1.14.0";
7
8 src = fetchFromGitHub {
9 owner = "canonical";
10 repo = pname;
11 rev = "refs/tags/v${version}";
12 hash = "sha256-x76f9Sw3BMgWSY7DLIqDjbggp/qVu8mJBtf4znTz9hA=";
13 };
14
15 nativeBuildInputs = [ autoreconfHook file pkg-config ];
16 buildInputs = [
17 libuv
18 raft-canonical.dev
19 sqlite
20 ];
21
22 enableParallelBuilding = true;
23
24 # tests fail
25 doCheck = false;
26
27 outputs = [ "dev" "out" ];
28
29 passthru.tests = {
30 inherit lxd;
31 };
32
33 meta = with lib; {
34 description = ''
35 Expose a SQLite database over the network and replicate it across a
36 cluster of peers
37 '';
38 homepage = "https://dqlite.io/";
39 license = licenses.asl20;
40 maintainers = with maintainers; [ joko adamcstephens ];
41 platforms = platforms.linux;
42 };
43}