| 18 Dec 2025 |
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 |
| 20 Dec 2025 |
Randy Eckenrode | $ nix build -f . swiftPackages.swiftpm
$ result/bin/swift-build --version
Swift Package Manager - Swift 6.2.3
| 01:23:05 |
Randy Eckenrode | I still need to sort out Swift Syntax, but I’m getting closer. | 01:23:15 |
Randy Eckenrode | $ otool -L result/bin/swift-build
result/bin/swift-build:
/nix/store/pqyia3ig6pv94zsbc78nhf6k3x0viakz-swiftpm-6.2.3/lib/libCommands.dylib (compatibility version 0.0.0, current version 0.0.0)
/nix/store/pqyia3ig6pv94zsbc78nhf6k3x0viakz-swiftpm-6.2.3/lib/libCoreCommands.dylib (compatibility version 0.0.0, current version 0.0.0)
/nix/store/06fjqpj6vqc88a261f0aj47a3svdlq2q-swift-argument-parser-1.6.2/lib/libArgumentParser.dylib (compatibility version 0.0.0, current version 0.0.0)
/nix/store/4vwdky3jccihda9ds132pbxg72vjr9gl-swift-build-6.2.3-lib/lib/libSwiftBuild.dylib (compatibility version 0.0.0, current version 0.0.0)
/nix/store/4vwdky3jccihda9ds132pbxg72vjr9gl-swift-build-6.2.3-lib/lib/libSWBBuildService.dylib (compatibility version 0.0.0, current version 0.0.0)
/nix/store/pqyia3ig6pv94zsbc78nhf6k3x0viakz-swiftpm-6.2.3/lib/libPackageModelSyntax.dylib (compatibility version 0.0.0, current version 0.0.0)
/nix/store/pqyia3ig6pv94zsbc78nhf6k3x0viakz-swiftpm-6.2.3/lib/libWorkspace.dylib (compatibility version 0.0.0, current version 0.0.0)
/nix/store/bbpscq3mikqc95s69ph8wskyqc7m7d8q-swift-crypto-4.2.0/lib/libCrypto.dylib (compatibility version 0.0.0, current version 0.0.0)
/nix/store/5hcnpjw2qn6s64svb4g8rf9axig5sm52-swift-asn1-1.5.1/lib/libSwiftASN1.dylib (compatibility version 0.0.0, current version 0.0.0)
/nix/store/50mhn9dgyxwghkpd2xfyz05x5rvp1q99-swift-certificates-1.17.0/lib/libX509.dylib (compatibility version 0.0.0, current version 0.0.0)
/nix/store/pqyia3ig6pv94zsbc78nhf6k3x0viakz-swiftpm-6.2.3/lib/libBuild.dylib (compatibility version 0.0.0, current version 0.0.0)
/nix/store/pqyia3ig6pv94zsbc78nhf6k3x0viakz-swiftpm-6.2.3/lib/libSPMBuildCore.dylib (compatibility version 0.0.0, current version 0.0.0)
/nix/store/y2hb2vn611s1y5kdz7i20v0f6i0h2nyl-swift-llbuild-6.2.3-lib/lib/libllbuildSwift.dylib (compatibility version 0.0.0, current version 0.0.0)
/nix/store/pqyia3ig6pv94zsbc78nhf6k3x0viakz-swiftpm-6.2.3/lib/libPackageGraph.dylib (compatibility version 0.0.0, current version 0.0.0)
/nix/store/pqyia3ig6pv94zsbc78nhf6k3x0viakz-swiftpm-6.2.3/lib/libPackageLoading.dylib (compatibility version 0.0.0, current version 0.0.0)
/nix/store/pqyia3ig6pv94zsbc78nhf6k3x0viakz-swiftpm-6.2.3/lib/libSourceControl.dylib (compatibility version 0.0.0, current version 0.0.0)
/nix/store/pqyia3ig6pv94zsbc78nhf6k3x0viakz-swiftpm-6.2.3/lib/libDriverSupport.dylib (compatibility version 0.0.0, current version 0.0.0)
/nix/store/pqyia3ig6pv94zsbc78nhf6k3x0viakz-swiftpm-6.2.3/lib/libPackageModel.dylib (compatibility version 0.0.0, current version 0.0.0)
/nix/store/pqyia3ig6pv94zsbc78nhf6k3x0viakz-swiftpm-6.2.3/lib/libBasics.dylib (compatibility version 0.0.0, current version 0.0.0)
/nix/store/q3vn4amfr2icqy3ygkyfzgy5naabavi2-swift-collections-1.3.0/lib/libOrderedCollections.dylib (compatibility version 0.0.0, current version 0.0.0)
/nix/store/pqyia3ig6pv94zsbc78nhf6k3x0viakz-swiftpm-6.2.3/lib/lib_AsyncFileSystem.dylib (compatibility version 0.0.0, current version 0.0.0)
/nix/store/fa3hnihqbq4w958lc919r3mnzhqs5yl9-swift-tools-support-core-6.2.3/lib/libSwiftToolsSupport.dylib (compatibility version 0.0.0, current version 0.0.0)
/nix/store/fjzm767k5l4ddfv73cl46k5c1dxpvbv8-swift-driver-6.2.3-lib/lib/libSwiftDriver.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 2000.63.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1356.0.0)
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 4040.1.255, weak)
/usr/lib/swift/libswiftCore.dylib (compatibility version 1.0.0, current version 0.0.0)
/usr/lib/swift/libswiftCoreFoundation.dylib (compatibility version 1.0.0, current version 120.100.0, weak)
/usr/lib/swift/libswiftDarwin.dylib (compatibility version 1.0.0, current version 347.0.12, weak)
/usr/lib/swift/libswiftDispatch.dylib (compatibility version 1.0.0, current version 56.0.0, weak)
/usr/lib/swift/libswiftIOKit.dylib (compatibility version 1.0.0, current version 1.0.0, weak)
/usr/lib/swift/libswiftObjectiveC.dylib (compatibility version 1.0.0, current version 950.0.0, weak)
/usr/lib/swift/libswiftXPC.dylib (compatibility version 1.0.0, current version 105.0.14, weak)
/usr/lib/swift/libswift_Concurrency.dylib (compatibility version 1.0.0, current version 0.0.0)
/usr/lib/swift/libswiftos.dylib (compatibility version 1.0.0, current version 1076.0.0, weak)
| 01:24:23 |