!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

532 Members
109 Servers

Load older messages


SenderMessageTime
2 Oct 2025
@spikespaz:envs.netspikespaz The goal is to get the build working without rust-bin for now 21:35:50
@rosssmyth:matrix.orgrosssmyth Also you should be doing pkgsCross.mingw32.makeRustPlatform 21:35:57
@spikespaz:envs.netspikespaz and the rust-stable comes from the host overlays rust-bin, not pkgsCross.mingw32.rust-bin? 21:37:19
@spikespaz:envs.netspikespaz either way, again, not using rust-bin yet, that rustPlatform is from nixpkgs, not an override 21:37:43
@rosssmyth:matrix.orgrosssmythI just use the host cause it shouldn't make a difference since it's not wrapped21:37:52
@spikespaz:envs.netspikespaz Whether I do or don't use rust-bin makes no difference for the missing natives for std in the error above 21:38:29
@rosssmyth:matrix.orgrosssmythYou don't have to compile std from rust-bin so yeah21:39:06
@rosssmyth:matrix.orgrosssmythYou'll also have to manually provide pthreads most likely 21:39:36
@rosssmyth:matrix.orgrosssmythCause for some reason rustc doesn't find it without some help21:39:51
@spikespaz:envs.netspikespaz Package ‘mingw_w64-pthreads-13.0.0’ in /nix/store/..windows/mingw-w64/headers.nix:35 is not available on the requested hostPlatform: 21:41:32
@rosssmyth:matrix.orgrosssmythWhat are you building on?21:42:26
@spikespaz:envs.netspikespazx86_64-linux21:43:08
@rosssmyth:matrix.orgrosssmythWorks fine for me. How are you getting pthreads? 21:44:05
@spikespaz:envs.netspikespazpassing windows.pthreads to buildInputs21:47:49
5 Oct 2025
@ashleyghooper:matrix.orgAsh changed their display name from ashleyghooper to Ash.06:27:47
@hoshinoaya:matrix.orghoshinoaya joined the room.17:56:02
6 Oct 2025
@vog:matrix.orgvog joined the room.13:26:17
7 Oct 2025
@alexfmpe:matrix.orgalexfmpeok I give, what is going on here01:48:37
@alexfmpe:matrix.orgalexfmpe
nix-repl> hello.doCheck         
true

nix-repl> pkgsCross.gnu64.hello.doCheck
true

nix-repl> pkgsCross.aarch64-multiplatform.hello.doCheck
false
01:48:47
@alexfmpe:matrix.orgalexfmpeI'm on x86_64-linux and I confirmed hello and pkgsCross.gnu64.hello have the same hash so that part's not surprising01:49:31
@alexfmpe:matrix.orgalexfmpebut why does every actual-cross turn off doCheck01:49:39
@artturin:matrix.orgArtturin
In reply to @alexfmpe:matrix.org
but why does every actual-cross turn off doCheck
mkDerivation has a canExecute conditional
01:50:12
@artturin:matrix.orgArtturinCheck the file01:50:17
@colin:uninsane.orgColinhttps://github.com/NixOS/nixpkgs/blob/09c221b2f0726da85b124efb60a1d123971dfa08/pkgs/stdenv/generic/make-derivation.nix#L39401:50:18
@colin:uninsane.orgColin still waiting on that TODO on the line above 🤣 01:50:40
@alexfmpe:matrix.orgalexfmpehuuuuh01:50:41
@alexfmpe:matrix.orgalexfmpeok I'm running into this in the context of running cross tests in haskell01:51:28
@alexfmpe:matrix.orgalexfmpeand I think this canExecute can be generalized to also accept emulatorAvailable01:51:58
@alexfmpe:matrix.orgalexfmpeI'm already using the later to execute screwed up template haskell on the host01:52:28
@alexfmpe:matrix.orgalexfmpeor rather01:53:39

Show newer messages


Back to Room ListRoom Version: 6