!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

563 Members
120 Servers

Load older messages


SenderMessageTime
3 Apr 2026
@insipx:matrix.orginsipxoh interesting. by "your toolchain" do you mean something that is not xcodeenv or the impure xcode symlinks nix is creating ? So something like a nix stdenv clang/llvm?23:57:30
@insipx:matrix.orginsipx* oh interesting. by "our toolchain" do you mean something that is not xcodeenv or the impure xcode symlinks nix is creating ? So something like a nix stdenv clang/llvm?23:57:38
4 Apr 2026
@emilazy:matrix.orgemilyyes00:17:16
@emilazy:matrix.orgemilyiOS should be "just another triple" for cross compilation for the most part. though I think actually getting the SDK is going to be slightly annoying since it can't be downloaded from the software update command line tools like we do for the macOS one I guess. but you can just pull the source out of our Xcode package that requires you to manually inject it into the store or w/e00:18:26
@emilazy:matrix.orgemilywhen you start caring about the letter of App Store requirements is when it gets tricky00:18:40
@reckenrode:matrix.orgRandy Eckenrode The apple-sdk package would have to be modified to source frameworks from Xcode because iOS stuff isn’t included in the SDK we use. 01:09:19
@reckenrode:matrix.orgRandy Eckenrode(Source them for iOS.)01:10:10
@reckenrode:matrix.orgRandy EckenrodeI assume “our toolchain” as in the upstream LLVM we build. It can be tricky because if we are ahead of Apple’s LLVM fork, symbols from upstream LLVM can be flagged as from a beta Xcode release and get your app rejected. (This is less risky due to using the system libc++, but it could possibly happen due to something like compiler-rt I guess.)01:11:56
@insipx:matrix.orginsipxRedacted or Malformed Event01:16:39
5 Apr 2026
@ritiek:matrix.orgritiek changed their profile picture.01:18:05
@slushee:crabsin.spaceSlushee left the room.19:14:56
6 Apr 2026
@insipx:matrix.orginsipxRedacted or Malformed Event15:21:54
@insipx:matrix.orginsipx * alexfmpe: i'm not quite sure how but i screwed up the pr diff with jj while trying to push up the comment. i've fixed it on my fork https://github.com/insipx/nixpkgs/commit/32d5424a4af4ac6f6177ffb291066cb18ff4e36f if you don't mind reopening that PR. it seems it autoclosed once it saw the insane amount of files touched, the pr: https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+author%3Ainsipx+is%3Aclosed 15:22:28
@insipx:matrix.orginsipx * alexfmpe: i'm not quite sure how but i screwed up the pr diff with jj while trying to push up the comment. i've fixed it on my fork https://github.com/insipx/nixpkgs/commit/32d5424a4af4ac6f6177ffb291066cb18ff4e36f if you don't mind reopening that PR. it seems it autoclosed once it saw the insane amount of files touched, the pr: https://github.com/NixOS/nixpkgs/pull/505820 15:22:43
@insipx:matrix.orginsipx* ~ i'm not quite sure how but i screwed up the pr diff with jj while trying to push up the comment. i've fixed it on my fork https://github.com/insipx/nixpkgs/commit/32d5424a4af4ac6f6177ffb291066cb18ff4e36f if you don't mind reopening that PR. it seems it autoclosed once it saw the insane amount of files touched, the pr: https://github.com/NixOS/nixpkgs/pull/505820~15:24:41
@alexfmpe:matrix.orgalexfmpe insipx: I could in theory but the re-open PR button is blocked now due to the new PR from the same branch 15:34:15
@insipx:matrix.orginsipxRedacted or Malformed Event23:38:39
7 Apr 2026
@eymeric:onyx.ovhEymeric joined the room.12:50:03
@insipx:matrix.orginsipxScreenshot 2026-04-07 at 7.08.13 PM.png
Download Screenshot 2026-04-07 at 7.08.13 PM.png
23:09:11
@insipx:matrix.orginsipx

🤞so far i got compiler-rt working for iOS target, tbd if this hello build finishes and whether it translates to stuff i actually need it for

as far as useiOSPrebuilt goes, that's part of the build in sdk-pkgs that recurses infinitely b/c of xcode/apple-sdk. i'm assuming usePrebuilt means use the clang that's built with xcode rather than building it ourselves right? is it ok to re-use the xcode in nixpkgs there? I'm not sure how else to avoid the recursion in that section

23:11:40
@insipx:matrix.orginsipx *

🤞so far i got compiler-rt working for iOS target, tbd if this hello build finishes and whether it translates to stuff i actually need it for

as far as useiOSPrebuilt goes, that's part of the build in sdk-pkgs that recurses infinitely b/c of xcode/apple-sdk. i'm assuming usePrebuilt means use the clang that's built with xcode rather than building clang with nixpkgs llvm right? is it ok to re-use the xcode in nixpkgs there? I'm not sure how else to avoid the recursion in that section

23:12:16
9 Apr 2026
@flashonfire:lithium.ovhGuillaume joined the room.10:20:23
10 Apr 2026
@siraben:matrix.orgsirabengetting cosmopolitan as a cross compilation target working14:46:27
@siraben:matrix.orgsirabenwas about to build a fat binary on x86 linux and execute it on aarch64 darwin14:47:02
@winter:catgirl.cloudWinterhow invasive are the needed changes out of curiosity14:48:16
@siraben:matrix.orgsiraben
$ uname -mpsrv; sha256sum ./hello; ./hello     
Linux 6.18.9 #1-NixOS SMP PREEMPT_DYNAMIC Fri Feb  6 15:57:45 UTC 2026 x86_64 unknown
60e678addbe03a751c257e02019bb6c85636d7b6d6cc85c6f85e7fe0ef515dbf  ./hello
Hello, world!
$ uname -mpsrv; sha256sum ./hello; ./hello                  
Darwin 25.4.0 Darwin Kernel Version 25.4.0: Thu Mar 19 19:32:59 PDT 2026; root:xnu-12377.101.15~1/RELEASE_ARM64_T8122 arm64 arm
60e678addbe03a751c257e02019bb6c85636d7b6d6cc85c6f85e7fe0ef515dbf  ./hello
Hello, world!
16:31:49
@siraben:matrix.orgsiraben

lol

$ file hello
hello: DOS/MBR boot sector; partition 1 : ID=0x7f, active, start-CHS (0x0,0,1), end-CHS (0x3ff,255,63), startsector 0, 4294967295 sectors
16:32:56
@siraben:matrix.orgsirabenworks: hello, tree, jq, lua, less, nano, sqlite, curl, bc, gnused, gnugrep16:55:47
@siraben:matrix.orgsiraben* works: hello, tree, jq, lua, less, nano, sqlite, curl (http only), bc, gnused, gnugrep16:56:02
@siraben:matrix.orgsirabentrying to minimize the patches needed16:59:12

There are no newer messages yet.


Back to Room ListRoom Version: 6