Unverified Commit 5fca6240 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

[Backport release-25.05] doc/tauri: fix example, make openssl linux-only (#407849)

parents da83cd31 a105a3b7
Loading
Loading
Loading
Loading
+8 −9
Original line number Diff line number Diff line
@@ -30,8 +30,8 @@ rustPlatform.buildRustPackage (finalAttrs: {

  # Assuming our app's frontend uses `npm` as a package manager
  npmDeps = fetchNpmDeps {
    name = "${finalAttrs.pname}-npm-deps-${finalAttrs.version}";
    inherit src;
    name = "${finalAttrs.pname}-${finalAttrs.version}-npm-deps";
    inherit (finalAttrs) src;
    hash = "...";
  };

@@ -51,17 +51,16 @@ rustPlatform.buildRustPackage (finalAttrs: {
      wrapGAppsHook4
    ];

  buildInputs =
    [ openssl ]
    ++ lib.optionals stdenv.hostPlatform.isLinux [
  buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
    glib-networking # Most Tauri apps need networking
    openssl
    webkitgtk_4_1
  ];

  # Set our Tauri source directory
  cargoRoot = "src-tauri";
  # And make sure we build there too
  buildAndTestSubdir = cargoRoot;
  buildAndTestSubdir = finalAttrs.cargoRoot;

  # ...
})