I’m working with a C++ cmake-based library that builds with nix on darwin and Linux. It’s setup to build using ios.toolchain.cmake:
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=ios.toolchain.cmake -DIOS_PLATFORM=OS64 -DCMAKE_PREFIX_PATH=/usr/local ..
Is there a simple way of executing this with nix? Or is there an idiomatic way that’s likely to work with minimal changes?
I’ve seen the beginner’s guide to cross-compilation, but this seems to presume that you’ve got your repository set up to integrate into nixpkgs, and while it requires XCode (and I worked on getting newer versions supported), and I employed crossSystem, I eventually hit a dead end of things not working. However, I did not try asking on here.