!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

577 Members
125 Servers

Load older messages


SenderMessageTime
2 Apr 2026
@insipx:matrix.orginsipx* hey everyone! What are the chances of getting this in? https://github.com/NixOS/nixpkgs/pull/505820 don't want it to get lost in the ocean of PRs. happy to modify if its missing anything :)16:13:14
@alexfmpe:matrix.orgalexfmpehuh does that rely on rosetta 2? because it's getting retired next year IIUC16:54:23
@insipx:matrix.orginsipxI guess it does, since it's explicitly using x86_6417:33:34
@insipx:matrix.orginsipxi was unaware of this discontinuation, that sucks17:35:47
@insipx:matrix.orginsipx* i was unaware of this discontinuation, that sucks. it's going to be difficult for developers that want to build for both android and ios specifically unless apple decides to continue a subset of rosetta support just for that which is probably doubtful17:36:17
@insipx:matrix.orginsipx actually i'm wrong, the NDK for x86_64 ships with a Universal binary, which natively support silicon and x86_64, https://github.com/android/ndk/issues/1299 so it is not using rosetta 17:37:57
@insipx:matrix.orginsipx* ~i was unaware of this discontinuation, that sucks. it's going to be difficult for developers that want to build for both android and ios specifically unless apple decides to continue a subset of rosetta support just for that which is probably doubtful~17:38:14
@insipx:matrix.orginsipx* I was unaware of this discontinuation, that sucks. it's going to be difficult for developers that want to build for both android and ios specifically unless apple decides to continue a subset of rosetta support just for that which is probably doubtful17:38:29
@insipx:matrix.orginsipx * actually i'm wrong, the NDK for x86_64 ships with a Universal 2 binary, which natively support silicon and x86_64, https://github.com/android/ndk/issues/1299 so it is not using rosetta 17:40:22
@insipx:matrix.orginsipx * actually i'm wrong, the NDK for x86_64 ships with a Universal 2 binary, which natively supports silicon and x86_64, https://github.com/android/ndk/issues/1299 so it is not using rosetta 17:41:00
@insipx:matrix.orginsipx * I guess it does, since it's explicitly using x86_64 17:51:33
@insipx:matrix.orginsipx * I was unaware of this discontinuation, that sucks. it's going to be difficult for developers that want to build for both android and ios specifically unless apple decides to continue a subset of rosetta support just for that which is probably doubtful 17:51:42
@alexfmpe:matrix.orgalexfmpe Then is it really double = "darwin-x86_64"; ? 21:37:09
3 Apr 2026
@insipx:matrix.orginsipxDownload Screen Recording 2026-04-03 at 9.19.56 AM.mov13:21:11
@insipx:matrix.orginsipx yeah it's counterintuitive, and maybe android should change that to darwin-universal, but that x86_64 directory houses the universal binaries for both x86 and arm64. if you download the official ndk on m1 that's the only directory shipped with it 13:21:47
@insipx:matrix.orginsipx * yeah it's counterintuitive, and maybe android should change that to darwin-universal, but that x86_64 directory houses the universal binaries for both x86 and arm64. if you download the official ndk on m1 that's the only directory shipped with it. also this piece of doc that shows the folders per system: https://developer.android.com/ndk/guides/other_build_systems 13:22:16
@insipx:matrix.orginsipx * yeah it's counterintuitive, and maybe android should change that to darwin-universal, but that x86_64 directory houses the universal binaries for both x86 and arm64. if you download the official ndk on silicon that's the only directory shipped with it. also this piece of doc that shows the folders per system: https://developer.android.com/ndk/guides/other_build_systems 13:23:07
@insipx:matrix.orginsipx * yeah it's counterintuitive, and maybe android should change that to darwin-universal, but that x86_64 directory houses the universal binaries for both x86 and arm64 (they're the same binary). if you download the official ndk on silicon that's the only directory shipped with it. also this piece of doc that shows the folders per system: https://developer.android.com/ndk/guides/other_build_systems 13:26:51
@insipx:matrix.orginsipx *

yeah it's counterintuitive, and maybe android should change that to darwin-universal, but that x86_64 directory houses the universal binaries for both x86 and arm64 (they're the same binary). if you download the official ndk on silicon that's the only directory shipped with it. also this piece of doc that shows the folders per system: https://developer.android.com/ndk/guides/other_build_systems

(the video i uploaded above seems unviewable on linux, but it just shows all the toolchain directories of the officially downloaded ndk on macos silicon, which is just darwin-x86_64).

