๐ โ cargo tauri build --runner cargo-xwin --target x86_64-pc-windows-msvc --verbose
Running [tauri_cli] Command `cargo-xwin build --features custom-protocol --release --target x86_64-pc-windows-msvc`
Compiling openssl-sys v0.9.103
Compiling tauri v1.7.1
Compiling openssl v0.10.66
error: could not find native static library `/nix/store/bvrly5zpaqxydbfnx3dm4i7k8cbkrp32-openssl-3.0.14-dev/lib`, perhaps an -L flag is missing?
error: could not compile `openssl-sys` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
Error [tauri_cli] failed to build app: failed to build app
I have also tried a heaps variance of open_ssl.dev, open_ssl.out,etcc...
Reproduction
๐ โก cargo tauri --version
tauri-cli 1.6.0
๐ โก cargo create-tauri-app --version
4.1.0
๐ โ cargo create-tauri-app
โ Project name ยท openssl_bug
โ Choose which language to use for your frontend ยท TypeScript / JavaScript - (pnpm, yarn, npm, bun)
โ Choose your package manager ยท npm
โ Choose your UI template ยท Vanilla
โ Choose your UI flavor ยท JavaScript
src-tauri/Cargo.toml
[package]
name = "openssl_bug"
...
[dependencies]
tauri = { version = "1", features = ["shell-open"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
openssl = "0.10.64"
...
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