!BgJZHVOYkwVcEKLAyM:nixos.org

NixOS Deployments

1039 Members
NixOS Deployment tooling250 Servers

Load older messages


SenderMessageTime
25 Nov 2024
@magic_rb:matrix.redalder.orgmagic_rb @soywod:matrix.org as for windows, cross compiling to it using mingw is pretty painless. You do have to do what every windows does anyway, which is shipping a buttload of DLLs. I managed to cross compile Haskell too and disregarding the problems with GHC it was actually easy 09:16:25
@soywod:matrix.orgsoywodThanks 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 took a wrong direction.09:19:05
@soywod:matrix.orgsoywod * 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:matrix.redalder.orgmagic_rbFor linux its reliable enough, for windows just go with dynamic and ship the DLLs, thats what everyone does09:22:04
@flyx:klacker.euflyxI 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 packages09:22:06
@emilazy:matrix.orgemily 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
@emilazy:matrix.orgemilyYMMV, still nominally experimental, report bugs if you find them, but it's meant to work now09:23:05
@emilazy:matrix.orgemily there's probably plenty of stuff that doesn't quite build with pkgsStatic currently 09:23:40
@emilazy:matrix.orgemilyand if you want to target macOS versions unsupported by Apple then that will get tricky from 25.1109:23:42
@startswithbalint:matrix.orgstartswithbalintI 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 here09:40:30
@startswithbalint:matrix.orgstartswithbalint* 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 here09:41:04
@emilazy:matrix.orgemily
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:klacker.euflyx
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.orgNullCube joined the room.09:54:14
@jfquesada:matrix.orgice9 changed their display name from Jose Quesada to ice9.18:38:05
@jfquesada:matrix.orgice9 left the room.19:06:05
@apurba007:matrix.org@apurba007:matrix.org left the room.19:35:16
@jfquesada:matrix.orgice9 joined the room.23:17:55
26 Nov 2024
@andrewm:element.ioAndrew 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
@etehtsea:matrix.orgkis-kis joined the room.15:15:15
@etehtsea:matrix.orgkis-kis changed their display name from kshabanov to kis-kis.15:16:31
@jopejoe1:matrix.orgjopejoe1 [4094] changed their display name from jopejoe1 to jopejoe1 [4094].18:18:04
@enderbsd:matrix.orgenderbsd joined the room.20:14:12
@thedragon44:matrix.org@thedragon44:matrix.org left the room.23:32:57
28 Nov 2024
@sheeeng:matrix.orgsheeeng joined the room.07:45:24
@bwolff:matrix.org@bwolff:matrix.org joined the room.17:41:34
29 Nov 2024
@bl1nk:matrix.orgbl1nk changed their profile picture.01:11:46
@bl1nk:matrix.orgbl1nk 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

Show newer messages


Back to Room ListRoom Version: 6