!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
29 Dec 2025
@emilazy:matrix.orgemilyyeah01:25:06
@emilazy:matrix.orgemily can always do both this and raising FD_SETSIZE 01:25:17
@reckenrode:matrix.orgRandy Eckenrode I got SwiftPM working correctly in a dev shell to build my Advent of Code solutions from 2022 (which were written in Swift). The resulting binary correctly targets macOS 13 per the platforms configuration in Package.swift. 01:27:55
@reckenrode:matrix.orgRandy EckenrodeI guess next is splitting out the stdlib. I’m not sure what else is left other than maybe seeing if I can do some kind of cursed prebuilts thing.01:28:15
@ihar.hrachyshka:matrix.orgIhar Hrachyshkaif I were to go with alloc (which I will), I'd do raising only if I notice perf degradation. (atm it smells like premature optimization)01:28:17
@reckenrode:matrix.orgRandy Eckenrode(And building on Linux.)01:28:18
@emilazy:matrix.orgemilyyeah I expect the syscall overhead is much higher than allocation anyway.01:30:40
@emilazy:matrix.orgemilygiven the nature of the call01:30:51
@emilazy:matrix.orgemily I hope they require a new enough C standard for the sizeof-struct-with-runtime-array-size thing to work. (sizeof (int32_t) * nelems could have padding issues in theory I think.) 01:31:59
@ihar.hrachyshka:matrix.orgIhar Hrachyshkaok I don't know much about it. what would be "new enough C standard"?01:33:08
@ihar.hrachyshka:matrix.orgIhar Hrachyshkait's gnu99 as per meson.build01:34:03
@ihar.hrachyshka:matrix.orgIhar Hrachyshka * it's gnu99 as per meson.build 01:34:08
@emilazy:matrix.orgemilyI believe it's okay in C99+ so should be fine01:34:39
@ihar.hrachyshka:matrix.orgIhar Hrachyshkabesides this select exhaustion issue, I have two more patches related to nixpkgs VMs running on darwin. These are waiting for reviews for quite a while. https://github.com/NixOS/nixpkgs/pull/440579 - keeping VM gcroots alive while VM is running (on Lix for now) fix dns resolution for some vpn scenarios; enabling local dns resolver for linux builder: https://github.com/NixOS/nixpkgs/pull/434893 02:06:41
@flokli:matrix.orgflokli emilycan you bonk https://github.com/NixOS/nixpkgs/pull/474675 for now? 23:15:10
30 Dec 2025
@nadia:nhp.shNadiaso I'm not sure if this is actually a nix-related issue at all, but has anyone had problems with processes in the terminal just kinda hanging up after a while? Specifically it happens with the fish shell from nixpkgs, it simply gets stuck forever during launching it, not even lldb can pause or kill the process06:18:40
@nadia:nhp.shNadiaon macOS 26.206:19:01
@nadia:nhp.shNadiait's kinda the same symptoms as on linux when you get I/O errors that cause processes to become stuck and completely unkillable06:28:02
@nazarewk:matrix.orgkdn How can I get foot.terminfo into darwin? 16:14:48
@nazarewk:matrix.orgkdn

I'm getting a weird error:
/nix/store/yzhl36k6yxfafrvddhqjbwzvmwlyx4iq-stdenv-linux/setup: line 1828: wrapProgram: command not found when building a custom linux-builder on darwin
The file doesn't even have 1828 lines (there are 1818)

Any ideas?

18:58:07
@nazarewk:matrix.orgkdn

The nom output is:

nixos-system-nixos-26.05pre-git-aarch64-linux> building '/nix/store/5bigxazp5irndr1kk3j8nlis6bd3z2mr-nixos-system-nixos-26.05pre-git.drv'
nixos-system-nixos-26.05pre-git-aarch64-linux> /nix/store/yzhl36k6yxfafrvddhqjbwzvmwlyx4iq-stdenv-linux/setup: line 1828: wrapProgram: command not found
19:00:15
@nazarewk:matrix.orgkdn *

The nom output is:

nixos-system-nixos-26.05pre-git-aarch64-linux> building '/nix/store/5bigxazp5irndr1kk3j8nlis6bd3z2mr-nixos-system-nixos-26.05pre-git.drv' on 'ssh-ng://builder@linux-builder'
copying 0 paths
nixos-system-nixos-26.05pre-git-aarch64-linux> building '/nix/store/5bigxazp5irndr1kk3j8nlis6bd3z2mr-nixos-system-nixos-26.05pre-git.drv'
nixos-system-nixos-26.05pre-git-aarch64-linux> /nix/store/yzhl36k6yxfafrvddhqjbwzvmwlyx4iq-stdenv-linux/setup: line 1828: wrapProgram: command not found
19:00:34
@nazarewk:matrix.orgkdndon't really have any idea how to debug it, the error seems to come from some underlying script that i don't know how to find19:25:51
@winter:catgirl.cloudWintercan you share what you’re trying to build?19:30:17
@nazarewk:matrix.orgkdnlet me tag a wip commit and submit then19:32:05
@winter:catgirl.cloudWinteri forget bash’s behavior off the top of my head but the line thing might be a misnomer19:33:44
@winter:catgirl.cloudWintereasier to tell if i can see the expression19:33:53
@nazarewk:matrix.orgkdn this is the change I'm doing, I will maybe revise whether I need that custom module system at all there for the builder (it's nice to set everything up exactly the same way as all my other modules), I don't think anything that is not enabled in my set of modules would do anything funny 19:40:18
@nazarewk:matrix.orgkdnI'll try identify the change thta makes it break tomorrow, gotta run now 19:41:43
@winter:catgirl.cloudWinterwhy are you vendoring the whole linux builder stuff?19:42:50

Show newer messages


Back to Room ListRoom Version: 6