!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
13 Dec 2025
@reckenrode:matrix.orgRandy Eckenrode

Loading the resource bundles was the problem. Swift Build at least works with our SDK now.

$ SDKROOT=$(nix eval --raw -f . apple-sdk_26.sdkroot) DEVELOPER_DIR=$(nix eval --raw -f . apple-sdk_26.outPath) result/bin/swbuild showPlatforms
Platform(name: 'android', identifier: 'android', path: '/', version: 'nil')
Platform(name: 'macosx', identifier: 'com.apple.platform.macosx', path: '/nix/store/wgwpfaijma19bx4q4ql4054r5qwdhlvi-apple-sdk-26.0/Platforms/MacOSX.platform', version: 'Optional("26.0")')
Platform(name: 'qnx', identifier: 'qnx', path: '/', version: 'nil')
Platform(name: 'webassembly', identifier: 'webassembly', path: '/', version: 'nil')
$ SDKROOT=$(nix eval --raw -f . apple-sdk_26.sdkroot) DEVELOPER_DIR=$(nix eval --raw -f . apple-sdk_26.outPath) result/bin/swbuild showSDKs
SDK(canonicalName: 'macosx26.0', path: '/nix/store/wgwpfaijma19bx4q4ql4054r5qwdhlvi-apple-sdk-26.0/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk')
14:52:47
@reckenrode:matrix.orgRandy Eckenrode
$ otool -L result/lib/libSwiftBuild.dylib
result/lib/libSwiftBuild.dylib:
        /nix/store/73w55p4wpd55l4avs01d8p4z9ka3vz6x-swift-build-6.2.2/lib/libSwiftBuild.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/73w55p4wpd55l4avs01d8p4z9ka3vz6x-swift-build-6.2.2/lib/libSWBCore.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/73w55p4wpd55l4avs01d8p4z9ka3vz6x-swift-build-6.2.2/lib/libSWBProjectModel.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/73w55p4wpd55l4avs01d8p4z9ka3vz6x-swift-build-6.2.2/lib/libSWBMacro.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/k6qxf4hh4phxd1jbnylq2x2klawx6yvc-swift-tools-support-core-6.2.2/lib/libSwiftToolsSupport.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/73w55p4wpd55l4avs01d8p4z9ka3vz6x-swift-build-6.2.2/lib/libSWBServiceCore.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/73w55p4wpd55l4avs01d8p4z9ka3vz6x-swift-build-6.2.2/lib/libSWBCAS.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/73w55p4wpd55l4avs01d8p4z9ka3vz6x-swift-build-6.2.2/lib/libSWBLLBuild.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/d1s9qwh5cl2cpi334xxid7l656mszf61-swift-llbuild-6.2.2-lib/lib/libllbuildSwift.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/3r9i6wx46v5fbrskjglzs7w06m7hc3am-swift-driver-6.2.2-lib/lib/libSwiftDriver.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/73w55p4wpd55l4avs01d8p4z9ka3vz6x-swift-build-6.2.2/lib/libSWBProtocol.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/73w55p4wpd55l4avs01d8p4z9ka3vz6x-swift-build-6.2.2/lib/libSWBUtil.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/73w55p4wpd55l4avs01d8p4z9ka3vz6x-swift-build-6.2.2/lib/libSWBCSupport.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/73w55p4wpd55l4avs01d8p4z9ka3vz6x-swift-build-6.2.2/lib/libSWBLibc.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/73w55p4wpd55l4avs01d8p4z9ka3vz6x-swift-build-6.2.2/lib/libSWBCLibc.dylib (compatibility version 0.0.0, current version 0.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1356.0.0)
        /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 4040.1.255)
        /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 4040.1.255)
        /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
        /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)
        /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/libswiftSystem.dylib (compatibility version 1.0.0, current version 72.2.0)
        /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)
14:54:15
@reckenrode:matrix.orgRandy EckenrodeThere it is building against the swift-llbuild, Swift Compiler Driver, and swift-tools-support-core packages instead of vendoring them.14:54:37
@bodzioney:matrix.orgEthan changed their display name from Ethan Bodzioney to Ethan.22:13:44
14 Dec 2025
@majordouble:matrix.orgmajordouble joined the room.02:50:13
@reckenrode:matrix.orgRandy Eckenrode
04:06:05
@reckenrode:matrix.orgRandy Eckenrode *
04:06:17
@reckenrode:matrix.orgRandy Eckenrode *

result/bin/swift-build --version
dyld[8157]: Library not loaded: @rpath/libX509.dylib
  Referenced from: <1E5E26B0-C4E9-38EC-BFEA-2EC004424B1C> /nix/store/v0rz67an5k7fb05vxcpj4vzyq0gqlq7q-swiftpm-6.2.3/bin/swift-build
  Reason: tried: '/usr/lib/swift/libX509.dylib' (no such file, not in dyld cache), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib/swift/libX509.dylib' (no such file), '/usr/lib/swift/libX509.dylib' (no such file, not in dyld cache), '/System/Volumes/Preboot/Cryptexes/OS/usr/lib/swift/libX509.dylib' (no such file)
