tauri-docs icon indicating copy to clipboard operation
tauri-docs copied to clipboard

fix missing dependency `rustc` for nixos

Open Jacques-z opened this issue 9 months ago • 2 comments

Description

  • I'm using unstable version of nixos and it failed to launch without pkg rustc.

Jacques-z avatar Apr 16 '25 04:04 Jacques-z

Deploy Preview for tauri-v2 ready!

Built without sensitive environment variables

Name Link
Latest commit 9649012ddc556e7fd8c1d2ee7d407034014898d5
Latest deploy log https://app.netlify.com/sites/tauri-v2/deploys/67ff38b18eb9600008df5408
Deploy Preview https://deploy-preview-3262--tauri-v2.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

Lighthouse
1 paths audited
Performance: 100 (🟢 up 1 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Apr 16 '25 04:04 netlify[bot]

BTW, the svgs aren't shown and TLS reported as not available with this template. Got them working by adding some shellHook:

let
  pkgs = import <nixpkgs> { };
in
pkgs.mkShell {
  nativeBuildInputs = with pkgs; [
    pkg-config
    gobject-introspection
    rustc
    cargo
    cargo-tauri
    nodejs
  ];

  buildInputs = with pkgs;[
    at-spi2-atk
    atkmm
    cairo
    gdk-pixbuf
    glib
    gtk3
    harfbuzz
    librsvg
    libsoup_3
    pango
    webkitgtk_4_1
    openssl
  ];

  shellHook =
    ''
      # for svg
      export XDG_DATA_DIRS=${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}:${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}:$XDG_DATA_DIRS
      # for TLS:
      export GIO_MODULE_DIR=${pkgs.glib-networking}/lib/gio/modules/
    '';
}

Jacques-z avatar Apr 16 '25 05:04 Jacques-z