-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Aurora Services? #122
Comments
This should be it:
|
Thanks! I'm trying to add a module to build it from source. But can't figure out how do you generate gradle-env jsons. Perhaps you use gradle2nix? |
Aurora Services seems to be forked from Fdroid privileged-extension, so it should be fairly easy to implement it as a module, though it wont be a big module since it doesnt support adding custom repos for well known reasons like fdroid does. Also no i have never used gradle2nix :( |
Well, how do you generate these insane jsons then? Yep, I've copied f-droid module but can't get gradle environment working. |
Are you talking specifically about me? |
Not sure actually. Anyway, I already figured it out, indeed I have to use gradle2nix. |
Are you in the matrix channel, would you be down to share what ever you are doing there? |
Nope, I'm not even sure what channel you are talking about :) |
Yup, got in there. |
Well, I've tried to replicate F-Droid extension, but have at least two issues:
|
Well, I've managed to generate the env. gradle2nix has to be invoked like { pkgs ? import <nixpkgs> { config.android_sdk.accept_license = true; } }:
let
buildToolsVersion = "30.0.3";
androidComposition = pkgs.androidenv.composeAndroidPackages {
toolsVersion = "26.1.1";
platformVersions = [
"30"
];
buildToolsVersions = [ "30.0.3" ];
includeExtras = [
];
};
fhs = pkgs.buildFHSUserEnv {
name = "android-env";
targetPkgs = pkgs: with pkgs;
[
git
gitRepo
gnupg
python2
curl
procps
openssl
gnumake
nettools
androidenv.androidPkgs_9_0.platform-tools
pkgs.androidenv.androidPkgs_9_0.androidsdk
jdk
schedtool
utillinux
m4
gperf
perl
libxml2
zip
unzip
bison
flex
lzop
python3
];
multiPkgs = pkgs: with pkgs;
[
zlib
ncurses5
];
runScript = "bash";
profile = ''
export ALLOW_NINJA_ENV=true
export USE_CCACHE=1
export ANDROID_JAVA_HOME=${pkgs.jdk.home}
export LD_LIBRARY_PATH=/usr/lib:/usr/lib32
export ANDROID_SDK_ROOT=${pkgs.androidenv.androidPkgs_9_0.androidsdk.out}
export ANDROID_SDK_ROOT="${androidComposition.androidsdk}/libexec/android-sdk";
export ANDROID_NDK_ROOT="${androidComposition.androidsdk}/libexec/android-sdk/ndk-bundle";
export GRADLE_OPTS="-Dorg.gradle.project.android.aapt2FromMavenOverride=${androidComposition.androidsdk}/libexec/android-sdk/build-tools/${buildToolsVersion}/aapt2";
'';
};
in
pkgs.stdenv.mkDerivation {
name = "android-env-shell";
nativeBuildInputs = [ fhs ];
shellHook = "exec android-env";
} See also: tadfisher/gradle2nix#13 Though that's not everything, the build still fails. |
Aha, seems like the right way to invoke that shite is |
Most of the users would like to be able to install and update Play Store apps.
https://gitlab.com/AuroraOSS/AuroraServices provides us a way to have background application updates.
It would be very convenient to have it as a module.
The text was updated successfully, but these errors were encountered: