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.
This commit is contained in:
Seungwon Lee
2026-12-02 01:15:19 +09:00
committed by GitHub
parent 152d9a39cc
commit 364dec4b0d
+7
View File
@@ -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"