A Nix overlay to easily use FoundationDB binaries in your Nix projects.
This overlay provides the following packages:
libfdb: The FoundationDB C client library.- Versions: 7.1, 7.2, 7.3, 7.4
fdbserver: The FoundationDB server.- Versions: 7.1, 7.3, 7.4
fdbcli: The FoundationDB command-line interface.- Versions: 7.1, 7.3, 7.4
To use this overlay, add it to your flake.nix inputs:
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
fdb-overlay.url = "github:foundationdb-rs/overlay";
};
outputs =
{
nixpkgs,
fdb-overlay,
...
}:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
overlays = [ fdb-overlay.overlays.default ];
};
in
{
devShells."${system}".default = pkgs.mkShell {
packages = with pkgs; [ libfdb fdbcli ];
};
};
}This example creates a development shell with the libfdb and fdbcli packages.
For more advanced usage, such as using specific versions or overriding packages, please refer to the examples directory.
To check that the overlay is working correctly, you can run the following command:
nix flake check .