https://github.com/phenax/nix-android-apps
An experimental nix overlay to support installing/updating android apps declaratively
https://github.com/phenax/nix-android-apps
android nix
Last synced: 3 months ago
JSON representation
An experimental nix overlay to support installing/updating android apps declaratively
- Host: GitHub
- URL: https://github.com/phenax/nix-android-apps
- Owner: phenax
- License: mit
- Created: 2022-06-04T10:21:00.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-04T10:24:49.000Z (about 3 years ago)
- Last Synced: 2025-01-16T19:52:22.509Z (5 months ago)
- Topics: android, nix
- Language: Nix
- Homepage:
- Size: 19.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nix android apps [WIP]
An experimental nix overlay to support installing/updating android apps declaratively.Currently it installs apps using adb but I'm planning to switch to using [Nix-on-droid](https://github.com/t184256/nix-on-droid)
## Creating an installer
Example in [test.nix](./test.nix)```nix
let
android = import ./default.nix nixpkgs;
installer = mkInstaller {
packages = [
android.pkgs."com.duckduckgo.mobile.android"
android.pkgs."org.fdroid.fdroid"
android.pkgs."io.github.phenax.owyn"
];
};
in {
buildInputs = [
installer
];
}
```## Add a new package
#### From F-Droid
```bash
./scripts/new-package.sh fdroid 'com.duckduckgo.mobile.android'
```#### From apk url
```bash
./scripts/new-package.sh url \
'io.github.phenax.owyn' \
'0.0.2' \
'https://github.com/phenax/owyn-launcher/releases/download/0.0.2/app-arm64-v8a-release.apk';
```