!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1150 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
8 Dec 2025
@emilazy:matrix.orgemilyonly infelicity is that if they ever do actual versions the ordering will be weird17:52:58
@emilazy:matrix.orgemilybut I doubt anything actually cares about the value17:53:09
@emilazy:matrix.orgemilythat will start failing when they go over 65536 commits too fwiw17:53:49
@emilazy:matrix.orgemilyor well, start truncating17:53:54
@emilazy:matrix.orgemilyI'm not convinced anything actually cares about the "current version" field of a library though17:54:29
@reckenrode:matrix.orgRandy EckenrodeMany times projects just set junk versions. The versions for llbuild’s framework are 1 and 1.17:54:31
@emilazy:matrix.orgemilyyeah17:54:48
@emilazy:matrix.orgemily so just dropping VERSION … would be another option 17:54:54
@emilazy:matrix.orgemilybut it'll change the filenames used on Linux17:54:58
@emilazy:matrix.orgemilywell, and on macOS too17:55:05
@emilazy:matrix.orgemily
-rwxr-xr-x@ 1 emily  staff   608K  8 Dec 16:09 libmtmd.0.0.7325.dylib*
lrwxr-xr-x@ 1 emily  staff    22B  8 Dec 16:09 libmtmd.0.dylib@ -> libmtmd.0.0.7325.dylib
17:55:11
@emilazy:matrix.orgemilyaha17:55:20
@emilazy:matrix.orgemily

For shared libraries, the MACHO_COMPATIBILITY_VERSION and MACHO_CURRENT_VERSION properties can be used to override the compatibility version and current version respectively.

17:55:22
@emilazy:matrix.orgemily so another option is to simply add MACHO_CURRENT_VERSION 0 to both of these 17:55:40
@emilazy:matrix.orgemilythat will maintain the same filenames on both platforms but remove the field in the dylib that is already getting truncated and that probably nobody cares about17:55:59
@emilazy:matrix.orgemilythat is probably what I would upstream as the minimal change17:56:08
@emilazy:matrix.orgemilyif they start doing actual releases with normal numbers they could then start putting that information back in without messing up ordering17:56:25
@reckenrode:matrix.orgRandy Eckenrode
$ nix build '/nix/store/xdyf7irjmij4xjfrd9ph66icch3412r3-early-swift-driver-6.2.1.drv^*'
$ nix-store -qR ./result
/nix/store/8f7amxylm5vi21l00xissbb6d8l4icdl-ncurses-6.5
/nix/store/vzggzw92lznlk9s0730svz5rp7nvswww-zlib-1.3.1
/nix/store/b0ygrry710bgyzpys1vddj6b7vrhwq26-sqlite-3.51.0
/nix/store/9v8n0gszrih4zf158l881skfkh7gal01-swift-llbuild-6.2.1-lib
/nix/store/rl3ap69dwn3i9l4260k413227yk5499k-early-swift-driver-6.2.1-lib
/nix/store/w6zchw1mg284b1khn6k2wb2cdgklz73a-early-swift-driver-6.2.1
21:01:06
@reckenrode:matrix.orgRandy EckenrodeNext up is swift-tools-support-core. I’m working on polishing the CMake builds, so they can be used as regular libraries.21:01:39
9 Dec 2025
@reckenrode:matrix.orgRandy Eckenrode
$ nix build '/nix/store/i53wmy3v3hd8phl8qm4zgnpi66b796sj-early-swift-driver-6.2.1.drv^*'
$ nix-store -qR ./result
/nix/store/czkz4fdz89h8kf1s0d4lzfcgjqny98fv-swift-tools-support-core-6.2.1
/nix/store/8f7amxylm5vi21l00xissbb6d8l4icdl-ncurses-6.5
/nix/store/vzggzw92lznlk9s0730svz5rp7nvswww-zlib-1.3.1
/nix/store/b0ygrry710bgyzpys1vddj6b7vrhwq26-sqlite-3.51.0
/nix/store/gglkzl9f5anf01k6nzlajfb03lczcd9k-swift-llbuild-6.2.1-lib
/nix/store/pv916rkkx8w494zps5rffsrxgk3ilql6-early-swift-driver-6.2.1-lib
/nix/store/4qwzh6c1hg8is0n96prfw93jxp5bfjzi-early-swift-driver-6.2.1
$ otool -L result/bin/swift-driver
result/bin/swift-driver:
        /nix/store/pv916rkkx8w494zps5rffsrxgk3ilql6-early-swift-driver-6.2.1-lib/lib/swift/macosx/libSwiftDriverExecution.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/pv916rkkx8w494zps5rffsrxgk3ilql6-early-swift-driver-6.2.1-lib/lib/swift/macosx/libSwiftDriver.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/czkz4fdz89h8kf1s0d4lzfcgjqny98fv-swift-tools-support-core-6.2.1/lib/libSwiftToolsSupport.dylib (compatibility version 0.0.0, current version 0.0.0)
        /nix/store/pv916rkkx8w494zps5rffsrxgk3ilql6-early-swift-driver-6.2.1-lib/lib/swift/macosx/libSwiftOptions.dylib (compatibility version 0.0.0, current version 0.0.0)
        /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1345.100.2)
        /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 2420.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 0.0.0)
        /usr/lib/swift/libswiftDispatch.dylib (compatibility version 1.0.0, current version 41.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 8.0.0, weak)
        /usr/lib/swift/libswiftXPC.dylib (compatibility version 1.0.0, current version 36.100.7, weak)
        /usr/lib/swift/libswiftos.dylib (compatibility version 1.0.0, current version 1049.100.4, weak)
01:36:32
@reckenrode:matrix.orgRandy EckenrodeSwift 6.2.2 is out. I should see how badly everything breaks ….02:19:35
@reckenrode:matrix.orgRandy Eckenrode… why does Mesa depend on Swift?02:25:17
@reckenrode:matrix.orgRandy EckenrodeI updated my KosmicKrisp branch. It’s getting closer to MoltenVK in terms of coverage.02:35:52
@reckenrode:matrix.orgRandy Eckenrode My status for tonight is I got swift-llbuild and swift-tools-support-core building dylibs — somewhat similar to how Darwin toolchains do it. 02:50:37
@reckenrode:matrix.orgRandy EckenrodeUp next is Swift Compiler Driver once I finish rebuilding back up to having a bootstrap compiler.02:50:55
@reckenrode:matrix.orgRandy EckenrodeMy goal is to have these packages building using CMake exclusively. I liked the idea of using SwiftPM once it could be built, but it makes the bootstrap path more complicated.03:04:59
@reckenrode:matrix.orgRandy EckenrodeHmm. The LLVM for for Swift 6.3 is LLVM 21.1.6.03:05:45
@reckenrode:matrix.orgRandy Eckenrodehttps://github.com/swiftlang/swift/blob/8bf0adb5b25fe23f20130c0a2635b7319517dba0/utils/build_swift/build_swift/defaults.py#L5103:06:44
@reckenrode:matrix.orgRandy EckenrodeInteresting. Apple’s fork is realigning its versioning strategy to more closely follow LLVM?03:07:36
@reckenrode:matrix.orgRandy EckenrodeI wonder if they have a problem with people being confused about what version they’re shipping.03:07:49

Show newer messages


Back to Room ListRoom Version: 6