2021-05-28 09:39:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, file, libuv
|
2022-12-28 21:21:41 +00:00
|
|
|
, raft-canonical, sqlite }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dqlite";
|
2021-08-08 23:34:03 +00:00
|
|
|
version = "1.9.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "canonical";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-08-08 23:34:03 +00:00
|
|
|
sha256 = "0zalsvr0vy7632nhm96a29lrfy18iqsmbxpyz2lvq80mrjlbrzsn";
|
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" ];
|
|
|
|
|
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;
|
2022-03-05 16:20:37 +00:00
|
|
|
maintainers = with maintainers; [ joko ];
|
2020-05-03 17:38:23 +00:00
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|