!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1154 Members
“There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org186 Servers

Load older messages


SenderMessageTime
24 Oct 2025
@emilazy:matrix.orgemily we still should avoid having availability headers that are randomly inconsistent between the internal and public SDK though, which is why just doing the #define will work better if we do want __SPI_AVAILABLE across the board 02:15:29
@emilazy:matrix.orgemily no way out of having some custom headers given CoreSymbolication and all 02:15:54
@reckenrode:matrix.orgRandy EckenrodeAnd APFS.framework.02:16:21
@emilazy:matrix.orgemily btw, I don't think I understand the atf infinite recursion thing. why does doing it in the stdenv not work with pkgsStatic? 02:16:31
@reckenrode:matrix.orgRandy EckenrodeI think I’ve done a few others as well. That’s expected.02:16:33
@emilazy:matrix.orgemily because pkgsStatic is cross so it skips the override and then the static apple-sdk infrecs? 02:16:51
@reckenrode:matrix.orgRandy Eckenrode Yeah. ATF needs to be in checkInputs and nativeCheckInputs because it provides a runner and a library you need to link. For pkgsStatic, that library is pkgsStatic.atf, which depends on the SDK, which depends on pkgsStatic.libiconv, which depends on pkgsStatic.atf. 02:18:16
@reckenrode:matrix.orgRandy EckenrodeNative stdenvs can untie that knot with overrides, but cross ones either can’t or don’t.02:18:37
@emilazy:matrix.orgemily perhaps we should propagate the extra packages from the stdenv rather than apple-sdk 02:18:41
@reckenrode:matrix.orgRandy EckenrodeIt wouldn’t matter where it’s propagated.02:19:03
@reckenrode:matrix.orgRandy Eckenrode The static stdenv would depend on pkgsStatic.libiconv, which etc. 02:19:30
@emilazy:matrix.orgemily right, but you can at least stdenv.override { extraBuildInputs = [ ]; } 02:26:09
@emilazy:matrix.orgemilyand I was thinking it'd be easier to get the bootstrap to do the right thing02:26:18
@emilazy:matrix.orgemilyhmm02:27:24
@emilazy:matrix.orgemily pkgs/stdenv/cross/default.nix seems to only add the SDK in the last stage 02:27:28
@samasaur:matrix.orgsamasaurdid you have a particular one in mind? I just looked through them and I didn't see anything that looked like it would cause this problem/solve it for CFNetwork02:28:22
@emilazy:matrix.orgemilywe have some SDK stuff02:28:32
@emilazy:matrix.orgemilythought it might be relevant02:28:36
@emilazy:matrix.orgemilythough I deleted most of that stuff02:28:38
@samasaur:matrix.orgsamasauri'm really baffled by why CFNetwork and Network behave differently02:29:01
@samasaur:matrix.orgsamasaurthey appear to be treated identically by qt, and we don't seem to do any patching for either of those explicitly02:29:51
@samasaur:matrix.orgsamasaurso as I understand it either both should be picked up from the SDK or neither should be02:30:11
@reckenrode:matrix.orgRandy EckenrodeThat would remove the SDK. You’d have to add it back.02:31:05
@emilazy:matrix.orgemilyright02:31:40
@emilazy:matrix.orgemily seems best to just fix the cross stdenv. if only I knew why it was broken 02:31:47
@reckenrode:matrix.orgRandy Eckenrode I think less specific to this example is coming up with a solution to the general problem of conditional arguments. The solution given in the by-name RFC was to add your package to all-packages.nix, but it seems the desire now is not to have packages there? 02:32:19
@reckenrode:matrix.orgRandy EckenrodeThat’s one example. It’s potentially anything that has a recursive dependency that the bootstrap had to break up.02:33:03
@reckenrode:matrix.orgRandy Eckenrode Like in the old source-based SDK how xnu depended on python3 but relied on the bootstrap to override it with python3Minimal to break the infinite recursion. 02:34:15
@emilazy:matrix.orgemilythat shouldn't be an issue for cross though02:38:40
@emilazy:matrix.orgemilysince cross already has a bootstrapped toolchain02:38:44

Show newer messages


Back to Room ListRoom Version: 6