Tauri: Difference between revisions
Appearance
Adding nix-shell dev env |
m Fixing code submitted on last edit |
||
Line 1: | Line 1: | ||
{{warning | Work in Progress}} | {{warning | Work in Progress}} | ||
== Development environment with <code>nix-shell</code> == | |||
References | |||
* [[Development environment with nix-shell|https://wiki.nixos.org/wiki/Development_environment_with_nix-shell]] (2025-01-23) | |||
* https://v2.tauri.app/start/prerequisites/ (2025-01-23) | |||
<syntaxhighlight lang="nix"> | |||
# Run with `nix-shell shell.nix` | |||
let | let | ||
pkgs = import <nixpkgs> { }; | pkgs = import <nixpkgs> { }; | ||
Line 28: | Line 34: | ||
openssl | openssl | ||
]; | ]; | ||
# shellHook = ""; | |||
} | } | ||
</syntaxhighlight> | |||
== Building a Tauri app on nixpkgs? == | == Building a Tauri app on nixpkgs? == | ||
An official hook has been developed to help you distribute your Tauri app. | An official hook has been developed to help you distribute your Tauri app. | ||
For more info please checkout the Nixpkgs reference manual [https://nixos.org/manual/nixpkgs/unstable/#tauri-hook here] | For more info please checkout the Nixpkgs reference manual [https://nixos.org/manual/nixpkgs/unstable/#tauri-hook here] |
Revision as of 12:43, 23 January 2025
Development environment with nix-shell
References
- https://wiki.nixos.org/wiki/Development_environment_with_nix-shell (2025-01-23)
- https://v2.tauri.app/start/prerequisites/ (2025-01-23)
# Run with `nix-shell shell.nix`
let
pkgs = import <nixpkgs> { };
in
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
pkg-config
gobject-introspection
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 = "";
}
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