!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

188 Members
59 Servers

Load older messages


SenderMessageTime
20 Jun 2025
@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
@emilazy:matrix.orgemilyit's not really silent, is it? that's why we have CI/ofborg18:11:22
@emilazy:matrix.orgemilythere's no way to know whether something will build on a platform before something actually attempts the build18:11:37
@Ericson2314:matrix.orgJohn Ericsonhttps://pad.lassul.us/zvvXlsRCRVeXU48WWaCpDg22:35:16
@Ericson2314:matrix.orgJohn EricsonWe on the SC are thinking about this as a possible project to organize and fund on the foundation level22:35:51
@Ericson2314:matrix.orgJohn Ericsonwere curious what the Stdenv Team thinks about this22:36:08
@Ericson2314:matrix.orgJohn Ericson CC tomberek 22:36:11
@Ericson2314:matrix.orgJohn Ericsonto be clear, at this point, we're thinking more about the first step of a relocatable store22:36:42
@emilazy:matrix.orgemilyit was discussed here recently :)22:41:02
@emilazy:matrix.orgemilyhere22:41:16
@emilazy:matrix.orgemilyit's something I've thought about before, there are some tricky issues I outlined, I expect somewhat invasive patching across the tree would be necessary, but the initial hurdles are more writing loader code etc.22:41:52
@emilazy:matrix.orgemilyI think it would be feasible but hard (and some packages may never work)22:42:19
@emilazy:matrix.orgemily I see this came up as DT_INTERP in the doc. I think you can just solve the problem by avoiding the kernel's code for it as I outlined earlier. 22:43:02
@emilazy:matrix.orgemily IIRC #!/usr/bin/env -S is not portable wrt macOS so may not be a good solution for shebangs. 22:43:44
@emilazy:matrix.orgemilymight be workaroundable.22:43:58
@Ericson2314:matrix.orgJohn Ericsonoh my bad22:44:08

Show newer messages


Back to Room ListRoom Version: 9