!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

576 Members
128 Servers

Load older messages


SenderMessageTime
4 Feb 2025
@artturin:matrix.orgArtturin
In reply to @me:linj.tech
Another question: package foo runs itself in its checkPhase. During the checkPhase of foo, it looks up bar from PATH and calls bar. Is bar a checkInputs or nativeCheckInputs of foo?
The test wouldn't work/run when cross compiling to a platform which build can't exec
02:51:13
@artturin:matrix.orgArtturinBut it would be nativeBuildInputs 02:51:20
@artturin:matrix.orgArtturin* But it would be nativeCheckInputs 02:51:30
@rosscomputerguy:matrix.orgTristan Ross checkInputs could be something like a library needed to make a test work 02:59:51
@me:linj.techlinj I know that. It is just a bit confusing when build = host for cases like foo. 02:59:59
@rosscomputerguy:matrix.orgTristan Ross Versus nativeCheckInputs could be like a test runner framework that's necessary to run 03:00:12
@rosscomputerguy:matrix.orgTristan RossI'd say it really depends on the package and what cross means in this sense03:00:33
@rosscomputerguy:matrix.orgTristan Ross Because technically pkgsLLVM is cross 03:00:43
@rosscomputerguy:matrix.orgTristan RossBut it is still native.03:00:51
@artturin:matrix.orgArtturin
In reply to @rosscomputerguy:matrix.org
But it is still native.
It's build canExecute host cross
03:01:23
@me:linj.techlinj but when build != host, you cannot run the link result in checkPhase, right? 03:01:49
@artturin:matrix.orgArtturin
In reply to @me:linj.tech
but when build != host, you cannot run the link result in checkPhase, right?
You can if build canExecute host
03:02:10
@rosscomputerguy:matrix.orgTristan RossIsh, like what Artturin mentioned. Maybe there's a package out there which builds for host but builds tests for build.03:02:56
@me:linj.techlinjOh, TIL, it is possible that build canExecute host even if build != host03:04:16
@me:linj.techlinjthanks03:05:04
@axman6:matrix.orgAxman6 joined the room.05:55:14
@me:linj.techlinj h0 + t1 in {-1, 0, -1} looks like a typo. I guess it should be h0 + t1 in {-1, 0, 1} 08:20:19
@me:linj.techlinjhttps://nixos.org/manual/nixpkgs/unstable/#ssec-stdenv-dependencies-propagated08:20:27
6 Feb 2025
@jeff:ocjtech.usJeff changed their profile picture.06:08:25
@ss:someonex.netSomeoneSerge (matrix works sometimes) changed their display name from SomeoneSerge (Gand St. Pieters) to SomeoneSerge (UTC+U[-12,12]).17:47:55
@mindtree:matrix.orgmindtree joined the room.22:20:00
@mindtree:matrix.orgmindtree Hey peeps, I'm running into an issue building a rust package derivation for wasm32-unknown-none - I opened a forum post here: https://discourse.nixos.org/t/building-a-rust-package-derivation-using-buildrustpackage-for-wasm32-unknown-unknown 23:24:29
@mindtree:matrix.orgmindtreeAny help appreciated!23:24:31
@kranzes:matrix.org@kranzes:matrix.orgI only tested this with buildRustCrate/crate2nix (Im the person who made that system type in nixpkgs)23:57:07
@kranzes:matrix.org@kranzes:matrix.orgYou don't need it for buildRustPackags from rustPlatform23:57:58
@kranzes:matrix.org@kranzes:matrix.org I believe 23:58:01
@kranzes:matrix.org@kranzes:matrix.orgI think you just need to set an option to append the --target flag23:58:32
@kranzes:matrix.org@kranzes:matrix.org Because we include that wasm32 target in the rustc by default 23:59:05
@kranzes:matrix.org@kranzes:matrix.orgBecause it doesn't require any extra deps23:59:17
7 Feb 2025
@kranzes:matrix.org@kranzes:matrix.org * 00:00:00

Show newer messages


Back to Room ListRoom Version: 6