| 25 Nov 2024 |
@soywod:matrix.org | * Thanks a lot for your answers, really helpful. So in conclusion static linking is reliable enough for deploying multi-platform releases, right? Regarding Windows I will dive a bit more, I may have taken a wrong direction. | 09:21:12 |
magic_rb | For linux its reliable enough, for windows just go with dynamic and ship the DLLs, thats what everyone does | 09:22:04 |
flyx | I have written a blog post some time ago about cross-compiling and packaging with Nix Flakes, perhaps that's helpful for you: https://flyx.org/cross-packaging/
However this does not use Nix' cross-compiling capacities, instead it relies on Zig for providing a cross-compiling clang setup. OTOH it can build .deb packages with dynamic linking that depend on other .deb packages | 09:22:06 |
emily | for macOS, reliable enough insofar as if something builds on pkgsStatic, and it would hypothetically work if you move all the .dylibs around and rewrite them, then it should work with pkgsStatic | 09:22:52 |
emily | YMMV, still nominally experimental, report bugs if you find them, but it's meant to work now | 09:23:05 |
emily | there's probably plenty of stuff that doesn't quite build with pkgsStatic currently | 09:23:40 |
emily | and if you want to target macOS versions unsupported by Apple then that will get tricky from 25.11 | 09:23:42 |
startswithbalint | I couldn’t quite figure it all out. I tried just building in my devenv and then using patchelf but that didn’t work for all dependencies when I tried to run it on Ubuntu without Nix for some reason. I thought about just trying with an Ubuntu container, more generally a container for every environment I need to build for. I want to also look into the solutions listed here | 09:40:30 |
startswithbalint | * I couldn’t quite figure it all out for a Rust gui app. I tried just building in my devenv and then using patchelf but that didn’t work for all dependencies when I tried to run it on Ubuntu without Nix for some reason. I thought about just trying with an Ubuntu container, more generally a container for every environment I need to build for. I want to also look into the solutions listed here | 09:41:04 |
emily | In reply to @emilazy:matrix.org YMMV, still nominally experimental, report bugs if you find them, but it's meant to work now ping @NixOS/darwin-core if you do fwiw | 09:42:26 |
flyx | In reply to @startswithbalint:matrix.org I couldn’t quite figure it all out for a Rust gui app. I tried just building in my devenv and then using patchelf but that didn’t work for all dependencies when I tried to run it on Ubuntu without Nix for some reason. I thought about just trying with an Ubuntu container, more generally a container for every environment I need to build for. I want to also look into the solutions listed here my post doesn't tackle Rust, but afaik the Rust compiler is LLVM-based and should effortlessly be able to cross-compile, so you could re-use the techniques I use for fetching foreign dependencies from Debian/MSYS2 repositories | 09:50:38 |
| @nullcube:matrix.org joined the room. | 09:54:14 |
| ice9 changed their display name from Jose Quesada to ice9. | 18:38:05 |
| ice9 left the room. | 19:06:05 |
| @apurba007:matrix.org left the room. | 19:35:16 |
| ice9 joined the room. | 23:17:55 |
| 26 Nov 2024 |
| Andrew Morgan (anoa) {he/him} changed their display name from Andrew Morgan (anoa) {he/him} [back Nov 5] to Andrew Morgan (anoa) {he/him}. | 08:30:45 |
| 27 Nov 2024 |
| kis-kis joined the room. | 15:15:15 |
| kis-kis changed their display name from kshabanov to kis-kis. | 15:16:31 |
| jopejoe1 (4094@39c3) changed their display name from jopejoe1 to jopejoe1 [4094]. | 18:18:04 |
| enderbsd joined the room. | 20:14:12 |
| @thedragon44:matrix.org left the room. | 23:32:57 |
| 28 Nov 2024 |
| sheeeng joined the room. | 07:45:24 |
| @bwolff:matrix.org joined the room. | 17:41:34 |
| 29 Nov 2024 |
| bl1nk changed their profile picture. | 01:11:46 |
| bl1nk changed their profile picture. | 01:12:01 |
| @tanvir:mozilla.org joined the room. | 16:30:30 |
| @tanvir:mozilla.org changed their display name from Tanvir to 𝒕𝒂𝒏𝒗𝒊𝒓. | 16:34:50 |
| 30 Nov 2024 |
| doomhammer joined the room. | 05:15:32 |
| @dominic_:matrix.org left the room. | 07:37:20 |