!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

565 Members
118 Servers

Load older messages


SenderMessageTime
26 Feb 2026
@k900:0upti.meK900 windows is a general namespace for Windows specific packages 14:25:46
@k900:0upti.meK900 There's no pthreads package at top level because it's normally provided by libc 14:25:54
@crazychaoz:matrix.orgcrazychaoz

obviously, but i am compiling with pkgsCross.mingwW64.stdenv, why do i have to give additional information as to where the windows specific headers should end up at?

i have had issues before with tools that need to get compiled on host&target (eg. protobuf) but here the situation should be clear? i run compilation for windows, with win pthreads, why would i ever want to compile windows.pthreads for non windows targets?

14:32:30
@k900:0upti.meK900Look, that's just how nixpkgs is structured14:34:43
@crazychaoz:matrix.orgcrazychaozack14:38:01
@rosssmyth:matrix.orgrosssmythI would like to fix it, but testing and implementing cross is annoying due to different people telling me different things of what to do and what not to do. 15:42:06
@rosssmyth:matrix.orgrosssmyth* I would like to fix it, but testing and implementing it is annoying due to different people telling me different things of what to do and what not to do. 15:42:13
@artturin:matrix.orgArtturinpthreads should be in buildInputs15:44:00
@artturin:matrix.orgArtturinThe reason it works for you is that you're not using a cross stdenv so strictDeps isn't enabled15:44:19
@artturin:matrix.orgArtturin* The reason nativeBuildInputs works for you is that you're not using a cross stdenv so strictDeps isn't enabled15:44:35
@artturin:matrix.orgArtturin pkgsCross.mingwW64.windows.pthreads you can put this in buildInputs and it won't need pkgsHostTarget 15:47:15
@artturin:matrix.orgArtturin * pkgsCross.mingwW64.windows.pthreads you can put this in buildInputs and it won't need a explciit pkgsHostTarget 15:47:26
@artturin:matrix.orgArtturin * pkgsCross.mingwW64.windows.pthreads you can put this in buildInputs and it won't need a explicit pkgsHostTarget 15:47:38
@aoinoikaz:matrix.orgAoinoikaz joined the room.15:48:41

There are no newer messages yet.


Back to Room ListRoom Version: 6