add a nix development flake and black theme#103
Conversation
|
I haven't really used nix in the past, so this might be wrong, but it seems like cargo is not a command in your system? If you have cargo installed and runnable via your terminal, then id assume this shouldn't require any extra configuration (but from what ive seen online, it seems like Android Studio is very hard to setup in nix? So am not sure if this might need any extra cfg) Also can the build tools version and target api be taken from the release-android.yml or the build files directly?looking at the flake.nix file, it could become hard to maintain if there are multiple places were bumps have to be made for the same reason? Maybe after this builds, we could discuss about splitting the pr and about the kotlin changes.. |
That's what I thought of first, which is why both
I would think so too...
To clarify, I'm just trying to run
Yes, I believe I can do that from
Oh, sorry about that. In hindsight this should have been two small PRs. |
It's not as simple as I thought actually, since the I can of course take the sdk version from |
This is a mistake, will fix it now, both should actually be 37
Um, maybe if there is another nixpkg which is similar to this, that can be referred for getting it to build, else maybe delaying it until maybe rust integration is easier, could be better?
No worries, was just mentioning it (can tell its mostly for fixing the build atm), for when i look back (am kinda forgetful due to repo juggling) |
Okay, you can disregard my previous comment then; getting android versions from |
|
In terms of getting it to build, I'm trying to manually execute |
Maybe compile targets? Have you added all 4 android targets (ndk requires all even when you are compiling for only one aarch). Normally, cargo logs appear on clicking the topmost entry in the build tab to the left, and directly when running, so maybe scrolling up a little further could help (don't know the reason for the issue, so am just providing random suggestions) |
In the PR I add a flake that simplifies developing this app on nixos, plus a black/OLED/high-contrast-dark theme to the app itself which is something I personally want to use.
This is a draft since I'm likely missing something with my addition of the theme (not experienced at all with working with this sort of app) and I've been unable to compile it due to the following error(s):
Some guidance would be appreciated, as I've looked through
shared/build.gradle.ktsand haven't found any possible problem with cargo.note: for now the only thing different in the
BlackColorSchemecompared to theDarkColorSchemeis thebackgroundvalue, since I wanted to try it out first before modifying the colors extensively.