anbox: add postmarketos image

authored by Samuel Dionne-Riel and committed by rnhmjoj eaa7d28b 7425d925

+41 -17
+19
pkgs/os-specific/linux/anbox/anbox-image.nix
··· 1 + { stdenv, fetchurl }: 2 + 3 + let 4 + imgroot = "https://build.anbox.io/android-images"; 5 + in 6 + { 7 + armv7l-linux = fetchurl { 8 + url = imgroot + "/2017/06/12/android_1_armhf.img"; 9 + sha256 = "1za4q6vnj8wgphcqpvyq1r8jg6khz7v6b7h6ws1qkd5ljangf1w5"; 10 + }; 11 + aarch64-linux = fetchurl { 12 + url = imgroot + "/2017/08/04/android_1_arm64.img"; 13 + sha256 = "02yvgpx7n0w0ya64y5c7bdxilaiqj9z3s682l5s54vzfnm5a2bg5"; 14 + }; 15 + x86_64-linux = fetchurl { 16 + url = imgroot + "/2018/07/19/android_amd64.img"; 17 + sha256 = "1jlcda4q20w30cm9ikm6bjq01p547nigik1dz7m4v0aps4rws13b"; 18 + }; 19 + }.${stdenv.system} or (throw "Unsupported platform ${stdenv.system}")
+3 -17
pkgs/os-specific/linux/anbox/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, fetchurl 2 + , callPackage 2 3 , fetchpatch 3 4 , cmake, pkg-config, dbus, makeWrapper 4 5 , boost ··· 151 152 chmod +x $out/bin/anbox-application-manager 152 153 ''; 153 154 154 - passthru.image = let 155 - imgroot = "https://build.anbox.io/android-images"; 156 - in 157 - { 158 - armv7l-linux = fetchurl { 159 - url = imgroot + "/2017/06/12/android_1_armhf.img"; 160 - sha256 = "1za4q6vnj8wgphcqpvyq1r8jg6khz7v6b7h6ws1qkd5ljangf1w5"; 161 - }; 162 - aarch64-linux = fetchurl { 163 - url = imgroot + "/2017/08/04/android_1_arm64.img"; 164 - sha256 = "02yvgpx7n0w0ya64y5c7bdxilaiqj9z3s682l5s54vzfnm5a2bg5"; 165 - }; 166 - x86_64-linux = fetchurl { 167 - url = imgroot + "/2018/07/19/android_amd64.img"; 168 - sha256 = "1jlcda4q20w30cm9ikm6bjq01p547nigik1dz7m4v0aps4rws13b"; 169 - }; 170 - }.${stdenv.system} or null; 155 + passthru.image = callPackage ./postmarketos-image.nix { }; 156 + passthru.postmarketos-image = callPackage ./anbox-image.nix { }; 171 157 172 158 meta = with lib; { 173 159 homepage = "https://anbox.io";
+19
pkgs/os-specific/linux/anbox/postmarketos-image.nix
··· 1 + { stdenv, fetchurl }: 2 + 3 + let 4 + imgroot = "https://web.archive.org/web/20211027150924/https://anbox.postmarketos.org"; 5 + in 6 + { 7 + armv7l-linux = fetchurl { 8 + url = imgroot + "/android-7.1.2_r39.1-anbox_armv7a_neon-userdebug.img"; 9 + sha256 = "1bgzqw4yp52a2q40dr1jlay1nh73jl5mx6wqsxvpb09xghxsng0a"; 10 + }; 11 + aarch64-linux = fetchurl { 12 + url = imgroot + "/android-7.1.2_r39-anbox_arm64-userdebug.img"; 13 + sha256 = "0dx8mhfcjbkak982zfh65bvy35slz5jk31yl4ara50ryrxsp32nx"; 14 + }; 15 + x86_64-linux = fetchurl { 16 + url = imgroot + "/android-7.1.2_r39-anbox_x86_64-userdebug.img"; 17 + sha256 = "16vmiz5al2r19wjpd44nagvz7d901ljxdms8gjp2w4xz1d91vzpm"; 18 + }; 19 + }.${stdenv.system} or (throw "Unsupported platform ${stdenv.system}")