nixpkgs-suyu/pkgs/development/libraries/dqlite/default.nix

40 lines
988 B
Nix
Raw Normal View History

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 {
pname = "dqlite";
2020-01-04 01:48:32 +01:00
version = "1.4.0";
2018-10-21 11:04:34 +02:00
src = fetchFromGitHub {
2019-10-01 22:50:07 +02:00
owner = "canonical";
repo = pname;
2018-10-21 11:04:34 +02:00
rev = "v${version}";
2020-01-04 01:48:32 +01:00
sha256 = "19snm6cicxagcw9ys2jmjf6fchzs6pwm7h4jmyr0pn6zks2yjf1i";
2018-10-21 11:04:34 +02:00
};
2019-10-01 22:50:07 +02:00
nativeBuildInputs = [ autoreconfHook file pkgconfig ];
buildInputs = [ libco-canonical.dev libuv raft-canonical.dev
sqlite-replication ];
2018-10-21 11:04:34 +02:00
2019-10-01 22:50:07 +02:00
preConfigure= ''
substituteInPlace configure --replace /usr/bin/ " "
'';
doCheck = true;
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
'';
2018-10-21 11:04:34 +02:00
homepage = https://github.com/CanonicalLtd/dqlite/;
license = licenses.asl20;
2020-01-04 01:48:32 +01:00
maintainers = with maintainers; [ joko wucke13 ];
2018-10-21 11:04:34 +02:00
platforms = platforms.unix;
};
}