Sender | Message | Time |
---|---|---|
6 Jul 2025 | ||
12:58:03 | ||
I want to build a Dioxus desktop app with webview from GNU/Linux to Windows. So far, this does build
with Does nixpkgs not have the WebView2 runtime-related stuff or do I have to install the runtime on the target OS in order to run my app? | 15:15:58 | |
You definitely need it on the target | 15:16:24 | |
And we definitely don't have it in nixpkgs | 15:16:29 | |
As it's not redistributable | 15:16:35 | |
Is there any chance this can be included in the binary somehow? | 15:17:01 | |
Isn't webview2 part of windows? | 15:17:14 | |
No, it's a Microsoft proprietary library | 15:17:16 | |
Only on 11 | 15:17:25 | |
It is optional on 10 and N/A on older versions | 15:17:36 | |
And they are running Wine which most definitely isn't helping | 15:17:47 | |
Oh, so on that it should just work, if no other dependencies are missing? | 15:17:53 | |
Possibly | 15:18:00 | |
That's interesting. | 15:18:09 | |
Oh actually no it won't because you're building for MinGW | 15:18:12 | |
So presumably you'll run into Exciting ABI Fuckery | 15:18:18 | |
OK, is there a better way? | 15:18:36 | |
Build on native Windows | 15:18:43 | |
Are you saying Nix can't save me? | 15:18:57 | |
We don't really have good Windows support in nixpkgs | 15:18:59 | |
I am saying that nixpkgs, in its current state, can't save you | 15:19:09 | |
So you're telling there is a chance... | 15:19:22 | |
Maybe if someone puts in a good half a year of work and gets us a working MSVC toolchain | 15:19:24 | |
But you'd need to find someone with nixpkgs AND Windows expertise | 15:19:42 | |
And such people are extremely rare | 15:19:49 | |
If they even exist | 15:19:52 | |
Do I understand correctly, that Windows platform support is not good, but Rust makes it even worse? | 15:20:20 | |
Because more variables etc. | 15:20:25 | |
No, Rust can actually make it OK-ish sometimes maybe | 15:20:37 | |
Because there are separate targets in Nixpkgs and separate ones in Rust. | 15:20:56 |