Skip to content

Commit d7d05b2

Browse files
committed
flake: add libb2/lz4/zstd to dev shell
`src/build.rs` probes these via pkg-config when the `static` feature is enabled, so without them `cargo build --features static` (and therefore `cargo build --all-features`) fails with "Unable to find libb2" before any Rust code is compiled. Note: a fully static build still needs a static libarchive, which the default nixpkgs `libarchive` does not provide — this change just removes the libb2/lz4/zstd pkg-config failures, so developers hit a more meaningful error (or can supply their own static libarchive).
1 parent befe241 commit d7d05b2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

flake.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@
3737
rust-bindgen
3838
pkg-config
3939
libarchive
40+
# Required by the `static` feature (build.rs probes these via
41+
# pkg-config when libarchive is linked statically).
42+
libb2
43+
lz4
44+
zstd
4045
clang
4146
llvmPackages.libclang
4247

0 commit comments

Comments
 (0)