!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
15 Apr 2026
@reckenrode:matrix.orgRandy EckenrodeI tried updating ld64, but it’s still failing, so the issue is in libtapi. Lovely.01:48:28
@reckenrode:matrix.orgRandy EckenrodeI linked ld64 against libtapi from Xcode. It works. The fix has to be in libtapi. This sucks.02:11:12
@reckenrode:matrix.orgRandy EckenrodeWhy did Apple stop releasing libtapi source?02:11:24
@viraptor:tchncs.deviraptorSomeone seems to be maintaining a fork https://github.com/tpoechtrager/apple-libtapi - not ideal, but maybe that's enough?03:21:04
@reckenrode:matrix.orgRandy EckenrodeWe have a fork that links against LLVM in nixpkgs instead of yet another instance of Apple’s fork. I might be able to cherry-pick the patch.03:23:51
@esperlily:matrix.orgEsperLily [she/her]can i get someone to approve my PR that fixes MacVim? https://github.com/NixOS/nixpkgs/pull/50684404:00:35
@axel_w:matrix.orgaxwhttps://github.com/Wawona/Wawona/ there is now a successor to the owl compositor09:01:42
@axel_w:matrix.orgaxw* https://github.com/Wawona/Wawona/ there is now a successor to the owl compositor this apparently works on iOS too.09:47:51
@axel_w:matrix.orgaxw* https://github.com/Wawona/Wawona/ there is now a successor to the owl compositor this apparently works on iOS/Android too.09:48:05
@bestlem:matrix.orgbestlem eveeifyeve: The issue is that Homebrew itself does not understand multi-user setups. All homebrew setup on one machine belongs to one user - on a multi-user machine it might be work creating a user homebrew for just homebrew. 14:38:55
@reckenrode:matrix.orgRandy Eckenrodehttps://github.com/NixOS/nixpkgs/pull/506470#issuecomment-425290463116:51:17
@reckenrode:matrix.orgRandy Eckenrode😕16:51:25
@reckenrode:matrix.orgRandy EckenrodeI'm not able to reproduce the failure either. I hope it’s just something like the channel hasn’t advanced yet on Darwin.17:17:39
@nasso:matrix.orgnasso i keep getting Killed: 9 immediately after running a specific version of ffmpeg :(
e.g. /nix/store/6a5nr567sb4a36lisa6gydpp3bfij1vv-ffmpeg-8.0-bin/bin/ffmpeg -version IMMEDIATELY gets killed, but /nix/store/nsrc95cdywj31amg8pz6ncbsn9y5a0a6-ffmpeg-8.0.1-bin/bin/ffmpeg -version works fine

and... codesign -vv says the first one isn't valid, but the second one is....

and yet, even after doing codesign --sign - --force --preserve-metadata=entitlements,requirements,flags,runtime on the first one, it still gets killed...

it looks like https://github.com/NixOS/nixpkgs/issues/208951, but all this is telling me is "macOS is weird sometimes and nobody knows why"

am i the only one getting this? is there any workaround? i tried nix store repair, doesn't work
23:13:05
@nasso:matrix.orgnassonow im just scared this can happen to any binary ever23:13:23
@viraptor:tchncs.deviraptorIt can potentially. If you scroll up a few days, there's been a chat about it23:54:16
16 Apr 2026
@reckenrode:matrix.orgRandy Eckenrode
$ DEVELOPER_DIR=$DEVELOPER_DIR_26 SDKROOT=$SDKROOT_26 clang test.c -o test --ld-path=$PWD/src/ld/ld
$ ./test
Hello, arm64e
01:40:12
@reckenrode:matrix.orgRandy EckenrodeYay.01:40:14
@xored:xored.lolxoredanyone familiar with flake-parts, i need to expose a package (output of pkgs.writeShellApplication) only on macos on my flake, is there an easy way of doing this with flake parts? Also, the "normal" way of flake .packages.aarch64-darwin is not working inside of a flake-parts module https://termbin.com/iohy02:22:11
@antifuchs:asf.computerantifuchs
In reply to @xored:xored.lol
anyone familiar with flake-parts, i need to expose a package (output of pkgs.writeShellApplication) only on macos on my flake, is there an easy way of doing this with flake parts? Also, the "normal" way of flake .packages.aarch64-darwin is not working inside of a flake-parts module https://termbin.com/iohy
Might just set meta.platforms to darwin, that way the package won’t build elsewhere; not great if you want perfect flake metadata but it’ll do the trick
02:41:45
@reckenrode:matrix.orgRandy Eckenrodehttps://github.com/NixOS/nixpkgs/pull/510469 updates ld64 and fixes the 26.4 SDK issue.02:48:35
@reckenrode:matrix.orgRandy EckenrodeAlso incorporates the duplicate RPATH patch.02:48:44
@esperlily:matrix.orgEsperLily [she/her]it would be really nice to get https://github.com/NixOS/nixpkgs/pull/506844 reviewed so macvim stops being broken. i just rebased/updated it now that my other vim PR has been merged09:14:40
@esperlily:matrix.orgEsperLily [she/her] i haven't used flake-parts myself. looking at it right now, it has a whole perSystem thing and it looks like you're supposed to do something like perSystem = { config, pkgs, ... }: { packages.foo = pkgs.callPackage ./foo.nix {}; }? my inclination would be to figure out how you look up the current system (is it just pkgs.stdenv.hostPlatform.system or is there a better way to check, such as is it available just as an argument here?) and to then just conditionally expose a packages.aerospace-focus-fzf package depending on whether that system is darwin. something like perSystem = { lib, config, pkgs, ... }: { packages.${lib.optionalDrvAttr pkgs.stdenv.hostPlatform.isDarwin "aerospace-focus-fzf"} = aerospace-focus-fzf; } 09:26:49
@reckenrode:matrix.orgRandy EckenrodeI remember the previous discussion about hardening flags, so LGTM. I approved and added it to the merge queue.10:42:28
@xored:xored.lolxored I tried this with mkIf and some part of flake-parts was referencing the missing platform, I’m not sure what optionalDrv… does but I’ll try later 12:25:06
@reckenrode:matrix.orgRandy Eckenrode I second the suggestion to set meta.platforms to lib.platforms.darwin. That flakes allow packages to vary per system feels like a footgun. You’ll get a worse error message on unsupported platforms (i.e., Nix will complain about a missing attribute instead of telling you the platform is unsupported), and it adds complexity to the flake definition. 13:15:08
@reckenrode:matrix.orgRandy EckenrodeI can understand the motivation (avoiding the need to eval the package to determine supported platforms), but it makes the UX worse.13:18:05
@xored:xored.lolxoredthe problem is I have more than one package that has this issue, e.g the arrs don't build on darwin at this point, so I need to force them on linux only, i've been experimenting with patching pkgs-by-name-for-flake-parts (which handles the linux ones), but I'd need to need how to have it behave properly to begin with17:36:53
@xored:xored.lolxoredand I have meta.badPlatforms on the arrs btw, nix screams on refusing to evaluate17:37:34

Show newer messages


Back to Room ListRoom Version: 6