Open liketoeatcheese opened 3 months ago
I also encountered the same error on Windows. After referring to gitbutler/development docs and installing Strawberry Perl, it worked normally.
I got tauri working with this shell.nix
let
pkgs = import <nixpkgs> { };
in
pkgs.mkShell {
buildInputs = with pkgs;[
at-spi2-atk
atkmm
cairo
gdk-pixbuf
glib
gobject-introspection
gobject-introspection.dev
gtk3
harfbuzz
librsvg
libsoup_3
pango
webkitgtk_4_1
webkitgtk_4_1.dev
pkg-config
];
OPENSSL_NO_VENDOR = 1;
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath (with pkgs; [ openssl_3 ]);
OPENSSL_LIB_DIR = "${pkgs.lib.getLib pkgs.openssl_3}/lib";
OPENSSL_DIR = "${pkgs.openssl_3.dev}";
PKG_CONFIG_PATH = with pkgs; "${glib.dev}/lib/pkgconfig:${libsoup_3.dev}/lib/pkgconfig:${webkitgtk_4_1.dev}/lib/pkgconfig:${at-spi2-atk.dev}/lib/pkgconfig:${gtk3.dev}/lib/pkgconfig:${gdk-pixbuf.dev}/lib/pkgconfig:${cairo.dev}/lib/pkgconfig:${pango.dev}/lib/pkgconfig:${harfbuzz.dev}/lib/pkgconfig";
}
I got the answer from discourse.nixos.org
I got tauri working with this shell.nix
let pkgs = import <nixpkgs> { }; in pkgs.mkShell { buildInputs = with pkgs;[ at-spi2-atk atkmm cairo gdk-pixbuf glib gobject-introspection gobject-introspection.dev gtk3 harfbuzz librsvg libsoup_3 pango webkitgtk_4_1 webkitgtk_4_1.dev pkg-config ]; OPENSSL_NO_VENDOR = 1; LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath (with pkgs; [ openssl_3 ]); OPENSSL_LIB_DIR = "${pkgs.lib.getLib pkgs.openssl_3}/lib"; OPENSSL_DIR = "${pkgs.openssl_3.dev}"; PKG_CONFIG_PATH = with pkgs; "${glib.dev}/lib/pkgconfig:${libsoup_3.dev}/lib/pkgconfig:${webkitgtk_4_1.dev}/lib/pkgconfig:${at-spi2-atk.dev}/lib/pkgconfig:${gtk3.dev}/lib/pkgconfig:${gdk-pixbuf.dev}/lib/pkgconfig:${cairo.dev}/lib/pkgconfig:${pango.dev}/lib/pkgconfig:${harfbuzz.dev}/lib/pkgconfig"; }
I got the answer from discourse.nixos.org
This worked for me on NixOS WSL, thanks. It could be worth submitting a PR for the docs showing this.
Describe the bug
I'm trying to build Windows MSI on NixOS via nix-shell. Here's my
shell.nix
:This nix shell follows nixos wiki on rust and Tauri's nixos guide. And also followed Tauri's guide to build Window Apps on Linux
When I tried to install:
I also tried adding the OPENSSL_'s environments variale directlly instead of relying on OPENSSL_DIR:
Then getting:
I have also tried a heaps variance of open_ssl.dev, open_ssl.out,etcc...
Reproduction
src-tauri/Cargo.toml
src-tauri/tauri.conf.json
Expected behavior
Windows's MSI should be outputed
Full
tauri info
outputStack trace
Additional context
No response