From f2dedc3a45dfdfa128f3a91f78198447de97326f Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Tue, 19 May 2026 10:14:14 -0400 Subject: [PATCH] default-crate-overrides: add zstd-sys and fuser zstd-sys: set ZSTD_SYS_USE_PKG_CONFIG so build.rs probes the system libzstd via pkg-config instead of compiling the vendored C amalgamation from scratch in every consumer. fuser: with the default-on libfuse feature, build.rs discovers libfuse via pkg-config and has no vendored fallback, so it fails in the sandbox without pkg-config and fuse3 in scope. --- pkgs/build-support/rust/default-crate-overrides.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkgs/build-support/rust/default-crate-overrides.nix b/pkgs/build-support/rust/default-crate-overrides.nix index c28fe180c3e2..8e43bfa98173 100644 --- a/pkgs/build-support/rust/default-crate-overrides.nix +++ b/pkgs/build-support/rust/default-crate-overrides.nix @@ -15,6 +15,7 @@ fontconfig, foundationdb, freetype, + fuse3, gdk-pixbuf, glib, gmp, @@ -43,6 +44,7 @@ udev, webkitgtk_4_1, zlib, + zstd, buildPackages, ... }: @@ -146,6 +148,11 @@ buildInputs = [ freetype ]; }; + fuser = attrs: { + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ fuse3 ]; + }; + glib-sys = attrs: { nativeBuildInputs = [ pkg-config ]; buildInputs = [ glib ]; @@ -392,6 +399,12 @@ buildInputs = [ python3 ]; }; + zstd-sys = attrs: { + ZSTD_SYS_USE_PKG_CONFIG = true; + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ zstd ]; + }; + atk-sys = attrs: { nativeBuildInputs = [ pkg-config ]; buildInputs = [ atk ];