diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/dqlite')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/dqlite/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/dqlite/default.nix b/nixpkgs/pkgs/development/libraries/dqlite/default.nix new file mode 100644 index 000000000000..748e1e756cb3 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/dqlite/default.nix @@ -0,0 +1,39 @@ +{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, file, libuv +, raft-canonical, sqlite-replication }: + +stdenv.mkDerivation rec { + pname = "dqlite"; + version = "1.9.0"; + + src = fetchFromGitHub { + owner = "canonical"; + repo = pname; + rev = "v${version}"; + sha256 = "0zalsvr0vy7632nhm96a29lrfy18iqsmbxpyz2lvq80mrjlbrzsn"; + }; + + nativeBuildInputs = [ autoreconfHook file pkg-config ]; + buildInputs = [ + libuv + raft-canonical.dev + sqlite-replication + ]; + + enableParallelBuilding = true; + + # tests fail + doCheck = false; + + outputs = [ "dev" "out" ]; + + meta = with lib; { + description = '' + Expose a SQLite database over the network and replicate it across a + cluster of peers + ''; + homepage = "https://dqlite.io/"; + license = licenses.asl20; + maintainers = with maintainers; [ joko ]; + platforms = platforms.linux; + }; +} |