about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/dqlite/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/dqlite/default.nix')
-rw-r--r--nixpkgs/pkgs/development/libraries/dqlite/default.nix38
1 files changed, 38 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..8f67259989b8
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/dqlite/default.nix
@@ -0,0 +1,38 @@
+{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, file, libco-canonical
+, libuv, raft-canonical, sqlite-replication }:
+
+stdenv.mkDerivation rec {
+  pname = "dqlite";
+  version = "1.5.0";
+
+  src = fetchFromGitHub {
+    owner = "canonical";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "0h7ypigj1b6xbspzc35y89jkp84v8rqiv9qgkyqlqylr7mcw952a";
+  };
+
+  nativeBuildInputs = [ autoreconfHook file pkg-config ];
+  buildInputs = [
+    libco-canonical.dev
+    libuv
+    raft-canonical.dev
+    sqlite-replication
+  ];
+
+  # tests fail
+  doCheck = false;
+
+  outputs = [ "dev" "out" ];
+
+  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 wucke13 ];
+    platforms = platforms.linux;
+  };
+}