!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

180 Members
56 Servers

Load older messages


SenderMessageTime
20 Jun 2025
@emilazy:matrix.orgemilyit's a purity hole17:23:53
@emilazy:matrix.orgemilyDarwin doesn't have network namespaces, Linux does17:23:57
@emilazy:matrix.orgemilyin particular you can puncture the sandbox with it somewhat, although the Darwin sandbox is moderately porous to begin with17:24:28
@emilazy:matrix.orgemily see e.g. https://github.com/NixOS/nix/pull/11270#issue-2456432178 17:25:03
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (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:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)But what we are mostly doing now is just enabling it for derivations needing it17:50:07
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)instead of e.g. skipping related tests17:50:37
@emilazy:matrix.orgemilyright. well I don't think it's a problem to set when needed17:53:44
@emilazy:matrix.orgemilyit 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 either17:54:02
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (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
@emilazy:matrix.orgemilywe should certainly add it to the Nix/Nixpkgs manuals, yeah17:55:20
@emilazy:matrix.orgemilythere'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
@emilazy:matrix.orgemily(and he understanding that it's okay to leave stuff broken on Darwin if nobody responds quickly to the ping)17:56:00
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (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:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)Just like we now don't have to set darwin sdks explicitly17:57:54
@emilazy:matrix.orgemilythere's always going to be platform differences that make things build on one platform but another17:58:14
@emilazy:matrix.orgemilyI do agree that making things "just work" as much as possible is good, but it trades off against other values17:58:28
@emilazy:matrix.orgemily (and I think Darwin is much closer to that than it used to be – FWIW there's some 500 instances of __darwinAllowLocalNetworking in the tree, which is a lot but not that many compared to how many packages we have to begin with) 17:58:51
@emilazy:matrix.orgemily (you do still have to specify the SDK version explicitly in some cases… and sometimes dependencies should be omitted for Darwin) 17:59:37
@emilazy:matrix.orgemilyit's good when stuf fis portable as much as possible though17:59:44
@emilazy:matrix.orgemily but tbh most packages do not run loopback servers during tests 17:59:52
@emilazy:matrix.orgemilyI haven't thought that much about how much value we get out of needing to make it explicit, but generally I'd say derivations being able to talk over the network is a pretty bad default18:00:23
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)
In reply to @emilazy:matrix.org
I haven't thought that much about how much value we get out of needing to make it explicit, but generally I'd say derivations being able to talk over the network is a pretty bad default
Why don't we disable it for Linux as well so we get some consistency
18:00:52
@emilazy:matrix.orgemilybtw, it is not needed on Hydra at all, since Hydra does not use the sandbox18:01:03
@emilazy:matrix.orgemilyfor better or worse18:01:11
@emilazy:matrix.orgemily(the sandbox is off by default)18:01:28
@emilazy:matrix.orgemilybecause on Linux it is actually isolated, since Linux has network namespaces and builds run in a namespace with their own loopback interface and nothing else18:01:44
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)
In reply to @emilazy:matrix.org
because on Linux it is actually isolated, since Linux has network namespaces and builds run in a namespace with their own loopback interface and nothing else
I know
18:02:08
@emilazy:matrix.orgemilyDarwin sadly lacks that functionality18:02:09
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)But you'd make them know they are doing it wrong, rather than failing silently on some other cases18:02:35

Show newer messages


Back to Room ListRoom Version: 9