18 Jun 2025 |
Tristan Ross | In reply to @rosssmyth:matrix.org 376197 is one I am looking forward too because I tried wrestling pkgsCross in the past and the way the CPU attributes are setup now made it harder than it needed to be Yeah, that PR is delayed because the toolchain attributes PR is needed. | 21:06:04 |
rosssmyth | I work in embedded, so I've found some fun corners of the pkgsCross system that lead to me mainly giving up on using it for now. One is that cmake's targets are not the same as clang's, so for certain triples compiler-rt seems to be built for the wrong target. I think that was the outcome of one afternoon of staring at logs a couple months ago. | 21:12:53 |
Tristan Ross | Yeah, that's one of the use cases that I had thought of for the platform improvements | 21:14:58 |
Tristan Ross | The idea is to be able to manipulate as much as possible. | 21:15:10 |
Tristan Ross | There's obviously combinations which don't work | 21:15:35 |
Tristan Ross | But there's combinations which would work and it would be better than what we can provide currently. | 21:15:58 |
Randy Eckenrode | If the cross situation can get to the point where building stuff with Wine is less painful, that would be great. | 21:59:01 |
Randy Eckenrode | * If the cross situation can get to the point where building Wine (and DLLs for Wine) is less painful, that would be great. | 21:59:44 |
19 Jun 2025 |
| FliegendeWurst (@GPN23) changed their display name from FliegendeWurst to FliegendeWurst (@GPN23). | 12:29:32 |
rosssmyth | So far I've found building with mingwW64 to be pretty easy. I have a Rust DLL I ship to customers I build with Nix. | 15:44:20 |
rosssmyth | * So far I've found building for mingwW64 to be pretty easy. I have a Rust DLL I ship to customers I build with Nix. | 15:44:26 |
rosssmyth | And my setup is basically this https://github.com/RossSmyth/rustNixExample/blob/rustTemplate/flake.nix | 15:45:02 |
20 Jun 2025 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | Not sure if here is the place to ask it, but why don't we set __darwinAllowLocalNetworking = true in darwin stdenv? | 16:08:32 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | This is causing problems for contributors, just because the situation on darwin platform is different from Linux, and people without a machine don't know how to properly fix it. | 16:10:23 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | And it's even undocumented | 16:14:50 |
emily | it's a purity hole | 17:23:53 |
emily | Darwin doesn't have network namespaces, Linux does | 17:23:57 |
emily | in particular you can puncture the sandbox with it somewhat, although the Darwin sandbox is moderately porous to begin with | 17:24:28 |
emily | see e.g. https://github.com/NixOS/nix/pull/11270#issue-2456432178 | 17:25:03 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | In reply to @emilazy:matrix.org see e.g. https://github.com/NixOS/nix/pull/11270#issue-2456432178 That's pretty unfortunate | 17:49:09 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | But what we are mostly doing now is just enabling it for derivations needing it | 17:50:07 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | instead of e.g. skipping related tests | 17:50:37 |
emily | right. well I don't think it's a problem to set when needed | 17:53:44 |
emily | it might not be the end of the world to just allow the networking stuff unconditionally. but conversely I don't think it's that bad to have to add one line for packages that require it either | 17:54:02 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | In reply to @emilazy:matrix.org it might not be the end of the world to just allow the networking stuff unconditionally. but conversely I don't think it's that bad to have to add one line for packages that require it either The problem is, we haven't documented it, and a lot of people just don't know it exists | 17:54:52 |
emily | we should certainly add it to the Nix/Nixpkgs manuals, yeah | 17:55:20 |
emily | there's a lot of Darwin stuff people aren't necessarily expected to know though, that's why we have the @NixOS/darwin-maintainers ping :) | 17:55:46 |
emily | (and he understanding that it's okay to leave stuff broken on Darwin if nobody responds quickly to the ping) | 17:56:00 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | In reply to @emilazy:matrix.org there's a lot of Darwin stuff people aren't necessarily expected to know though, that's why we have the @NixOS/darwin-maintainers ping :) Considering that many people do not have macOS devices, when a change can be built directly on foreign platforms instead of needing some manual attempt to confirm whether it can be built, the impression of contributors will be much better | 17:57:24 |
aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) | Just like we now don't have to set darwin sdks explicitly | 17:57:54 |