mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
anbox: Prevent eval failure on non-existent arches
This commit is contained in:
parent
db7be52988
commit
af4ad24d73
@ -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" ];
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user