nixpkgs/pkgs/by-name/dq/dqlite/package.nix
2025-06-09 12:07:11 +00:00

69 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
fetchpatch2,
autoreconfHook,
pkg-config,
file,
libuv,
raft-canonical,
sqlite,
lxd-lts,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "dqlite";
version = "1.18.1";
src = fetchFromGitHub {
owner = "canonical";
repo = "dqlite";
tag = "v${finalAttrs.version}";
hash = "sha256-7ou077ozbpH21PcvEEcprr4UYJ/X398Ph9dh5C3YyBQ=";
};
patches = [
(fetchpatch2 {
url = "https://github.com/canonical/dqlite/commit/be453628ce782167f6652c055e600908e2641da7.patch?full_index=1";
hash = "sha256-5DvZ1TW6QmE/heh/RjV395gSgwKM5XnqxqznfYQPC/Y=";
})
];
nativeBuildInputs = [
autoreconfHook
file
pkg-config
];
buildInputs = [
libuv
raft-canonical.dev
sqlite
];
enableParallelBuilding = true;
# tests fail
doCheck = false;
outputs = [
"dev"
"out"
];
passthru.tests = {
inherit lxd-lts;
};
meta = {
description = ''
Expose a SQLite database over the network and replicate it across a
cluster of peers
'';
homepage = "https://dqlite.io/";
license = lib.licenses.asl20;
maintainers = [ ];
platforms = lib.platforms.linux;
};
})