!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
17 Oct 2025
@samasaur:matrix.orgsamasaurnot to say that tradeoff isn't worth it for you, but I believe we considered it as the default and decided against it15:29:19
@ecco256:matrix.orgErik Wish we could mount —bind on macOS 15:29:42
@weethet:catgirl.cloudWeetHetI wish we had firmlinks15:30:11
@spewdins:beeper.comspewdinsI wish macOS didn’t have SIP15:31:54
@spewdins:beeper.comspewdins/s15:31:58
@samasaur:matrix.orgsamasaur discussion starts from here 15:32:43
@ihar.hrachyshka:matrix.orgIhar Hrachyshkaso tl;dr for those who need spotlight working - just stick to randy's copy module?15:33:51
@ihar.hrachyshka:matrix.orgIhar Hrachyshka(was getting some rsync permission denied errors with it today even though my kitty was in the list of app management and it wasn't clear how to fix it - which is why I was hoping that maybe latest improvements rendered the module unneeded :(15:35:00
@samasaur:matrix.orgsamasaurfor HM? yes. for nix-darwin, that's what we based the PR on, so you should be good to remove it (though it should ofc keep working)15:47:15
@samasaur:matrix.orgsamasaurif you are getting these errors with nix-darwin (and you tried toggling the switch for kitty and then turning it back on), then it's a bug on our end15:47:52
@samasaur:matrix.orgsamasaurwell actually who knows how the app management DB works. it might be a bug on our end15:48:14
@reckenrode:matrix.orgRandy Eckenrode macOS supports nullfs mounts (the BSD equivalent), but it’s restricted to an Apple-only entitlement. ☹️ 15:52:48
@samasaur:matrix.orgsamasaur fascinating. i'm adding apple-sdk_26 so I'm following emily's process in https://github.com/NixOS/nixpkgs/pull/347862 . everything seemed to be working normally (made a test package requiring an API introduced in 26.0, which built using the Xcode toolchain but not using the default SDK in nixpkgs; packaged the SDK; the test package built with apple-sdk_26), but when I add (darwinMinVersionHook "26.0") to buildInputs the resulting binary runs on my laptop, which is still on macOS 15 17:22:49
@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

Show newer messages


Back to Room ListRoom Version: 6