!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
@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
@reckenrode:matrix.orgRandy Eckenrode * swiftc, swift-driver, the stdlib, swift-corelibs-xctest, swift-testing, (on Linux), swift-corelibs-foundation, etc. 18:43:49
@emilazy:matrix.orgemily right. unfortunate that that will involve targetPackages for a multi-target compiler but maybe we can figure something out with upstream one day 18:44:14
@emilazy:matrix.orgemilyhow does their whole cross SDK stuff work upstream?18:44:31
@reckenrode:matrix.orgRandy Eckenrode You specify --sdk <path to SDK>. 18:45:15
@reckenrode:matrix.orgRandy EckenrodeAFAIK18:45:16
@reckenrode:matrix.orgRandy EckenrodeThere are static Linux SDKs for various distros.18:45:27
@reckenrode:matrix.orgRandy Eckenrode * 18:45:48
@reckenrode:matrix.orgRandy EckenrodeSupporting cross-compilation is a non-goal currently for my Swift work. It doesn’t currently work. Having the stdlib separate at least moves us in the right direction.18:47:13
@reckenrode:matrix.orgRandy EckenrodeRight now I’m just looking for spliced packages in things that care about that.18:48:25
@reckenrode:matrix.orgRandy Eckenrodehttps://github.com/reckenrode/nixpkgs/blob/139e88d5b9ed888bc534afcb981c4d79698fecb3/pkgs/by-name/sw/swiftPackages/by-name/sw/swiftc/package.nix#L61-L9718:49:43
@reckenrode:matrix.orgRandy EckenrodeIf cross just happens to work, yay. I doubt it will, though we’re closer than we are currently.18:50:26
@emilazy:matrix.orgemilyI was wondering whether we can avoid this "looking at its own location" by just putting that stuff in the SDK.18:51:47
@emilazy:matrix.orgemily then the SDK is a build input, a la apple-sdk. the compiler could propagate the ones for the host and target platforms 18:52:45
@reckenrode:matrix.orgRandy Eckenrode We would have to vend a special SDK on Darwin that adds the Swift libs the apple-sdk. 19:30:39

Show newer messages


Back to Room ListRoom Version: 6