From 364dec4b0d0a030fa244e6d0a4af3467c41b3190 Mon Sep 17 00:00:00 2001 From: Seungwon Lee <67085791+mulatta@users.noreply.github.com> Date: Wed, 2 Dec 2026 01:15:19 +0900 Subject: [PATCH] fix(nix): provide native libraries and gateway sources (#9834) The locked Rust build hooks require system zstd and AWS-LC. Gateway includes generated tables across crate boundaries that Cargo vendoring separates. Reuse the copy vendored with gateway-core to build offline. --- flake.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/flake.nix b/flake.nix index 8f9f3afb27..c02e257d43 100644 --- a/flake.nix +++ b/flake.nix @@ -92,9 +92,16 @@ ]; buildInputs = with pkgs; [ + aws-lc openssl + zstd ]; + # Gateway crates include files from their workspace's shared generated directory. + prePatch = '' + ln -s "$cargoDepsCopy"/rustfs-gateway-core-*/generated "$cargoDepsCopy/../generated" + ''; + cargoBuildFlags = [ "--package" "rustfs"