anbox: add postmarketos image

This commit is contained in:
Samuel Dionne-Riel 2021-06-03 22:28:09 -04:00 committed by rnhmjoj
parent 7425d9254d
commit eaa7d28b97
No known key found for this signature in database
GPG Key ID: BFBAF4C975F76450
3 changed files with 41 additions and 17 deletions

View File

@ -0,0 +1,19 @@
{ stdenv, fetchurl }:
let
imgroot = "https://build.anbox.io/android-images";
in
{
armv7l-linux = fetchurl {
url = imgroot + "/2017/06/12/android_1_armhf.img";
sha256 = "1za4q6vnj8wgphcqpvyq1r8jg6khz7v6b7h6ws1qkd5ljangf1w5";
};
aarch64-linux = fetchurl {
url = imgroot + "/2017/08/04/android_1_arm64.img";
sha256 = "02yvgpx7n0w0ya64y5c7bdxilaiqj9z3s682l5s54vzfnm5a2bg5";
};
x86_64-linux = fetchurl {
url = imgroot + "/2018/07/19/android_amd64.img";
sha256 = "1jlcda4q20w30cm9ikm6bjq01p547nigik1dz7m4v0aps4rws13b";
};
}.${stdenv.system} or (throw "Unsupported platform ${stdenv.system}")

View File

@ -1,4 +1,5 @@
{ lib, stdenv, fetchFromGitHub, fetchurl
, callPackage
, fetchpatch
, cmake, pkg-config, dbus, makeWrapper
, boost
@ -151,23 +152,8 @@ stdenv.mkDerivation rec {
chmod +x $out/bin/anbox-application-manager
'';
passthru.image = let
imgroot = "https://build.anbox.io/android-images";
in
{
armv7l-linux = fetchurl {
url = imgroot + "/2017/06/12/android_1_armhf.img";
sha256 = "1za4q6vnj8wgphcqpvyq1r8jg6khz7v6b7h6ws1qkd5ljangf1w5";
};
aarch64-linux = fetchurl {
url = imgroot + "/2017/08/04/android_1_arm64.img";
sha256 = "02yvgpx7n0w0ya64y5c7bdxilaiqj9z3s682l5s54vzfnm5a2bg5";
};
x86_64-linux = fetchurl {
url = imgroot + "/2018/07/19/android_amd64.img";
sha256 = "1jlcda4q20w30cm9ikm6bjq01p547nigik1dz7m4v0aps4rws13b";
};
}.${stdenv.system} or null;
passthru.image = callPackage ./postmarketos-image.nix { };
passthru.postmarketos-image = callPackage ./anbox-image.nix { };
meta = with lib; {
homepage = "https://anbox.io";

View File

@ -0,0 +1,19 @@
{ stdenv, fetchurl }:
let
imgroot = "https://web.archive.org/web/20211027150924/https://anbox.postmarketos.org";
in
{
armv7l-linux = fetchurl {
url = imgroot + "/android-7.1.2_r39.1-anbox_armv7a_neon-userdebug.img";
sha256 = "1bgzqw4yp52a2q40dr1jlay1nh73jl5mx6wqsxvpb09xghxsng0a";
};
aarch64-linux = fetchurl {
url = imgroot + "/android-7.1.2_r39-anbox_arm64-userdebug.img";
sha256 = "0dx8mhfcjbkak982zfh65bvy35slz5jk31yl4ara50ryrxsp32nx";
};
x86_64-linux = fetchurl {
url = imgroot + "/android-7.1.2_r39-anbox_x86_64-userdebug.img";
sha256 = "16vmiz5al2r19wjpd44nagvz7d901ljxdms8gjp2w4xz1d91vzpm";
};
}.${stdenv.system} or (throw "Unsupported platform ${stdenv.system}")