Add documentation and TODOs for Tailscale APK package

Co-authored-by: osbm <74963545+osbm@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-08-19 21:33:55 +00:00
parent c0dc31f595
commit 0c1658f6d0
2 changed files with 29 additions and 1 deletions

View file

@ -0,0 +1,22 @@
# Tailscale Android APK
This package builds the Tailscale Android application from source.
## Status
🚧 **Work in Progress** - Package structure created but needs completion:
### TODO:
1. **Update version**: Check [Tailscale Android releases](https://github.com/tailscale/tailscale-android/releases) for the latest version
2. **Update hash**: Run `nix-prefetch-url --unpack https://github.com/tailscale/tailscale-android/archive/v{VERSION}.tar.gz` to get the correct hash
3. **Generate dependencies**: Run `nix build .#tailscale.mitmCache.updateScript` to generate deps.json
4. **Verify build output**: Check if the APK output path is correct (might be `app-universal-release-unsigned.apk`)
5. **Test build**: Run `nix build .#tailscale` to verify it builds successfully
## About Tailscale
Tailscale is a VPN service that makes the devices and applications you own accessible anywhere in the world, securely and effortlessly. It enables encrypted point-to-point connections using the open source WireGuard protocol.
- **Repository**: https://github.com/tailscale/tailscale-android
- **License**: BSD-3-Clause
- **Build System**: Gradle

View file

@ -1,3 +1,6 @@
# Tailscale Android APK
# Latest releases: https://github.com/tailscale/tailscale-android/releases
# To get the hash: nix-prefetch-url --unpack https://github.com/tailscale/tailscale-android/archive/v{VERSION}.tar.gz
{ {
stdenv, stdenv,
fetchFromGitHub, fetchFromGitHub,
@ -32,12 +35,14 @@ let
in in
stdenv.mkDerivation (finalAttrs: rec { stdenv.mkDerivation (finalAttrs: rec {
name = "tailscale-${version}.apk"; name = "tailscale-${version}.apk";
version = "1.80.1"; # TODO: Update version to latest release from https://github.com/tailscale/tailscale-android/releases
version = "1.78.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tailscale"; owner = "tailscale";
repo = "tailscale-android"; repo = "tailscale-android";
rev = "v${version}"; rev = "v${version}";
# TODO: Update hash - run `nix-prefetch-url --unpack https://github.com/tailscale/tailscale-android/archive/v${version}.tar.gz`
hash = "sha256-0000000000000000000000000000000000000000000="; hash = "sha256-0000000000000000000000000000000000000000000=";
leaveDotGit = true; leaveDotGit = true;
}; };
@ -82,6 +87,7 @@ stdenv.mkDerivation (finalAttrs: rec {
}; };
installPhase = '' installPhase = ''
# TODO: Verify APK output path - might be app-universal-release-unsigned.apk or app-release.apk
cp app/build/outputs/apk/release/app-release.apk $out cp app/build/outputs/apk/release/app-release.apk $out
''; '';
}) })