!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
22 Nov 2025
@reckenrode:matrix.orgRandy Eckenrodehttps://github.com/NixOS/nixpkgs/pull/463900 is the PR for the Darwin cleanup. It’s draft while x86_64-darwin builds. I’m pretty sure it will, but I should make sure. (I can’t wait until I no longer need to worry about x86_64-darwin.)01:42:41
@reckenrode:matrix.orgRandy Eckenrode

Doesn’t look like it’s doing that for KosmicKrisp and the Apple GLX support.

dr-xr-xr-x 10 root wheel  320 Dec 31  1969 ./
dr-xr-xr-x  5 root wheel  160 Dec 31  1969 ../
-r-xr-xr-x  1 root wheel  19M Dec 31  1969 libgallium-26.0.0-devel.dylib*
-r-xr-xr-x  1 root wheel 591K Dec 31  1969 libGL.1.dylib*
lrwxr-xr-x  1 root wheel   13 Dec 31  1969 libGL.dylib -> libGL.1.dylib*
-r-xr-xr-x  1 root wheel  70K Dec 31  1969 libVkLayer_MESA_anti_lag.dylib*
-r-xr-xr-x  1 root wheel 1.1M Dec 31  1969 libVkLayer_MESA_overlay.dylib*
-r-xr-xr-x  1 root wheel 567K Dec 31  1969 libVkLayer_MESA_screenshot.dylib*
-r-xr-xr-x  1 root wheel 207K Dec 31  1969 libVkLayer_MESA_vram_report_limit.dylib*
-r-xr-xr-x  1 root wheel  12M Dec 31  1969 libvulkan_kosmickrisp.dylib*
02:36:41
@stumik:matrix.orgstumik joined the room.17:53:17
@stumik:matrix.orgstumikhello17:59:22
23 Nov 2025
@reckenrode:matrix.orgRandy EckenrodeIf anyone is interested in trying KosmicKrisp, my branch is https://github.com/reckenrode/nixpkgs/tree/kosmickrisp.00:54:15
@reckenrode:matrix.orgRandy EckenrodeI’ll be updated the Mesa checkout from time to time.00:54:24
@reckenrode:matrix.orgRandy EckenrodeI rebased it on master to make it suck less if you want to build it..00:57:45
@reckenrode:matrix.orgRandy Eckenrode * 00:57:50
@bake.monorail:matrix.orgbake.monorail Do you know if there's a portable way to distribute software through nix on macOS without root?
I'm thinking something like 1) Linux's user namespaces or 2) or using /tmp/nix/store as /nix/store.
AFAIU 1) is not viable while 2) would mean that any user of the machine can tamper with the software, given that I think /tmp is shared between users.
Ideas?
10:40:22
@bake.monorail:matrix.orgbake.monorailAh! I can just use /Applications/MyApp.app/nix/store as /nix/store!11:32:53
@niklaskorz:matrix.orgniklaskorzthe metal shader compiler has been moved from Xcode 26 into a separate package but it's still not redistributable, meh11:48:31
@niklaskorz:matrix.orgniklaskorzI actually made a thing that does that for you11:50:05
@niklaskorz:matrix.orgniklaskorzhttps://codeberg.org/niklaskorz/nix-bundle-darwin11:50:11
@reckenrode:matrix.orgRandy EckenrodeIs the package still hidden behind a developer account?11:51:32
@niklaskorz:matrix.orgniklaskorzI might just give that a try with Tiny Glade (I hope it lets me override the Vulkan ICD)11:51:36
@niklaskorz:matrix.orgniklaskorzeven better, you can only download it through Xcode (might be interesting to test if the URL it accesses is actually unauthenticated)11:52:05
@niklaskorz:matrix.orgniklaskorz xcodebuild -downloadComponent MetalToolchain 11:52:18
@niklaskorz:matrix.orgniklaskorzonly the Windows version can be downloaded from the web portal, but that does require a developer account11:52:55
@bake.monorail:matrix.orgbake.monorailAh, I thought that was doing something different since it says "Unrestricted app location – nix-bundle-macos requires apps to be in /Applications/".11:55:34
@niklaskorz:matrix.orgniklaskorzwell, it does patch all binaries to use rpath11:55:50
@bake.monorail:matrix.orgbake.monorailAh so makes all the binaries "portable"? Like using $ORIGIN on linux, right?11:56:42
@niklaskorz:matrix.orgniklaskorzyup, but the portability is currently restricted to only supporting dynamic libraries in the nix store11:56:56
@niklaskorz:matrix.orgniklaskorzthere is an issue to extend that to arbitrary nix store files11:57:06
@niklaskorz:matrix.orgniklaskorzhttps://codeberg.org/niklaskorz/nix-bundle-darwin/issues/111:57:13
@bake.monorail:matrix.orgbake.monorailI'd avoid run-time hacks tbh11:57:28
@niklaskorz:matrix.orgniklaskorzI'd make it opt in11:57:41
@niklaskorz:matrix.orgniklaskorzbut also it's seldom needed on macOS11:57:46
@bake.monorail:matrix.orgbake.monorailI'm thinking having a nix store in /Applications/MyApp.app is rather acceptable.11:57:47
@niklaskorz:matrix.orgniklaskorzapps are supposed to access app-bundle files using the OS APIs11:57:59
@niklaskorz:matrix.orgniklaskorznot by directly accessing file paths11:58:04

Show newer messages


Back to Room ListRoom Version: 6