a759cc912f
This does almost everything until the final build and fails there because we are using too modern software with a too old project, I think. Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
32 lines
891 B
Nix
32 lines
891 B
Nix
{ sources ? import ../npins, pkgs ? import sources.nixpkgs {}, lib ? pkgs.lib, android ? import sources.android {} }:
|
|
let
|
|
androidSdk = android.sdk (sdkPkgs: with sdkPkgs; [
|
|
cmdline-tools-latest
|
|
build-tools-30-0-3
|
|
platform-tools
|
|
platforms-android-30
|
|
emulator
|
|
]);
|
|
|
|
in lib.makeScope pkgs.newScope (self: with self; {
|
|
inherit androidSdk;
|
|
|
|
gradle = pkgs.gradle_7;
|
|
|
|
updateLocks = callPackage ./update-locks.nix { };
|
|
|
|
buildMavenRepo = callPackage ./maven-repo.nix { };
|
|
|
|
mavenRepo = buildMavenRepo {
|
|
name = "nix-maven-repo";
|
|
repos = [
|
|
"https://dl.google.com/dl/android/maven2"
|
|
"https://repo1.maven.org/maven2"
|
|
"https://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev"
|
|
"https://plugins.gradle.org/m2"
|
|
];
|
|
deps = builtins.fromJSON (builtins.readFile ./deps.json);
|
|
};
|
|
|
|
builtWithGradle = callPackage ./build.nix { };
|
|
})
|