photoncloud-monorepo/chainfire/crates/chainfire-proto/build.rs
centra 8f94aee1fa Fix R8: Convert submodule gitlinks to regular directories
- 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>
2025-12-09 16:51:20 +09:00

12 lines
410 B
Rust

fn main() -> Result<(), Box<dyn std::error::Error>> {
let protoc_path = protoc_bin_vendored::protoc_bin_path()?;
std::env::set_var("PROTOC", protoc_path);
tonic_build::configure()
.build_server(false)
.build_client(true)
.compile_protos(&["../../proto/chainfire.proto"], &["../../proto"])?;
println!("cargo:rerun-if-changed=../../proto/chainfire.proto");
Ok(())
}