Replies: 1 comment 3 replies
-
Just so you're aware we've extracted all of that stuff into https://github.com/rustshop/flakebox with it's own tutorials etc. Ping me on Flakebox's Matrix channel and I can try to help (though sick ATM, so less available). But I must warn you that cross-compilation is just hard and often comes down to grinding looking for combinations of things that work. I am responsible for both Fedimint and an propriety application on top that cross-compiles to bunch of Android archs, macos, ios, so I know it can be done. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a fairly simple project that is unfortunately hard to compile for all my targets. I'm trying to port all to nix + crane so I eliminate all my custom scripts that broke all the time (and maybe cut CI times).
My current strategy (as talked here) is trying to duplicate what https://github.com/dpc/fedimint/blob/master/flake.nix has, but that is pure guesswork in what to do. The other is to make this from scratch, but then I have the major complication that built with NDK broke so much and as of today I don't know how to fix it in a way that plays nice with current versions (I have a solution for an old NDK version that only work in a very OLD CI machine).
In short: The MAJOR step is how to make NDK compile with Rustqlite as dep as "simply" as
nix build -L .#droid
. I probably need this is 2 discussions but the first step is the initial setup...My current structure is:
This is a project made with only the deps listed in
Cargo.tolm
with not source yet, to simplify it.I want/need:
test, clippy
So, how to make this work "from scratch"?
Beta Was this translation helpful? Give feedback.
All reactions