!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
24 Oct 2025
@reckenrode:matrix.orgRandy Eckenrode So, somewhat related, if I want to be ready for allowing scopes in by-name, what’s the best approach to use? I’m thinking of a swiftPackages scope. 02:54:16
@emilazy:matrix.orgemilyI think just do whatever you were doing pretty much02:56:36
@emilazy:matrix.orgemilywe are already having to think about how to port the existing scopes02:56:45
@emilazy:matrix.orgemilywhich do some pretty gnarly things02:56:53
@emilazy:matrix.orgemilyif you can try to avoid putting random things that aren't packages in the scope that's nice02:57:07
@emilazy:matrix.orgemily and use makeScopeWithSplicing 02:57:31
@reckenrode:matrix.orgRandy Eckenrode That’s pretty much what I was doing. The plan was to rely on the scope to handle cross, so I just need to provide swiftPackages.stdlib. 03:04:07
@reckenrode:matrix.orgRandy EckenrodeFor example.03:04:12
@reckenrode:matrix.orgRandy Eckenrode So don’t put functions in the scope? Can they be in packages? While I want to move away from swiftpm2nix, I plan to keep it for compatibility. 03:05:21
@emilazy:matrix.orgemilygeneric builder functions are surely something we'll have to handle in some form or another03:06:17
@emilazy:matrix.orgemily and passthru functions surely can't cause any more issues than they already do (you can put 'em in by-name already) 03:06:31
@reckenrode:matrix.orgRandy EckenrodeIt has some boilerplate stuff it exports IIRC.03:06:53
@emilazy:matrix.orgemilyrealistically each scope will need to be manually looked at03:07:09
@emilazy:matrix.orgemilyand the existing ones have pretty gnarly stuff already03:07:22
@emilazy:matrix.orgemilyI wouldn't anticipate major issues unless yo utry to do super magic things03:07:40
@emilazy:matrix.orgemily it's mostly just been a question of how we need to extend by-name and what that mechanism should look like 03:07:59
@samasaur:matrix.orgsamasauri think you may have05:23:09
@samasaur:matrix.orgsamasaur patching this function down to just set(${out_var} "-framework ${framework_name}" PARENT_SCOPE) makes everything build 05:23:51
@samasaur:matrix.orgsamasaurand i'm not sure how to test that all the frameworks work but prismlauncher opens at least05:24:11
@samasaur:matrix.orgsamasaurbut i think this is fine? because all the frameworks should be there from the SDK anyway, right?05:27:37
@samasaur:matrix.orgsamasaurand if they're missing it will still fail at build time, right? just not at configure time05:28:07
@samasaur:matrix.orgsamasaurwill revisit tomorrow05:35:03
@esperlily:matrix.orgEsperLily [she/her] hmm, xcrun from a nix-shell on current master is printing a warning that isn't happening with nixpkgs from a few days ago (warning: unhandled Platform key FamilyDisplayName) 08:08:47
@esperlily:matrix.orgEsperLily [she/her]i can't be 100% positive since i'd have to actually rebuild the whole darwin SDK to be sure, but I think this was caused by https://github.com/NixOS/nixpkgs/pull/44509408:23:07
@esperlily:matrix.orgEsperLily [she/her] looking at my Xcode developer dir, I also see that FamilyDisplayName is found within ./Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/SDKSettings.plist (as the key PlatformFamilyDisplayName) and it's not there in the nixpkgs SDK version, so I'm wondering if maybe that's the difference? 08:30:53
@esperlily:matrix.orgEsperLily [she/her] hmm, i just copied the nixpkgs SDK and edited that file to insert PlatformFamilyDisplayName and it didn't fix it. But editing Platforms/MacOSX.platform/Info.plist to remove FamilyDisplayName does remove the warning 08:34:59
@emilazy:matrix.orgemilyok then maybe look at my CMake patches10:23:57
@emilazy:matrix.orgemilyI don't feel good about doing that to Qt without understanding why10:24:04
@emilazy:matrix.orgemilymy guess is it might actually be an upstream CMake change10:24:20
@emilazy:matrix.orgemilybut if not then it's plausible it's the stuff I did to get rid of the mangling hook for the 4 update10:24:35

Show newer messages


Back to Room ListRoom Version: 6