!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
17 Jan 2026
@alexfmpe:matrix.orgalexfmpe *

adding apple-sdk there causes -L to be passed with libiconv

$ echo $NIX_LDFLAGS
-liconv -L/nix/store/6nmmi317rg2bnybndbgc944dpg5cnl5a-libiconv-109.100.2/lib -L/nix/store/lgcr7kswpb1hap1vsjwrzzcqjks0xal6-libresolv-91/lib -L/nix/store/0x1fcnqb9lf6x3vcn53rxn7ijv7skg7y-libsbuf-14.1.0/lib -L/nix/store/fq0jizzyjkilz0rj3kvc1hskc7ry84ds-libutil-72/lib -L/nix/store/6nmmi317rg2bnybndbgc944dpg5cnl5a-libiconv-109.100.2/lib -L/nix/store/lgcr7kswpb1hap1vsjwrzzcqjks0xal6-libresolv-91/lib -L/nix/store/0x1fcnqb9lf6x3vcn53rxn7ijv7skg7y-libsbuf-14.1.0/lib -L/nix/store/fq0jizzyjkilz0rj3kvc1hskc7ry84ds-libutil-72/lib
17:57:32
@alexfmpe:matrix.orgalexfmpeso I guess...PR the apple-sdk addition and call it a day?17:57:45
@reckenrode:matrix.orgRandy EckenrodeI think there is work (slowly) being done to add support upstream, but it’s slow going.17:57:56
@alexfmpe:matrix.orgalexfmpemakes it less broken afterall17:58:01
@reckenrode:matrix.orgRandy Eckenrode * 17:58:06
@reckenrode:matrix.orgRandy EckenrodeI wouldn’t be surprised if whatever GNU is doing to generate their own headers is not compatible with recent SDKs and GCC.17:58:40
@reckenrode:matrix.orgRandy EckenrodeIs this x86_64-darwin or aarch64-darwin?17:58:46
@reckenrode:matrix.orgRandy EckenrodeAFAIK you need the aarch64-darwin patch set for compatibility with the SDK headers. We don’t apply it on x86_64-darwin for some reason.17:59:04
@alexfmpe:matrix.orgalexfmpeaarch64-darwin18:00:04
@emilazy:matrix.orgemilypretty sure we do18:00:27
@emilazy:matrix.orgemilywe skip it on cross because it used to be broken but now it's not. I have local patches to clean that stuff up18:00:48
@emilazy:matrix.orgemily (are you doing cross?) 18:01:01
@alexfmpe:matrix.orgalexfmpenot on the hello example, but that's what I wanted to do lol18:01:33
@alexfmpe:matrix.orgalexfmpebecause ghc is acting up with clang when doing cross18:01:56
@reckenrode:matrix.orgRandy Eckenrodehttps://github.com/NixOS/nixpkgs/blob/fa3fde27c743fe15cdd1d027795e50dcdb741995/pkgs/development/compilers/gcc/patches/default.nix#L35-L4218:02:23
@alexfmpe:matrix.orgalexfmpe(not nixpkgs specific)18:02:25
@reckenrode:matrix.orgRandy Eckenrode I wonder if I should just copy swift-frontend and swift-driver into the swift package and call it a day. 18:03:56
@reckenrode:matrix.orgRandy EckenrodeThey both do their own resource folder logic.18:04:10
@emilazy:matrix.orgemilymaybe that's another thing I have patches for locally18:16:18
@reckenrode:matrix.orgRandy Eckenrode … does the current swift-driver not support separate lib outputs? 18:18:04
@reckenrode:matrix.orgRandy Eckenrode This is what I did. I think I know where I can patch it in both places, but I don’t want to break things that might depend on the path being resolved to the original binary. swift-driver is also pretty small. swift-frontend is inexplicably large. 18:38:56
@reckenrode:matrix.orgRandy Eckenrode * This is what I did. I think I know where I can patch it in both places, but I don’t want to break things that might depend on the path being resolved to the original binary. swift-driver is also pretty small. swift-frontend is inexplicably large though. 18:39:04
@reckenrode:matrix.orgRandy EckenrodeCopy all the things and let the store optimizer sort it out.18:39:24
@emilazy:matrix.orgemilyassuming most users will only need to download the final package it shouldn't have much impact18:41:13
@emilazy:matrix.orgemilywe could copy the stdlib in too if necessary18:41:28
@emilazy:matrix.orgemily although that means targetPlatform evil 18:41:46
@reckenrode:matrix.orgRandy Eckenrode The problem is swiftc looks for its libraries in the path where it really is. 18:42:12
@reckenrode:matrix.orgRandy Eckenrode So if swiftc is a symlink, it will look in the swiftc package, but that package has no stdlib. 18:42:34
@reckenrode:matrix.orgRandy Eckenrode What I want is for it to look in the swift package that symlinks all the stuff together. 18:42:52
@reckenrode:matrix.orgRandy Eckenrode swiftc, swift-driver, swift-corelibs-xctest, swift-testing, (on Linux), swift-corelibs-foundation, etc. 18:43:23

Show newer messages


Back to Room ListRoom Version: 6