| 18 Dec 2025 |
Sarah Clark | People question: my Darwin PRs get merged the slowest. Is there anybody I should include in the review list? | 18:33:36 |
Sarah Clark | (I'm focusing on Darwin fixes) | 18:34:07 |
Sarah 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 |
Sarah 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 | There's a lot fewer Darwin maintainers with commit bit so I'm afraid it's unavoidable. | 18:50:07 |
Sarah Clark | sigh yeah. And I've seen several committers say they don't care about Darwin. | 18:52:38 |
toonn | 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 |
Randy Eckenrode | Probably something like lib.inspect.platforms.isDarwin or something like that. | 18:56:56 |
Randy Eckenrode | You’d combine whatever the right one for Darwin is plus the one for x86_64z | 18:57:26 |
Randy Eckenrode | * | 18:57:34 |
Ihar Hrachyshka | Kinda convoluted. What does it buy - guarding against string typos? | 18:58:05 |
Sarah Clark | yes, that.
I decided to drag out my Intel MBP and disable the failing tests instead. | 19:57:04 |
| 19 Dec 2025 |
kdn | 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 |
emily | how many cores do you have? | 14:03:09 |
kdn | not sure, it's Mac Mini M2, probably 12 | 14:03:36 |
emily | also what Nix are you using? | 14:03:54 |
kdn | nix (Lix, like Nix) 2.93.3 | 14:04:14 |
emily | thanks. can you cat /Library/LaunchDaemons/org.nixos.nix-daemon.plist | 14:04:43 |
kdn | <?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 && 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 |
kdn | I'm actually having build failures for version 2.94.0 (updating flake today) | 14:09:36 |
emily | everything looks to be in order. maybe the aiohttp package needs to limit parallelism for its test phase if it is using that many FDs | 14:10:55 |
emily | were you building many other packages at the same time? | 14:11:08 |
kdn | 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 |
kdn | * 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 |
emily | maybe open a Nixpkgs issue | 14:16:40 |
Sarah 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 |
Sarah Clark | What does ulimit -Sn and ulimit -Hn show? | 19:02:54 |
Sarah Clark | Also, what does lsof | wc -l say when you're not building? | 19:03:50 |
Sarah Clark | (ulimit: soft and hard limits. lsof | wc -l list open files | count the lines | 19:04:29 |
Sarah Clark | * (ulimit: soft and hard limits. lsof | wc -l list open files | count the lines) | 19:05:26 |