fish: Job 1, 'result/bin/swift-build --version' terminated by signal SIGABRT (Abort)
04:06:29
@reckenrode:matrix.orgRandy EckenrodeI know why that’s happening. It’s an easy fix. Otherwise, that’s SwiftPM building and linking against a bunch of stuff that’s been packaged.04:07:25
@reckenrode:matrix.orgRandy Eckenrode
$ result/bin/swift-build:
        /nix/store/v0rz67an5k7fb05vxcpj4vzyq0gqlq7q-swiftpm-6.2.3/lib/libCommands.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/v0rz67an5k7fb05vxcpj4vzyq0gqlq7q-swiftpm-6.2.3/lib/libCoreCommands.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/3cgjx9b5s078sq9wzrc042qnhsvrma8k-swift-build-6.2.3-lib/lib/libSwiftBuild.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/3cgjx9b5s078sq9wzrc042qnhsvrma8k-swift-build-6.2.3-lib/lib/libSWBBuildService.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/v0rz67an5k7fb05vxcpj4vzyq0gqlq7q-swiftpm-6.2.3/lib/libPackageModelSyntax.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/v0rz67an5k7fb05vxcpj4vzyq0gqlq7q-swiftpm-6.2.3/lib/libWorkspace.dylib (compatibility version 0.0.0, current version 0.0.0)
        @rpath/libX509.dylib (compatibility version 0.0.0, current version 0.0.0)
        @rpath/libCryptoExtras.dylib (compatibility version 0.0.0, current version 0.0.0)
        @rpath/libCrypto.dylib (compatibility version 0.0.0, current version 0.0.0)
        @rpath/libSwiftASN1.dylib (compatibility version 0.0.0, current version 0.0.0)
        @rpath/lib_CertificateInternals.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/v0rz67an5k7fb05vxcpj4vzyq0gqlq7q-swiftpm-6.2.3/lib/libBuild.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/v0rz67an5k7fb05vxcpj4vzyq0gqlq7q-swiftpm-6.2.3/lib/libSPMBuildCore.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/2ifyjiaspk4v4dnf0gkxn93cmlqz28iv-swift-llbuild-6.2.3-lib/lib/libllbuildSwift.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/v0rz67an5k7fb05vxcpj4vzyq0gqlq7q-swiftpm-6.2.3/lib/libPackageGraph.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/v0rz67an5k7fb05vxcpj4vzyq0gqlq7q-swiftpm-6.2.3/lib/libPackageLoading.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/v0rz67an5k7fb05vxcpj4vzyq0gqlq7q-swiftpm-6.2.3/lib/libSourceControl.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/v0rz67an5k7fb05vxcpj4vzyq0gqlq7q-swiftpm-6.2.3/lib/libDriverSupport.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/v0rz67an5k7fb05vxcpj4vzyq0gqlq7q-swiftpm-6.2.3/lib/libPackageModel.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/v0rz67an5k7fb05vxcpj4vzyq0gqlq7q-swiftpm-6.2.3/lib/libBasics.dylib (compatibility version 0.0.0, current version 0.0.0)
        @rpath/libOrderedCollections.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/v0rz67an5k7fb05vxcpj4vzyq0gqlq7q-swiftpm-6.2.3/lib/lib_AsyncFileSystem.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/zqi9mr8yn7357ldcv2brpm1xx193b20r-swift-tools-support-core-6.2.3/lib/libSwiftToolsSupport.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/0ql7aby4g4v5mlampmlgz7dwranr6va1-swift-driver-6.2.3-lib/lib/libSwiftDriver.dylib (compatibility version 0.0.0, current version 0.0.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)
04:07:30
@plasmagoat:matrix.orgplasmagoat joined the room.10:40:58
@suua:matrix.orgsuua joined the room.13:31:02
@k8vnhzqm:matrix.org@k8vnhzqm:matrix.org left the room.17:16:01
@reckenrode:matrix.orgRandy Eckenrodehttps://github.com/NixOS/nixpkgs/pull/47087223:36:32
@reckenrode:matrix.orgRandy Eckenrode

Other Darwin PRs:

https://github.com/NixOS/nixpkgs/pull/465669

https://github.com/NixOS/nixpkgs/pull/470724

https://github.com/NixOS/nixpkgs/pull/463900

23:36:58
15 Dec 2025
@vcunat:matrix.orgvcunatThere's another SIGKILL case, but this time it's reproducible and won't go away on retries or changing the output hash: https://hydra.nixos.org/build/31574536320:35:34
@vcunat:matrix.orgvcunat(only 117 jobs reported to depend on this one, so no huge deal, but I thought I'd ping this room anyway)20:36:14
@ihar.hrachyshka:matrix.orgIhar Hrachyshka Duration: 8s - good candidate to debug if it's also 100% reproducible 20:36:37
@vcunat:matrix.orgvcunatYes, it does reproduce on a different machine.20:37:03
@vcunat:matrix.orgvcunatWhich is how I found that it's a SIGKILL.20:37:10
@reckenrode:matrix.orgRandy Eckenrode

checking for a BSD-compatible install...

As an aside, GNU coreutils install is not actually BSD-compatible. BSD install supports -l to create symlinks. GNU install does not.

20:40:35
@emilazy:matrix.orgemilyit looks like that package wraps Python20:44:42
@emilazy:matrix.orgemilyperhaps it is the Python derivation that needs rebuilding 🫠20:44:49
@emilazy:matrix.orgemily maybe nix run nixpkgs#bash -- -x /nix/store/a8d6nlfwqi3wzllvbxvjgx0316zxah3v-itstool-2.0.7/bin/itstool would be enlightening 20:45:39
@vcunat:matrix.orgvcunat
/nix/store/bb2dww8j5afza69c8drndbxcz6b1cf2v-python3-3.13.9/bin/python3.13 --help

This succeeds.

20:45:52
@emilazy:matrix.orgemilyI wonder why this previously extremely rare bug now seems to be happening often20:46:01
@emilazy:matrix.orgemily20:46:32
@emilazy:matrix.orgemilyOS upgrade, I bet.20:46:34
@emilazy:matrix.orgemilyon the builders.20:46:40
@vcunat:matrix.orgvcunat --help works but running with the python script does not. 20:47:21

Show newer messages


Back to Room ListRoom Version: 6