Abstract database behind generic interface and implement alternative drivers #322

Merged
lx merged 64 commits from db-abstraction into main 2022-06-08 08:01:56 +00:00
Showing only changes of commit 35544cac39 - Show all commits

View file

@ -95,6 +95,25 @@ in let
features = if release then [ "kubernetes-discovery" ] else []; features = if release then [ "kubernetes-discovery" ] else [];
}; };
}) })
/*
We are now depending on sqlite3 and lmdb to provide alternative
storage backends for Garage. But these crates don't know what
system libraries they need, so we add them here manually:
`sqlite3` for `libsqlite3-sys` and `lmdb` for `lmdb-rkv-sys`
*/
(pkgs.rustBuilder.rustLib.makeOverride {
name = "libsqlite3-sys";
overrideAttrs = drv: {
propagatedBuildInputs = drv.propagatedBuildInputs or [ ] ++ [ pkgs.sqlite ];
};
})
(pkgs.rustBuilder.rustLib.makeOverride {
name = "lmdb-rkv-sys";
overrideAttrs = drv: {
propagatedBuildInputs = drv.propagatedBuildInputs or [ ] ++ [ pkgs.lmdb ];
};
})
]; ];
packageFun = import ./Cargo.nix; packageFun = import ./Cargo.nix;