!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1160 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
17 Oct 2025
@emilazy:matrix.orgemilythat's expected I think17:23:59
@emilazy:matrix.orgemily you can check with otool what's recorded 17:24:04
@emilazy:matrix.orgemilyI don't think the system rejects binaries with newer minimum versions17:24:10
@emilazy:matrix.orgemilyit just affects what's recorded in the binary and also compilation of feature checks etc.17:24:17
@emilazy:matrix.orgemilyare you sure it is actually using the API at runtime?17:24:44
@emilazy:matrix.orgemilyand not getting dead code eliminated or something?17:24:48
@samasaur:matrix.orgsamasaurhttps://github.com/Samasaur1/nixpkgs/tree/push-zxpzuwnvtqko17:25:52
@samasaur:matrix.orgsamasaurhow do I check this?17:30:52
@samasaur:matrix.orgsamasaur

I'm reasonably sure. my test file looks like this:

#include <Spatial/SPAngleFloat.h>
#include <math.h>
#include <stdio.h>

int main() {
  if (@available(macOS 26, *)) {
    float radians = M_PI;
    SPAngleFloat angle = SPAngleFloatMakeWithRadians(radians);
    printf("%f\n", SPAngleFloatGetDegrees(angle));
  } else {
    printf(":(\n");
  }
}

and I'm getting 180.000000 on 15.6.1

17:32:06
@emilazy:matrix.orgemily

otool -l:

Load command 11
      cmd LC_BUILD_VERSION
  cmdsize 32
 platform 1
    minos 11.0
      sdk 26.0
   ntools 1
     tool 3
  version 1220.3
17:32:07
@emilazy:matrix.orgemily (haha, Apple is targeting 11.0 for their shipped ls(1)…) 17:32:27
@emilazy:matrix.orgemilymy guess is that the API was already present at that point but not public, perhaps. or it's a header-only thing17:33:06
@samasaur:matrix.orgsamasaur
Load command 10
      cmd LC_BUILD_VERSION
  cmdsize 32
 platform 1
    minos 26.0
      sdk 26.0
   ntools 1
     tool 3
  version 954.16
17:33:09
@emilazy:matrix.orgemilyyeah, I would just try another API :)17:33:36
@samasaur:matrix.orgsamasauralas17:33:47
@samasaur:matrix.orgsamasaur do you have a better way of finding one than just grepping in /Library/Developer/CommandLineTools/SDKs/MacOSX26.0.sdk/usr/include" for macos(26` 17:34:31
@emilazy:matrix.orgemilynope.17:35:03
@emilazy:matrix.orgemilythat's what I do.17:35:05
@samasaur:matrix.orgsamasaur * do you have a better way of finding one than just grepping in /Library/Developer/CommandLineTools/SDKs/MacOSX26.0.sdk/usr/include for macos(26\ 17:35:08
@samasaur:matrix.orgsamasaurthere's https://marcoeidinger.github.io/appleframeworks/ but I didn't want to figure out how to call one of those new frameworks17:35:13
@emilazy:matrix.orgemilymaybe the Xcode macOS 26 release notes or whatever17:35:16
@emilazy:matrix.orgemilythey announce new highlight APIs there17:35:22
@emilazy:matrix.orgemilythe bigger they are, the less likely it'll just work on 15, I'd say17:35:29
@samasaur:matrix.orgsamasauryeah I figured I was safe with this Spatial stuff because the entire directory appears to be new in the 26.0 SDK17:36:14
@samasaur:matrix.orgsamasaur oh I guess I could diff -r MacOSX15.sdk MacOSX26.sdk 17:36:34
@reckenrode:matrix.orgRandy EckenrodeDid Apple finally release the 26.0 source releases?17:41:54
@samasaur:matrix.orgsamasaurnope17:41:59
@reckenrode:matrix.orgRandy EckenrodeIs the plan to make the SDK source release optional and throw when unavailable?17:48:08
@samasaur:matrix.orgsamasaurI had not thought that far ahead. either something along those lines or making this a draft PR. was mostly seeing if I could figure out getting it to work17:49:13
@samasaur:matrix.orgsamasaurdo NOT do this btw17:51:49

Show newer messages


Back to Room ListRoom Version: 6