2021-05-15 17:12:52 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, file, libuv
|
2023-01-29 17:10:00 +00:00
|
|
|
, raft-canonical, sqlite, lxd }:
|
2018-10-21 09:04:34 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-12 15:33:31 +00:00
|
|
|
pname = "dqlite";
|
2023-06-24 10:13:22 +00:00
|
|
|
version = "1.15.1";
|
2018-10-21 09:04:34 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-10-01 20:50:07 +00:00
|
|
|
owner = "canonical";
|
2019-03-12 15:33:31 +00:00
|
|
|
repo = pname;
|
2023-01-20 18:16:29 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-06-24 10:13:22 +00:00
|
|
|
hash = "sha256-GmteQy+nYQFspLvdw44TjuQQeTRQ24OtDeAA+TQJKiU=";
|
2018-10-21 09:04:34 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook file pkg-config ];
|
2020-04-27 07:14:48 +00:00
|
|
|
buildInputs = [
|
|
|
|
libuv
|
|
|
|
raft-canonical.dev
|
2022-12-23 18:31:49 +00:00
|
|
|
sqlite
|
2020-04-27 07:14:48 +00:00
|
|
|
];
|
|
|
|
|
2021-05-15 17:12:52 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-06-14 11:04:53 +00:00
|
|
|
# tests fail
|
2020-04-27 07:14:48 +00:00
|
|
|
doCheck = false;
|
2019-10-01 20:50:07 +00:00
|
|
|
|
|
|
|
outputs = [ "dev" "out" ];
|
2018-10-21 09:04:34 +00:00
|
|
|
|
2023-01-29 17:10:00 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit lxd;
|
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2019-10-01 20:50:07 +00:00
|
|
|
description = ''
|
|
|
|
Expose a SQLite database over the network and replicate it across a
|
|
|
|
cluster of peers
|
|
|
|
'';
|
2020-07-25 09:20:00 +00:00
|
|
|
homepage = "https://dqlite.io/";
|
2018-10-21 09:04:34 +00:00
|
|
|
license = licenses.asl20;
|
2023-01-20 18:16:01 +00:00
|
|
|
maintainers = with maintainers; [ joko adamcstephens ];
|
2020-04-27 08:30:45 +00:00
|
|
|
platforms = platforms.linux;
|
2018-10-21 09:04:34 +00:00
|
|
|
};
|
|
|
|
}
|