!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
18 Dec 2025
@sarahec:matrix.orgSarah ClarkPeople question: my Darwin PRs get merged the slowest. Is there anybody I should include in the review list?18:33:36
@sarahec:matrix.orgSarah Clark(I'm focusing on Darwin fixes)18:34:07
@sarahec:matrix.orgSarah Clark And a tech question: what's the best way to mark a package as broken on xx86_64-darwin? I'd use badPlatforms but recent PRs have been edited to use an inspect clause. 18:43:30
@sarahec:matrix.orgSarah Clark * And a tech question: what's the best way to mark a package as broken on x86_64-darwin? I'd use badPlatforms but recent PRs have been edited to use an inspect clause. 18:44:21
@toonn:matrix.orgtoonn There's a lot fewer Darwin maintainers with commit bit so I'm afraid it's unavoidable. 18:50:07
@sarahec:matrix.orgSarah Clark sigh yeah. And I've seen several committers say they don't care about Darwin. 18:52:38
@toonn:matrix.orgtoonn Not sure what an inspect clause is. I usually see branching on the platform, you could use that to set meta.broken. badPlatforms is semantically a bit different, it means "known not to build". Temporarily broken is not the same as not able to be built. 18:56:07
@reckenrode:matrix.orgRandy Eckenrode Probably something like lib.inspect.platforms.isDarwin or something like that. 18:56:56
@reckenrode:matrix.orgRandy EckenrodeYou’d combine whatever the right one for Darwin is plus the one for x86_64z18:57:26
@reckenrode:matrix.orgRandy Eckenrode * 18:57:34
@ihar.hrachyshka:matrix.orgIhar HrachyshkaKinda convoluted. What does it buy - guarding against string typos?18:58:05
@sarahec:matrix.orgSarah Clarkyes, that. I decided to drag out my Intel MBP and disable the failing tests instead.19:57:04
19 Dec 2025
@nazarewk:matrix.orgkdn

emily: this is my build env info, I failed to build aiohttp python package due to too many open files, unless I added NIX_BUILD_CORES=2:

kdn@oams ~> TERM=xterm ssh anji
Last login: Fri Dec 19 14:50:23 2025 from 100.79.80.79
kdn@anji:~/ > nom build 'nixpkgs#tests.build-environment-info'
this derivation will be built:
  /nix/store/qrz6qkidl71gmf19abzah4a3vvdx20gx-build-environment-info.drv
build-environment-info> building '/nix/store/qrz6qkidl71gmf19abzah4a3vvdx20gx-build-environment-info.drv'
build-environment-info> :: uname -a
build-environment-info> Darwin anji 25.0.0 Darwin Kernel Version 25.0.0: Mon Aug 25 21:17:53 PDT 2025; root:xnu-12377.1.9~3/RELEASE_ARM64_T8112 arm64 arm Darwin
build-environment-info> :: env SYSTEM_VERSION_COMPAT=0 plutil -p /System/Library/CoreServices/SystemVersion.plist
build-environment-info> {
build-environment-info> 	BuildID = "6E524054-8D44-11F0-A95E-B45191F12EA9";
build-environment-info> 	ProductBuildVersion = 25A354;
build-environment-info> 	ProductCopyright = "1983-2025 Apple Inc.";
build-environment-info> 	ProductName = macOS;
build-environment-info> 	ProductUserVisibleVersion = "26.0";
build-environment-info> 	ProductVersion = "26.0";
build-environment-info> 	iOSSupportVersion = "26.0";
build-environment-info> }
build-environment-info> :: id
build-environment-info> uid=351(_nixbld1) gid=350(nixbld) groups=350(nixbld)
build-environment-info> :: getent passwd _nixbld1
build-environment-info> _nixbld1:********:351:350:Nix build user 1:/var/empty:/sbin/nologin
build-environment-info> :: ulimit -a
build-environment-info> core file size              (blocks, -c) 0
build-environment-info> data seg size               (kbytes, -d) unlimited
build-environment-info> file size                   (blocks, -f) unlimited
build-environment-info> max locked memory           (kbytes, -l) unlimited
build-environment-info> max memory size             (kbytes, -m) unlimited
build-environment-info> open files                          (-n) 1048576
build-environment-info> pipe size                (512 bytes, -p) 1
build-environment-info> stack size                  (kbytes, -s) 65520
build-environment-info> cpu time                   (seconds, -t) unlimited
build-environment-info> max user processes                  (-u) 2666
build-environment-info> virtual memory              (kbytes, -v) unlimited
build-environment-info> :: exit 1
13:52:13
@emilazy:matrix.orgemilyhow many cores do you have?14:03:09
@nazarewk:matrix.orgkdnnot sure, it's Mac Mini M2, probably 1214:03:36
@emilazy:matrix.orgemilyalso what Nix are you using?14:03:54
@nazarewk:matrix.orgkdn nix (Lix, like Nix) 2.93.3 14:04:14
@emilazy:matrix.orgemily thanks. can you cat /Library/LaunchDaemons/org.nixos.nix-daemon.plist 14:04:43
@nazarewk:matrix.orgkdn
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>EnvironmentVariables</key>
	<dict>
		<key>NIX_SSL_CERT_FILE</key>
		<string>/etc/ssl/certs/ca-certificates.crt</string>
		<key>OBJC_DISABLE_INITIALIZE_FORK_SAFETY</key>
		<string>YES</string>
	</dict>
	<key>KeepAlive</key>
	<true/>
	<key>Label</key>
	<string>org.nixos.nix-daemon</string>
	<key>LowPriorityIO</key>
	<false/>
	<key>ProcessType</key>
	<string>Standard</string>
	<key>ProgramArguments</key>
	<array>
		<string>/bin/sh</string>
		<string>-c</string>
		<string>/bin/wait4path /nix/store &amp;&amp; exec /nix/store/wags9ajivrc1r24z9qx5glny5n8q5i4g-lix-2.93.3/bin/nix-daemon</string>
	</array>
	<key>SoftResourceLimits</key>
	<dict>
		<key>NumberOfFiles</key>
		<integer>1048576</integer>
	</dict>
</dict>
</plist>
14:09:00
@nazarewk:matrix.orgkdn I'm actually having build failures for version 2.94.0 (updating flake today) 14:09:36
@emilazy:matrix.orgemilyeverything looks to be in order. maybe the aiohttp package needs to limit parallelism for its test phase if it is using that many FDs14:10:55
@emilazy:matrix.orgemilywere you building many other packages at the same time?14:11:08
@nazarewk:matrix.orgkdn I think it was just aiohttp at the time, tried building the .drv file directly and didn't succeed until limiting cores 14:12:39
@nazarewk:matrix.orgkdn * I think it was just aiohttp at the time, tried building the .drv file directly and didn't succeed until limiting cores with envvar 14:12:47
@emilazy:matrix.orgemilymaybe open a Nixpkgs issue14:16:40
@sarahec:matrix.orgSarah Clark I was able to build with nix-build -A python3Packages.aiohttp --check and get the latest. M3 Max, no limit on cores 19:00:30
@sarahec:matrix.orgSarah Clark What does ulimit -Sn and ulimit -Hn show? 19:02:54
@sarahec:matrix.orgSarah Clark Also, what does lsof | wc -l say when you're not building? 19:03:50
@sarahec:matrix.orgSarah Clark (ulimit: soft and hard limits. lsof | wc -l list open files | count the lines 19:04:29
@sarahec:matrix.orgSarah Clark * (ulimit: soft and hard limits. lsof | wc -l list open files | count the lines) 19:05:26

There are no newer messages yet.


Back to Room ListRoom Version: 6