!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

576 Members
125 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
18 Jun 2025
@dramforever:matrix.orgdramforever

oh i actually figured it out, this

            configEnv = finalAttrs.finalPackage.overrideAttrs (previousAttrs: {
              nativeBuildInputs =

should be depsBuildBuild

06:32:15
@rosssmyth:matrix.orgrosssmyth

I've been doing some work toward cross-compiling for MSVC. Mainly because I have some software I build at work that I build for Linux and mingw, but MSVC would be preferable for interop with other software we have. Got some basic stuff going.

  1. Create essentially a fetcher for the SDK
  2. Download the SDK and fix it up
  3. Wrap clang-cl
  4. Wrap rustc

Can compile hello world. I've not tested it on anything more complicated yet.
https://github.com/RossSmyth/msvcNix

18:05:20
@lukas.voreck:matrix.studverthi.deLukas(THI) changed their display name from Lukas Voreck to Lukas(THI).22:19:46
19 Jun 2025
@greg:thehellings.comGreg Hellings Hey y'all, cross-compiling pkgsCross.ucrtAarch64.stdenv.cc for Windows on Arm has been broken for about a month. A quick bisect points to commit 4f8431266ce9a84b5c524a310e931681b2d7db5a 04:27:43
@greg:thehellings.comGreg Hellings Seems to make sense, as that change specifically creates a symlink between libunwind.so and libgcc_s.so files, which are notably absent in the ucrtAarch64 target, as it is a purely LLVM environment with no gcc present 04:29:07
@greg:thehellings.comGreg Hellings Nope, looks like the problem is the file paths. Windows keeps its shared libraries under /bin/ with a .dll extension whereas on other platforms they tend to be .so files in /lib/ 04:38:50
@dramforever:matrix.orgdramforeverhttps://github.com/NixOS/nixpkgs/pull/41775707:18:31
@fliegendewurst:matrix.orgFliegendeWurst changed their display name from FliegendeWurst to FliegendeWurst (@GPN23).12:29:29
20 Jun 2025
@greg:thehellings.comGreg Hellingshttps://github.com/NixOS/nixpkgs/pull/41805413:07:56
@thenextusername:matrix.orgthenextusername joined the room.14:15:51
22 Jun 2025
@ss:someonex.netSomeoneSerge (back on matrix) changed their display name from SomeoneSerge (UTC+U[-12,12]) to SomeoneSerge (Ever OOMed by Element).12:13:58

Show newer messages


Back to Room ListRoom Version: 6