cargo-tauri_1: cleanup dependencies

This removes the {,webkit}gtk dependencies that aren't directly used by
the CLI, while explicitly declaring the some dependencies that
were previously being pulled in through {,webkit}gtk or just vendored by
crates
This commit is contained in:
Seth Flynn
2025-08-21 19:55:47 -04:00
parent ca436e95e2
commit 1f9e69f753
+14 -12
View File
@@ -1,14 +1,13 @@
{
lib,
stdenv,
rustPlatform,
bzip2,
fetchFromGitHub,
cargo-tauri,
gtk3,
libsoup_2_4,
openssl,
pkg-config,
webkitgtk_4_0,
rustPlatform,
xz,
zstd,
cargo-tauri,
}:
cargo-tauri.overrideAttrs (
@@ -39,13 +38,16 @@ cargo-tauri.overrideAttrs (
nativeBuildInputs = oldAttrs.nativeBuildInputs or [ ] ++ [ pkg-config ];
buildInputs = [
openssl
# Required by `zip` in `tauri-bundler`
bzip2
zstd
]
++ lib.optionals stdenv.hostPlatform.isLinux [
gtk3
libsoup_2_4
webkitgtk_4_0
];
# Required by `rpm` in `tauri-bundler`
++ lib.optionals stdenv.hostPlatform.isLinux [ xz ];
env = {
ZSTD_SYS_USE_PKG_CONFIG = true;
};
passthru = {
inherit (oldAttrs.passthru) hook;