Unverified Commit 1f9e69f7 authored by Seth Flynn's avatar Seth Flynn
Browse files

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
parent ca436e95
Loading
Loading
Loading
Loading
+14 −12
Original line number Diff line number Diff line
{
  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;