Jump to content

Tauri: Difference between revisions

From NixOS Wiki
Almino (talk | contribs)
m Fixing code submitted on last edit
m added a comment for optional dependancies
Line 15: Line 15:
     pkg-config
     pkg-config
     gobject-introspection
     gobject-introspection
     cargo
     cargo  
     cargo-tauri
     cargo-tauri # Optional, Only needed if Tauri doesn't work through the traditional way.
     nodejs
     nodejs # Optional, this is for if you have a js frontend
   ];
   ];



Revision as of 18:13, 28 February 2025

⚠︎
Warning: Work in Progress

Development environment with nix-shell

References

# Run with `nix-shell shell.nix`
let
  pkgs = import <nixpkgs> { };
in
pkgs.mkShell {
  nativeBuildInputs = with pkgs; [
    pkg-config
    gobject-introspection
    cargo 
    cargo-tauri # Optional, Only needed if Tauri doesn't work through the traditional way.
    nodejs # Optional, this is for if you have a js frontend
  ];

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

Building a Tauri app on nixpkgs?

An official hook has been developed to help you distribute your Tauri app. For more info please checkout the Nixpkgs reference manual here