2021-05-28 09:39:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, file, libuv
|
2023-02-02 18:25:31 +00:00
|
|
|
, raft-canonical, sqlite, lxd }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dqlite";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.16.0";
|
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}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-8MPAyCqqjDpDHSyiZ1cvvgflaOLNzPGswZSsSjSffvw=";
|
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 = {
|
|
|
|
inherit lxd;
|
|
|
|
};
|
|
|
|
|
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;
|
2023-02-02 18:25:31 +00:00
|
|
|
maintainers = with maintainers; [ joko adamcstephens ];
|
2020-05-03 17:38:23 +00:00
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|