- Remove gitlinks (160000 mode) for chainfire, flaredb, iam - Add workspace contents as regular tracked files - Update flake.nix to use simple paths instead of builtins.fetchGit This resolves the nix build failure where submodule directories appeared empty in the nix store. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
48 lines
1.5 KiB
Nix
48 lines
1.5 KiB
Nix
{
|
|
description = "FlareDB - A distributed Key-Value Store in Rust";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
rust-overlay.url = "github:oxalica/rust-overlay";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, rust-overlay, flake-utils, ... }:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
overlays = [ (import rust-overlay) ];
|
|
pkgs = import nixpkgs {
|
|
inherit system overlays;
|
|
};
|
|
|
|
rustToolchain = pkgs.rust-bin.stable.latest.default.override {
|
|
extensions = [ "rust-src" "rust-analyzer" ];
|
|
};
|
|
|
|
in
|
|
{
|
|
devShells.default = pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
rustToolchain
|
|
pkg-config
|
|
openssl
|
|
protobuf # For tonic/prost
|
|
rocksdb # For rocksdb crate
|
|
clang # For bindgen (rocksdb)
|
|
llvmPackages.libclang
|
|
cmake # For building rocksdb from source if needed
|
|
];
|
|
|
|
shellHook = ''
|
|
export LIBCLANG_PATH="${pkgs.llvmPackages.libclang.lib}/lib"
|
|
export PROTOC="${pkgs.protobuf}/bin/protoc"
|
|
export ROCKSDB_LIB_DIR="${pkgs.rocksdb}/lib"
|
|
export ROCKSDB_INCLUDE_DIR="${pkgs.rocksdb}/include"
|
|
echo "FlareDB development environment loaded!"
|
|
echo "Rust: $(rustc --version)"
|
|
echo "Protoc: $(protoc --version)"
|
|
'';
|
|
};
|
|
}
|
|
);
|
|
}
|