| 27 Dec 2025 |
emily | perhaps something with our deployment variables / flags / target naming scheme / whatever is causing issues? | 20:57:55 |
Randy Eckenrode | * From the swiftinterface in the Xcode toolchain. | 20:57:59 |
emily | e.g. arm64-apple-darwin lacking the version | 20:58:03 |
Randy Eckenrode | This is set automatically by CMake for Swift. | 20:58:30 |
Randy Eckenrode | I wonder if swiftinterface files are more lax bout deployment target, which is how it works as long as you don’t use a newer API. | 20:58:42 |
Randy Eckenrode | * I wonder if swiftinterface files are more lax bout deployment targe | 20:58:54 |
Randy Eckenrode | * I wonder if swiftinterface files are more lax bout deployment target. | 20:58:57 |
Randy Eckenrode | * I wonder if swiftinterface files are more lax about deployment target. | 20:59:06 |
Randy Eckenrode | I’m currently trying to build the interface for the PackageDescription module. | 20:59:18 |
Randy Eckenrode | That seems like way too much work. I changed the default “oldest version” to 14.0. | 21:15:53 |
Randy Eckenrode | That breaks setting the platform in Package.swift. ☹️ | 21:18:39 |
Randy Eckenrode | Oh, neat. swift-driver is setting the wrong rpath. | 21:20:04 |
| Nyte changed their display name from realnyte to Nyte. | 21:20:31 |
Randy Eckenrode | Setting it in the manifest loader fixed the platform issue. You can now build for an older target if that’s your thing. | 21:34:04 |
Randy Eckenrode | Load command 32
cmd LC_RPATH
cmdsize 96
path /nix/store/p0dhvg983kxjaj9h0n2pjsdspvlk4930-swift-driver-6.2.3/lib/swift-6.2/macosx (offset 12)
| 21:34:20 |
Randy Eckenrode | That’s wrong. The fix will be splitting out the Swift stdlib into its own derivation, which should be a ton of fun to build. | 21:34:34 |
Randy Eckenrode | Then Swift and Swift Compiler Driver can reference that instead. | 21:34:49 |
emily | that'll help for cross too :) | 21:37:59 |
Randy Eckenrode | One of the reasons I’m doing it. | 22:03:51 |
flokli | Redacted or Malformed Event | 23:26:16 |
emily | hi | 23:26:27 |
flokli | Sorry, I fatfingered on too tiny keyboard | 23:27:20 |
flokli | I wanted to ask about https://paste.linuxlounge.net/BQ , and whether any of this rings a bell. | 23:28:10 |
flokli | That's the aws-lc-sys crate, and it shows some obscure errors about various symbols not found, if compiling on a MacOS system. | 23:30:28 |
flokli | it notably only fails is compiling inside the derivation, not when using cargo. | 23:30:48 |
emily | looks like maybe a missing rustPlatform.bindgenHook or similar? | 23:30:57 |
emily | can you share the derivation code maybe? | 23:31:13 |
flokli | https://git.snix.dev/snix/snix, nix-build -A snix.store | 23:31:46 |
emily | ah, this is using crane? | 23:32:39 |
flokli | crate2nix, see the snix/Cargo.nix file, and snix/default.nix calling into it | 23:33:15 |