!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.org187 Servers

Load older messages


SenderMessageTime
25 Oct 2025
@samasaur:matrix.orgsamasaurbuild successful 🎉17:51:31
@samasaur:matrix.orgsamasaurhttps://github.com/NixOS/nixpkgs/pull/45559217:51:33
@emilazy:matrix.orgemily K900: (we need a freeze exemption from the RMs to merge that) 18:08:09
@emilazy:matrix.orgemily(though I support it)18:08:14
@k900:0upti.meK900Uhh18:08:38
@k900:0upti.meK900No we don't?18:08:44
@k900:0upti.meK900 I guess technically this could be considered breaking behavior 18:08:54
@k900:0upti.meK900But come on18:08:57
@emilazy:matrix.orgemilyit's a breaking change when there's both a framework and a library with the same name18:09:37
@emilazy:matrix.orgemilywhich is exactly what Qt is unhappy about18:09:42
@emilazy:matrix.orgemily but I suppose there may not be many other examples than libnetwork/Network 18:10:16
@emilazy:matrix.orgemily I'm not totally confident this isn't going to blow some things up on staging though 18:18:07
@emilazy:matrix.orgemilybut hopefully it will be manageable if it does18:18:20
@samasaur:matrix.orgsamasaur out of the list that qt uses (AppKit, CFNetwork, AssetsLibrary, Photos, AudioToolbox, ApplicationServices, Carbon, CoreFoundation, CoreServices, CoreGraphics, CoreText, CoreVideo, CryptoTok enKit, DiskArbitration, Foundation, IOBluetooth, IOKit, IOSurface, ImageIO, Metal, MobileCoreServices, QuartzCore, Security, SystemConfiguration, UIKit, CoreL ocation, CoreMotion, WatchKit, GameController, CoreBluetooth, AVFoundation, Photos, Contacts, EventKit, HealthKit, UniformTypeIdentifiers, Network, OpenGL), Network was the only example of a conflict 18:19:54
@samasaur:matrix.orgsamasaur so i think it's only likely to cause problems if anything wants libnetwork.tbd or some third-party conflicting name 18:20:25
@samasaur:matrix.orgsamasaur and it should be fixable with -DCMAKE_FIND_FRAMEWORK=LAST in cmakeFlags 18:20:47
@emilazy:matrix.orgemily I wonder what libnetwork.tbd is for 18:21:41
@samasaur:matrix.orgsamasaurbut yeah it is a breaking change. hopefully just theoretically and not in practice18:22:06
@samasaur:matrix.orgsamasaur
--- !tapi-tbd
tbd-version:     4
targets:         [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, 
                   arm64e-macos, arm64e-maccatalyst ]
install-name:    '/usr/lib/libnetwork.dylib'
reexported-libraries:
  - targets:         [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, 
                       arm64e-macos, arm64e-maccatalyst ]
    libraries:       [ '/System/Library/Frameworks/Network.framework/Versions/A/Network' ]
...
18:22:58
@samasaur:matrix.orgsamasaur i don't really know how to read these but it looks like it just reexports Network.framework? 18:23:14
@emilazy:matrix.orgemily

Randy Eckenrode: this code from booter.nix seems suspicious now:

  # This is a hack for resolving cross-compiled compilers' run-time
  # deps. (That is, compilers that are themselves cross-compiled, as
  # opposed to used to cross-compile packages.)
  postStage = buildPackages: {
    __raw = true;
    stdenv.cc =
      if buildPackages.stdenv.hasCC then
        if
          buildPackages.stdenv.cc.isClang or false
        # buildPackages.clang checks targetPackages.stdenv.cc (i. e. this
        # attribute) to get a sense of the its set's default compiler and
        # chooses between libc++ and libstdc++ based on that. If we hit this
        # code here, we'll cause an infinite recursion. Since a set with
        # clang as its default compiler always means libc++, we can infer this
        # decision statically.
        then
          buildPackages.pkgsBuildTarget.llvmPackages.libcxxClang
        else
          buildPackages.gcc
      else
        # This will blow up if anything uses it, but that's OK. The `if
        # buildPackages.stdenv.cc.isClang then ... else ...` would blow up
        # everything, so we make sure to avoid that.
        buildPackages.stdenv.cc;
  };
19:32:00
@emilazy:matrix.orgemilyhmm19:32:26
@emilazy:matrix.orgemily

but I guess it's only for

        else if (targetPackages.stdenv or stdenv).cc.isGNU then
          self.libstdcxxClang
        else
          self.libcxxClang;
19:32:29
@emilazy:matrix.orgemilyso it's fine19:32:34
@samasaur:matrix.orgsamasaurooh https://www.swift.org/blog/nightly-swift-sdk-for-android/20:05:34
@samasaur:matrix.orgsamasaurnot really relevant in a nixpkgs context afaik but interesting20:05:44
@reckenrode:matrix.orgRandy EckenrodeMaybe for cross to Android?20:56:29
@samasaur:matrix.orgsamasaurmm, yeah, i suppose so. i know very little about nix targeting mobile platforms21:25:08
@reckenrode:matrix.orgRandy EckenrodeI think it’s a thing, but you have to jump through some hoops to install the Android SDK.22:48:40
@emilazy:matrix.orgemilyI believe we have the NDK just packaged22:59:23

Show newer messages


Back to Room ListRoom Version: 6