about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/dqlite
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/dqlite')
-rw-r--r--nixpkgs/pkgs/development/libraries/dqlite/default.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/dqlite/default.nix b/nixpkgs/pkgs/development/libraries/dqlite/default.nix
new file mode 100644
index 000000000000..cb7b7466d053
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/dqlite/default.nix
@@ -0,0 +1,43 @@
+{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, file, libuv
+, raft-canonical, sqlite, lxd }:
+
+stdenv.mkDerivation rec {
+  pname = "dqlite";
+  version = "1.14.0";
+
+  src = fetchFromGitHub {
+    owner = "canonical";
+    repo = pname;
+    rev = "refs/tags/v${version}";
+    hash = "sha256-x76f9Sw3BMgWSY7DLIqDjbggp/qVu8mJBtf4znTz9hA=";
+  };
+
+  nativeBuildInputs = [ autoreconfHook file pkg-config ];
+  buildInputs = [
+    libuv
+    raft-canonical.dev
+    sqlite
+  ];
+
+  enableParallelBuilding = true;
+
+  # tests fail
+  doCheck = false;
+
+  outputs = [ "dev" "out" ];
+
+  passthru.tests = {
+    inherit lxd;
+  };
+
+  meta = with lib; {
+    description = ''
+      Expose a SQLite database over the network and replicate it across a
+      cluster of peers
+    '';
+    homepage = "https://dqlite.io/";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ joko adamcstephens ];
+    platforms = platforms.linux;
+  };
+}