mirror of
https://github.com/rustfs/rustfs.git
synced 2026-12-03 06:36:35 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user