2019-10-01 21:50:07 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, file, libco-canonical
|
|
|
|
, libuv, raft-canonical, sqlite-replication }:
|
2018-10-21 10:04:34 +01:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-12 15:33:31 +00:00
|
|
|
pname = "dqlite";
|
2019-10-01 21:50:07 +01:00
|
|
|
version = "1.0.0";
|
2018-10-21 10:04:34 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-10-01 21:50:07 +01:00
|
|
|
owner = "canonical";
|
2019-03-12 15:33:31 +00:00
|
|
|
repo = pname;
|
2018-10-21 10:04:34 +01:00
|
|
|
rev = "v${version}";
|
2019-10-01 21:50:07 +01:00
|
|
|
sha256 = "0670c1c84lcf5vl3h6mlff00fz2fnm766bzlk526sjjzysx3zjya";
|
2018-10-21 10:04:34 +01:00
|
|
|
};
|
|
|
|
|
2019-10-01 21:50:07 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook file pkgconfig ];
|
|
|
|
buildInputs = [ libco-canonical.dev libuv raft-canonical.dev
|
|
|
|
sqlite-replication ];
|
2018-10-21 10:04:34 +01:00
|
|
|
|
2019-10-01 21:50:07 +01:00
|
|
|
preConfigure= ''
|
|
|
|
substituteInPlace configure --replace /usr/bin/ " "
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
outputs = [ "dev" "out" ];
|
2018-10-21 10:04:34 +01:00
|
|
|
|
|
|
|
meta = {
|
2019-10-01 21:50:07 +01:00
|
|
|
description = ''
|
|
|
|
Expose a SQLite database over the network and replicate it across a
|
|
|
|
cluster of peers
|
|
|
|
'';
|
2018-10-21 10:04:34 +01:00
|
|
|
homepage = https://github.com/CanonicalLtd/dqlite/;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ joko ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|