!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
26 Dec 2025
@kfiz:matrix.sopado.dekfizwell ...03:38:26
@kfiz:matrix.sopado.dekfiz?03:38:36
@kfiz:matrix.sopado.dekfizk this was already discussed.06:57:02
@isabel:isabelroses.comisabel changed their profile picture.11:37:18
@hrmny:c-base.orghrmny | 6069 changed their display name from hrmny to hrmny | 6069.15:32:22
@debtquity:matrix.orgdebtquity is /etc/fstab managed with nix-darwin? 21:59:13
27 Dec 2025
@reckenrode:matrix.orgRandy Eckenrode
$ nix why-depends /nix/store/n7d5s976rq50shdlahybiq1n68whlvk4-swiftpm-6.2.3 /nix/store/0d63j9ma2simwi7ahsibd3a7vpca99ws-bootstrap-tools
/nix/store/n7d5s976rq50shdlahybiq1n68whlvk4-swiftpm-6.2.3
└───/nix/store/qawnbs68nzxrmp9y5qqbfi4mka1ni16h-swift-build-6.2.3-lib
    └───/nix/store/qm6d0r1l4bp25k90gsk1p1gw5nydhpp5-shell_cmds-326
        └───/nix/store/2xdz5kpnb0bfiashd6mw094wrv1qb125-libxo-1.7.5
            └───/nix/store/0qr9g069b3acb9s2m8cx8m7j7qczs8r4-gettext-0.25.1
                └───/nix/store/0d63j9ma2simwi7ahsibd3a7vpca99ws-bootstrap-tools
00:36:18
@reckenrode:matrix.orgRandy EckenrodeThat doesn’t seem right.00:36:23
@matthewcroughan:defenestrate.itmatthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) changed their display name from matthewcroughan to matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192).14:42:37
@reckenrode:matrix.orgRandy Eckenrode Anyone know how prebuilts are supposed to work in Swift? There’s a list of them in workspace-state.json, but it’s not clear what adding them is supposed to do. What I would really like is if I can supply prebuilts of all the dependencies, so Swift just uses those instead, and we can have nicely pre-built binaries in most cases. 15:14:36
@reckenrode:matrix.orgRandy Eckenrode(Though from what I can tell, they’re still pretty rough.)15:15:34
@reckenrode:matrix.orgRandy Eckenrode Sigh. SwiftPM defaults to building package manifests for 10.13. Unfortunately, Swift is strict about deployment targets. While ld will let you link against libraries with newer deployment targets, Swift makes it a hard error to use a module for newer ones. I am trying to make SwiftPM’s dependencies work with 10.13, but Swift Driver has a hard requirement of 10.15. I guess don’t use Swift Driver on the old deployment target. 16:16:13
@emilazy:matrix.orgemilycan't we just change the default?16:45:10
@reckenrode:matrix.orgRandy EckenrodeIt’s hard-coded in SwiftPM.16:47:00
@reckenrode:matrix.orgRandy EckenrodeIt’s easier to build its dependencies for an older deployment target.16:48:42
@emilazy:matrix.orgemily"I am trying to make SwiftPM’s dependencies work with 10.13" makes me very sad 😔16:59:40
@emilazy:matrix.orgemilyI'd rather patch SwiftPM than spend time on unsupported OS versions16:59:50
@reckenrode:matrix.orgRandy Eckenrode I had to patch one function in swift-tools-support-core to use an availability check and return ENOSYS on older versions. 17:03:44
@reckenrode:matrix.orgRandy EckenrodeI set Swift Driver to 10.15.17:04:15
@reckenrode:matrix.orgRandy EckenrodeThe rest build fine.17:04:22
@emilazy:matrix.orgemilyhow does upstream handle that?17:13:22
@reckenrode:matrix.orgRandy EckenrodeThey build whatever in their mega build script.17:13:41
@reckenrode:matrix.orgRandy EckenrodeTechnically, this is in C code, which just warns. We enforce the check in our wrapper.17:14:31
@reckenrode:matrix.orgRandy Eckenrode * 17:14:53
@reckenrode:matrix.orgRandy EckenrodeWTF. SwiftPM effectively requires 10.15.4 or newer. How the hell is this damn manifest thing even supposed to build?20:09:43
@reckenrode:matrix.orgRandy EckenrodeSwift Build requires macOS 13. How does this package description module get an older deployment target?20:14:49
@reckenrode:matrix.orgRandy Eckenrode
 4 | import PackageDescription
   |        `- error: compiling for macOS 10.13, but module 'PackageDescription' has a minimum deployment target of macOS 10.15: /nix/store/fxbsbvk42lminfmw3gf6j0c34wvlvpvs-swiftpm-6.2.3/lib/swift/pm/ManifestAPI/PackageDescription.swiftmodule
20:52:48
@reckenrode:matrix.orgRandy Eckenrode PackageDescription uses APIs from 10.15. How does this work with an upstream toolchain? 20:53:13
@reckenrode:matrix.orgRandy Eckenrode
// swift-module-flags: -target arm64-apple-macos14.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -package-description-version 999.0 -enable-experimental-feature MemberImportVisibility -enable-experimental-feature DebugDescriptionMacro -user-module-version 24502 -module-name PackageDescription -package-name swiftpm
20:55:32
@reckenrode:matrix.orgRandy Eckenrode From the swiftinterface in the toolchain. 20:55:42

Show newer messages


Back to Room ListRoom Version: 6