3
0
Fork 0
forked from mirrors/nixpkgs

anbox: Prevent eval failure on non-existent arches

This commit is contained in:
Sarah Brofeldt 2019-03-22 23:27:26 +01:00
parent db7be52988
commit af4ad24d73

View file

@ -97,31 +97,28 @@ stdenv.mkDerivation rec {
passthru.image = let
imgroot = "https://build.anbox.io/android-images";
arches = {
armv7l-linux = {
in
{
armv7l-linux = fetchurl {
url = imgroot + "/2017/06/12/android_1_armhf.img";
sha256 = "1za4q6vnj8wgphcqpvyq1r8jg6khz7v6b7h6ws1qkd5ljangf1w5";
};
aarch64-linux = {
aarch64-linux = fetchurl {
url = imgroot + "/2017/08/04/android_1_arm64.img";
sha256 = "02yvgpx7n0w0ya64y5c7bdxilaiqj9z3s682l5s54vzfnm5a2bg5";
};
x86_64-linux = {
x86_64-linux = fetchurl {
url = imgroot + "/2018/07/19/android_amd64.img";
sha256 = "1jlcda4q20w30cm9ikm6bjq01p547nigik1dz7m4v0aps4rws13b";
};
};
in
fetchurl {
inherit (arches.${stdenv.system}) url sha256;
};
}.${stdenv.system} or null;
meta = with stdenv.lib; {
homepage = https://anbox.io;
description = "Android in a box.";
license = licenses.gpl2;
maintainers = with maintainers; [ edwtjo ];
platforms = platforms.linux;
platforms = [ "armv7l-linux" "aarch64-linux" "x86-64-linux" ];
};
}