13:31:21
@insipx:matrix.orginsipx * yeah it's counterintuitive, and maybe android should change that to darwin-universal, but that x86_64 directory houses the universal binaries for both x86 and arm64 (they're the same binary). if you download the official ndk on silicon that's the only directory shipped with it. also this piece of doc that shows the folders per system: https://developer.android.com/ndk/guides/other_build_systems 13:31:42
@insipx:matrix.orginsipxRedacted or Malformed Event13:37:14
@insipx:matrix.orginsipxScreenshot 2026-04-03 at 9.38.08 AM.png
Download Screenshot 2026-04-03 at 9.38.08 AM.png
13:38:16
@asbjorn:olli.ngA2 changed their profile picture.16:33:07
@insipx:matrix.orginsipxalso curious, since i got almost all supported platforms xmtp platforms (android, musl, native linux/macos) cross-compiling, what it would take to get iOS cross compile working again in NixOS. as far as I understand it, iphone/ios cross compile has been broken for some time now, but i have a morbid curiosity to maybe pursue getting that working in nix. are there resources for how the current darwin compile to work, and does anyone have an estimate or gut feel on how much actual work there is to get an iphone compile working? Right now xmtp uses a really hacky way to compile to iphone via impurity/xcode that can be improved with compose xcodeenv, but i'm thinking of what it would take to get the official working iphone64 crossSystem working again19:44:11
@insipx:matrix.orginsipx* also curious, since i got almost all supported platforms xmtp platforms (android, musl, native linux/macos) cross-compiling, what it would take to get iOS cross compile working again in NixOS. as far as I understand it, iphone/ios cross compile has been broken for some time now, but i have a morbid curiosity about the iphone64 cross compile. are there resources for how the current darwin compile to work, and does anyone have an estimate or gut feel on how much actual work there is to get an iphone compile working? Right now xmtp uses a really hacky way to compile to iphone via impurity/xcode that can be improved with compose xcodeenv, but i'm thinking of what it would take to get the official working iphone64 crossSystem working again19:44:38
@insipx:matrix.orginsipx* also curious, since i got almost all supported platforms xmtp platforms (android, musl, native linux/macos) cross-compiling, what it would take to get iOS cross compile working again in NixOS. as far as I understand it, iphone/ios cross compile has been broken for some time now, but i have a morbid curiosity about the iphone64 cross compile. does anyone have an estimate or gut feel on how much actual work there is to get an iphone compile working? Right now xmtp uses a really hacky way to compile to iphone via impurity/xcode that can be improved with compose xcodeenv, but i'm thinking of what it would take to get the official working iphone64 crossSystem working again19:44:48
@insipx:matrix.orginsipx* also curious, since i got almost all supported platforms xmtp platforms (android, musl, native linux/macos) cross-compiling, what it would take to get iOS cross compile working again in NixOS. as far as I understand it, iphone/ios cross compile has been broken for some time now, but i have a morbid curiosity about the iphone64 cross compile. does anyone have an estimate or gut feel on how much actual work there is to get an iphone compile working? Right now xmtp uses a really hacky way to compile to iphone via impurity/xcode that can be improved with compose xcodeenv, but i'm thinking of what it would take to get the official working iphone64 crossSystem working again. if i ever have some free time i'd love to pursue getting that into nixpkgs19:45:20
@insipx:matrix.orginsipx* also curious, since i got almost all the supported systems by xmtp sdks (android, musl, native linux/macos) cross-compiling, what it would take to get iOS cross compile working again in NixOS. as far as I understand it, iphone/ios cross compile has been broken for some time now, but i have a morbid curiosity about the iphone64 cross compile. does anyone have an estimate or gut feel on how much actual work there is to get an iphone compile working? Right now xmtp uses a really hacky way to compile to iphone via impurity/xcode that can be improved with compose xcodeenv, but i'm thinking of what it would take to get the official working iphone64 crossSystem working again. if i ever have some free time i'd love to pursue getting that into nixpkgs19:45:59
@insipx:matrix.orginsipx* also curious, since i got almost all the supported systems by xmtp sdks (android, musl, native linux/macos) cross-compiling, what it would take to get iOS cross compile working again in NixOS. as far as I understand it, iphone/ios cross compile has been broken for some time now, but i have a morbid curiosity about the iphone64 cross compile. does anyone have an estimate or gut feel on how much actual work there is to get an iphone compile working? Right now xmtp uses a really hacky way to compile to iphone via impurity/xcode that can be improved with compose xcodeenv, but i'm thinking of what it would take to get the official working iphone64 crossSystem working again. if i ever have some free time i'd love to pursue getting that into nixpkgs After a quick trial it seems an iphone cross fails while building rt-compiler 19:48:25
@alexfmpe:matrix.orgalexfmpe
In reply to @insipx:matrix.org

also curious, since i got almost all the supported systems by xmtp sdks (android, musl, native linux/macos) cross-compiling, what it would take to get iOS cross compile working again in NixOS. as far as I understand it, iphone/ios cross compile has been broken for some time now, but i have a morbid curiosity about the iphone64 cross compile. does anyone have an estimate or gut feel on how much actual work there is to get an iphone compile working? Right now xmtp uses a really hacky way to compile to iphone via impurity/xcode that can be improved with compose xcodeenv, but i'm thinking of what it would take to get the official working iphone64 crossSystem working again. if i ever have some free time i'd love to pursue getting that into nixpkgs

After a quick trial it seems an iphone cross fails while building rt-compiler

I almost got around to that rabbit hole in a previous life/job.
There wasn't much consensus on how much one should build with nix vs apple toolchain.
21:25:19

Show newer messages


Back to Room ListRoom Version: 6