!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
24 Oct 2025
@reckenrode:matrix.orgRandy EckenrodeIf we link against it at all.02:06:32
@reckenrode:matrix.orgRandy EckenrodeYou’re right if we’re actually building and consuming something with private APIs, we want to remove the annotations to make sure that works correctly for consumers (including the build itself), but that’s not the case here. The dyld source release is pretty nasty, so I try to build as little as possible to get the tools I want out of it.02:08:50
@emilazy:matrix.orgemilyfair enough02:09:38
@emilazy:matrix.orgemily maybe just doing a #define __SPI_AVAILABLE API_AVAILABLE etc. is the way to go for the internal SDK then 02:10:03
@emilazy:matrix.orgemilyat worst we'll have to patch it out in some places02:10:09
@reckenrode:matrix.orgRandy EckenrodeMaybe it sucks less if we can use their Xcode project. We still need to get a Swift Build that can build something non-trivial.02:10:26
@reckenrode:matrix.orgRandy EckenrodeAs far as patching things, my ideal is building a source release without having to do anything to get it to build.02:11:26
@emilazy:matrix.orgemilywell, if it's yelling at you about missing availability checks for a symbol defined in the same source release…02:13:11
@emilazy:matrix.orgemilythen there is no choice, something needs adjusting.02:13:25
@reckenrode:matrix.orgRandy EckenrodeThat’s something that can be tackled when the time comes.02:14:14
@reckenrode:matrix.orgRandy EckenrodeOne thing I would like to do with this is enable the tests. There are actual tests in many of these source releases, but I’m not willing to rig them up to Meson. I did libiconv because I wanted to make sure things were actually working correctly.02:14:44
@emilazy:matrix.orgemilyhence "at worst"02:15:00
@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

Show newer messages


Back to Room ListRoom Version: 6