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.
This commit is contained in:
@@ -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 ];
|
||||
|
||||
Reference in New Issue
Block a user