2021-05-28 09:39:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, file, libuv
|
|
|
|
, raft-canonical, sqlite-replication }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dqlite";
|
2021-07-16 19:40:57 +00:00
|
|
|
version = "1.8.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "canonical";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-07-16 19:40:57 +00:00
|
|
|
sha256 = "0ghvwlgj5574kpgc53bfhqp4437xxvr05061wwxplpjxn37hy26d";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook file pkg-config ];
|
2020-05-03 17:38:23 +00:00
|
|
|
buildInputs = [
|
|
|
|
libuv
|
|
|
|
raft-canonical.dev
|
|
|
|
sqlite-replication
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
# tests fail
|
2020-05-03 17:38:23 +00:00
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
outputs = [ "dev" "out" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = ''
|
|
|
|
Expose a SQLite database over the network and replicate it across a
|
|
|
|
cluster of peers
|
|
|
|
'';
|
2020-08-20 17:08:02 +00:00
|
|
|
homepage = "https://dqlite.io/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ joko wucke13 ];
|
2020-05-03 17:38:23 +00:00
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|