!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

576 Members
123 Servers

Load older messages


SenderMessageTime
26 Feb 2026
@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
@dramforever:matrix.orgdramforever oh, i missed that completely and was wondering why you need it in depsBuildBuild 19:38:52
@dramforever:matrix.orgdramforever depsBuildBuild is what's making it select a x86_64-linux windows.pthreads 19:39:40
@dramforever:matrix.orgdramforever(which does not exist)19:39:45
@dramforever:matrix.orgdramforever it working before was the broken state, where depsBuildBuild has failed to select the x86_64-linux one 19:42:51
@dramforever:matrix.orgdramforeveroh wait i probably misunderstood19:46:42
@dramforever:matrix.orgdramforever do you mean you were using pkgsCross.mingwW64.stdenv.mkDerivation? that would do the right thing wrt dependencies 19:47:14
@dramforever:matrix.orgdramforever if you were just adding pkgsCross.mingwW64.stdenv.cc it wouldn't change the fact that you have a native x86_64-linux stdenv 19:47:56
@artturin:matrix.orgArtturinhttps://github.com/CrazyChaoz/backtor/blob/c9552af05f426dc3faff29b4efc6b0100e08699a/flake.nix#L4019:51:41
@artturin:matrix.orgArtturinThis should really be true so you can be sure that you have the right behaviour19:51:55
@dramforever:matrix.orgdramforeveri can't tell if this crane thing is doing the right thing19:53:08
@rosssmyth:matrix.orgrosssmyth If you are using Crane, if you use pkgsCross.mingwW64.callPackage, you do not have to manually specify windows.pthreads 19:54:18
@rosssmyth:matrix.orgrosssmythBecause of a change a really cool person did https://github.com/ipetkov/crane/commit/7cc51a10ddafa9ed1693afdf26d1bffb6ce027a019:55:13
@dramforever:matrix.orgdramforever... i fail to see how19:55:19
@dramforever:matrix.orgdramforeverooooh19:55:42
@rosssmyth:matrix.orgrosssmythIt checks what stdenv is being used19:55:48
@dramforever:matrix.orgdramforeverbecause it's handled in crane19:55:49
@rosssmyth:matrix.orgrosssmyth I want to do this in Nixpkgs for rustPlatform.buildRustPackage but no one seems to be able to agree how to do it 19:56:20
@rosssmyth:matrix.orgrosssmythSo it's just not done atm 19:56:28
@rosssmyth:matrix.orgrosssmythThere is an attempt to do it, but it doesn't work19:56:38

Show newer messages


Back to Room ListRoom Version: 6