fix path
Some checks failed
Build apps to test the derivations / generate-matrix (push) Has been cancelled
Build Documentation / build-docs (push) Has been cancelled
Build apps to test the derivations / build-app (push) Has been cancelled

This commit is contained in:
Osman Faruk Bayram 2025-11-07 11:32:43 +03:00
parent 07aee26a99
commit ba33a08062

View file

@ -2,6 +2,9 @@
pkgs,
inputs,
lib,
abi ? "arm64-v8a", # "armeabi-v7a", "x86", "x86_64"
flavor ? "full", # "amazon", "play"
# debug/release currently only debug
...
}:
let
@ -30,7 +33,7 @@ let
}).gradle-init;
in
pkgs.stdenv.mkDerivation rec {
name = "ankidroid-${version}.apk";
name = "ankidroid-${flavor}-${abi}-${version}.apk";
version = "2.23.0alpha6";
src = pkgs.fetchFromGitHub {
@ -69,7 +72,7 @@ pkgs.stdenv.mkDerivation rec {
'';
installPhase = ''
cp AnkiDroid/build/outputs/apk/release/AnkiDroid-release-unsigned.apk $out
cp AnkiDroid/build/outputs/apk/${flavor}/debug/AnkiDroid-${flavor}-${abi}-debug.apk $out
'';
meta = {
description = "Anki flashcards on Android";