2019-10-01 22:50:07 +02:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, file, libco-canonical
|
|
|
|
, libuv, raft-canonical, sqlite-replication }:
|
2018-10-21 11:04:34 +02:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-12 16:33:31 +01:00
|
|
|
pname = "dqlite";
|
2020-04-27 09:14:48 +02:00
|
|
|
version = "1.4.1";
|
2018-10-21 11:04:34 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-10-01 22:50:07 +02:00
|
|
|
owner = "canonical";
|
2019-03-12 16:33:31 +01:00
|
|
|
repo = pname;
|
2018-10-21 11:04:34 +02:00
|
|
|
rev = "v${version}";
|
2020-04-27 09:14:48 +02:00
|
|
|
sha256 = "04h3wbfv6bkzzmcwaja33x2qkj3czn0p6fgbdgqd1xli8sx2c2k4";
|
2018-10-21 11:04:34 +02:00
|
|
|
};
|
|
|
|
|
2019-10-01 22:50:07 +02:00
|
|
|
nativeBuildInputs = [ autoreconfHook file pkgconfig ];
|
2020-04-27 09:14:48 +02:00
|
|
|
buildInputs = [
|
|
|
|
libco-canonical.dev
|
|
|
|
libuv
|
|
|
|
raft-canonical.dev
|
|
|
|
sqlite-replication
|
|
|
|
];
|
|
|
|
|
|
|
|
# tests hang for ever on x86_64-linux
|
|
|
|
doCheck = false;
|
2019-10-01 22:50:07 +02:00
|
|
|
|
|
|
|
outputs = [ "dev" "out" ];
|
2018-10-21 11:04:34 +02:00
|
|
|
|
|
|
|
meta = {
|
2019-10-01 22:50:07 +02:00
|
|
|
description = ''
|
|
|
|
Expose a SQLite database over the network and replicate it across a
|
|
|
|
cluster of peers
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/CanonicalLtd/dqlite/";
|
2018-10-21 11:04:34 +02:00
|
|
|
license = licenses.asl20;
|
2020-01-04 01:48:32 +01:00
|
|
|
maintainers = with maintainers; [ joko wucke13 ];
|
2020-04-27 10:30:45 +02:00
|
|
|
platforms = platforms.linux;
|
2018-10-21 11:04:34 +02:00
|
|
|
};
|
|
|
|
}
|