| 4 Feb 2025 |
linj | * Element tells me this room has no name. I guess this is the cross compilation room. Could you give me an example of checkInputs? Is it something that is needed when the built package runs tests outside of nix build sandbox? | 02:14:25 |
linj | Another question: package foo runs itself in the checkPhase and it looks up bar from PATH and calls bar. Is bar a checkInputs or nativeCheckInputs? | 02:20:19 |
linj | * 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? | 02:21:34 |
Artturin | @me:linj.tech: checkInputs and nativeCheckInputs work the same as buildInputs and nativeBuildInputs | 02:49:45 |
Artturin | 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 | But it would be nativeBuildInputs | 02:51:20 |
Artturin | * But it would be nativeCheckInputs | 02:51:30 |
Tristan Ross | checkInputs could be something like a library needed to make a test work | 02:59:51 |
linj | I know that. It is just a bit confusing when build = host for cases like foo. | 02:59:59 |
Tristan Ross | Versus nativeCheckInputs could be like a test runner framework that's necessary to run | 03:00:12 |
Tristan Ross | I'd say it really depends on the package and what cross means in this sense | 03:00:33 |
Tristan Ross | Because technically pkgsLLVM is cross | 03:00:43 |
Tristan Ross | But it is still native. | 03:00:51 |
Artturin | In reply to @rosscomputerguy:matrix.org But it is still native. It's build canExecute host cross | 03:01:23 |
linj | but when build != host, you cannot run the link result in checkPhase, right? | 03:01:49 |
Artturin | 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 |
Tristan Ross | Ish, like what Artturin mentioned. Maybe there's a package out there which builds for host but builds tests for build. | 03:02:56 |
linj | Oh, TIL, it is possible that build canExecute host even if build != host | 03:04:16 |
linj | thanks | 03:05:04 |
| Axman6 joined the room. | 05:55:14 |
linj | h0 + t1 in {-1, 0, -1} looks like a typo. I guess it should be h0 + t1 in {-1, 0, 1} | 08:20:19 |
linj | https://nixos.org/manual/nixpkgs/unstable/#ssec-stdenv-dependencies-propagated | 08:20:27 |
| 6 Feb 2025 |
| Jeff changed their profile picture. | 06:08:25 |
| SomeoneSerge (matrix works sometimes) changed their display name from SomeoneSerge (Gand St. Pieters) to SomeoneSerge (UTC+U[-12,12]). | 17:47:55 |
| mindtree joined the room. | 22:20:00 |
mindtree | 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 | Any help appreciated! | 23:24:31 |
Ilan Joselevich (Kranzes) | I only tested this with buildRustCrate/crate2nix (Im the person who made that system type in nixpkgs) | 23:57:07 |
Ilan Joselevich (Kranzes) | You don't need it for buildRustPackags from rustPlatform | 23:57:58 |
Ilan Joselevich (Kranzes) | I believe | 23:58:01 |