!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1174 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
18 Dec 2025
@reckenrode:matrix.orgRandy EckenrodeIt doesn’t support installation.16:54:38
@emilazy:matrix.orgemily lib/swift makes some sense to me since it matches the SDK 16:54:50
@emilazy:matrix.orgemilywhat are example filenames that go in there?16:54:58
@saiko:knifepoint.netKatalin 🔪 hmmm, I wouldn't separate them since they are generally normal libraries and I assume nix won't build static and shared libraries at the same time either 16:55:21
@reckenrode:matrix.orgRandy EckenrodeFor their own packages? I don’t know. They seem out of date. The official tarballs seem to statically link everything except for the toolchain/stdlib libs.16:55:23
@reckenrode:matrix.orgRandy EckenrodeShare libraries, static libraries, Swift modules.16:55:45
@emilazy:matrix.orgemily so normal libfoo.dylib? 16:55:52
@reckenrode:matrix.orgRandy EckenrodePretty much.16:56:01
@emilazy:matrix.orgemilywhat are modules like?16:56:07
@saiko:knifepoint.netKatalin 🔪 what does CMake do? 16:56:10
@emilazy:matrix.orgemily& where does the compiler search for libraries on FHS distros?16:56:16
@saiko:knifepoint.netKatalin 🔪 modules generally behave like C headers 16:56:31
@reckenrode:matrix.orgRandy EckenrodeWhatever the project tells it to do.16:56:38
@saiko:knifepoint.netKatalin 🔪 ah. (: 16:56:43
@reckenrode:matrix.orgRandy EckenrodeSwift build expects to vendor everything. With traits (like Cargo features), you can’t really pre-build libraries anymore.16:57:18
@emilazy:matrix.orgemily FWIW static libraries should really go in ${!outputDev}/lib IMO, or perhaps even a staticlib output. the reason we don't do that is because build systems are dumb. if it can be achieved for Swift it should be 16:57:35
@reckenrode:matrix.orgRandy EckenrodeI’m doing it here for the CMake builds needed by the toolchain.16:57:49
@emilazy:matrix.orgemily the lib output should be stuff required at runtime, which static libraries (and modules?) never are 16:57:51
@saiko:knifepoint.netKatalin 🔪 and the compiler i.e. swiftc? 16:58:00
@saiko:knifepoint.netKatalin 🔪 I'm currently looking but I don't know if you can get it to print a default include path 16:58:11
@saiko:knifepoint.netKatalin 🔪 there's -Isystem and -I 16:58:19
@saiko:knifepoint.netKatalin 🔪 like on a normal C compiler 16:58:27
@reckenrode:matrix.orgRandy Eckenrode I think swiftc probably doesn’t look beyond its toolchain location. 16:58:38
@reckenrode:matrix.orgRandy Eckenrode * I suspect swiftc probably doesn’t look beyond its toolchain location. 16:58:47
@reckenrode:matrix.orgRandy EckenrodeIt supports being told where, which is what SwiftPM and CMake both do.16:59:06
@reckenrode:matrix.orgRandy Eckenrode dev is not available for Swift packages due to some evil stuff I am doing to make `buildInputs = [ swift-foo ];‘ do something sensible with SwiftPM. 17:00:15
@saiko:knifepoint.netKatalin 🔪 ah yeah that would make sense, I guess that's how it works with the Xcode toolchain too since that contains everything 17:00:26
@reckenrode:matrix.orgRandy Eckenrode * dev is not available for Swift packages due to some evil stuff I am doing to make buildInputs = [ swift-foo ]; do something sensible with SwiftPM. 17:00:26
@saiko:knifepoint.netKatalin 🔪 it doesn't have /usr/include as a default path at least from a quick test 17:00:36
@reckenrode:matrix.orgRandy Eckenrode Otherwise, I agree. I’m (ab)using include for CMake files and Swift modules. 17:01:01

Show newer messages


Back to Room ListRoom Version: 6