2021-05-28 09:39:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, file, libuv
|
2024-04-21 15:54:59 +00:00
|
|
|
, raft-canonical, sqlite, lxd-lts }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dqlite";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "1.16.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "canonical";
|
|
|
|
repo = pname;
|
2023-02-02 18:25:31 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-Q90wVqb6321+SWW5j52fb6mVRf25nExqgN/+s6OwoMk=";
|
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
|
2022-12-28 21:21:41 +00:00
|
|
|
sqlite
|
2020-05-03 17:38:23 +00:00
|
|
|
];
|
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" ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
passthru.tests = {
|
2024-04-21 15:54:59 +00:00
|
|
|
inherit lxd-lts;
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
|
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;
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = teams.lxc.members;
|
2020-05-03 17:38:23 +00:00
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|