!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1135 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
9 Nov 2025
@samasaur:matrix.orgsamasaurswift is broken on staging-next :(02:56:45
@samasaur:matrix.orgsamasaurwhich i think is because of it02:56:51
@reckenrode:matrix.orgRandy EckenrodeYes.02:57:10
@samasaur:matrix.orgsamasaurbecause when building the standard library the target is set to 10.9 for some reason02:57:19
@reckenrode:matrix.orgRandy EckenrodeIIRC I didn’t run into that with my Swift work because I forced the deployment target to be the default for nixpkgs.02:58:18
@samasaur:matrix.orgsamasaur what's odd is that the cmake flags are printed before that subproject is built and the last flag is -DSWIFT_DARWIN_DEPLOYMENT_VERSION_OSX=14.0 02:58:51
@reckenrode:matrix.orgRandy EckenrodeIs it failing in Swift or some other component?03:04:43
@samasaur:matrix.orgsamasaurappears to be Swift itself03:05:37
@reckenrode:matrix.orgRandy Eckenrode I also set (lib.cmakeFeature "SWIFT_HOST_TRIPLE" swiftTriple) where swiftTriple = lib.replaceStrings [ "darwin" ] [ "macosx${stdenv.hostPlatform.darwinMinVersion}" ] stdenv.hostPlatform.config; 03:06:47
@reckenrode:matrix.orgRandy Eckenrode * I also set (lib.cmakeFeature "SWIFT_HOST_TRIPLE" swiftTriple) where swiftTriple = lib.replaceStrings [ "darwin" ] [ "macosx${stdenv.hostPlatform.darwinMinVersion}" ] stdenv.hostPlatform.config; 03:07:04
@reckenrode:matrix.orgRandy EckenrodeYou might be able to work around it by setting the flag to suppress the error if that doesn’t work.03:07:50
@samasaur:matrix.orgsamasauryeah I'm pretty sure that suppressing the error would work, but ideally we could get it to target the correct version03:08:41
@samasaur:matrix.orgsamasaurthough I suppose it doesn't matter all that much03:08:47
@reckenrode:matrix.orgRandy EckenrodeSwift is built twice IIRC in the old derivation.03:10:40
@reckenrode:matrix.orgRandy Eckenrode Is it setting SWIFT_DARWIN_DEPLOYMENT_VERSION_OSX both times? 03:10:49
@reckenrode:matrix.orgRandy EckenrodeIn particular for the concurrency backdeploy, which is useless with a 14.0 minimum version.03:11:03
@reckenrode:matrix.orgRandy EckenrodeIt looks like it. I’d try forcing the host triple. If that doesn’t work, then suppress the error for now.03:12:16
@samasaur:matrix.orgsamasauryes, i believe it is setting it for both, but i also think it's failing on the first one03:12:35
@reckenrode:matrix.orgRandy EckenrodeI was building 5.10.1 with this warning as an error, so it should be possible. It’s just been so long I don’t remember whether I did something else to suppress the error.03:13:10
@reckenrode:matrix.orgRandy Eckenrode * 03:13:18
@samasaur:matrix.orgsamasaurI think this should fix the error honestly03:13:29
@samasaur:matrix.orgsamasauram just mid-build at the moment so I'm letting this finish first03:13:40
@samasaur:matrix.orgsamasaurokay this does not work03:43:57
@samasaur:matrix.orgsamasaur trying -Wno-error=unguarded-availability in NIX_CXXFLAGS_COMPILE 04:10:25
@samasaur:matrix.orgsamasaurthat didn't work (though i could have done it worng)04:23:31
@samasaur:matrix.orgsamasaur* that didn't work (though i could have done it wrong)04:23:35
@samasaur:matrix.orgsamasaur regardless I think I found the real root of the issue which is the COMPATIBILITY_MINIMUM_DEPLOYMENT_VERSION_OSX cmake variable, which defaults to 10.9 04:24:25
@samasaur:matrix.orgsamasaurrunning a build where I override that to 14.004:24:39
@samasaur:matrix.orgsamasaurwhich does make the "back" part of the backdeployment less effective04:24:59
@reckenrode:matrix.orgRandy EckenrodeWe don’t support older though. (I wonder why I didn’t have this issue on my branch?)04:56:43

Show newer messages


Back to Room ListRoom Version: 6