summary refs log tree commit diff
diff options
context:
space:
mode:
authorSamuel Dionne-Riel <samuel@dionne-riel.com>2021-06-03 16:40:12 -0400
committerrnhmjoj <rnhmjoj@inventati.org>2023-09-04 08:51:54 +0200
commit0d09cc7cf6588be8efb4d3dda99b9c1e7de1919b (patch)
treea6529544a57c999b47c973af98bfdba289b26458
parent12b9e2b25903049f5dddbc4f03751134dda3777f (diff)
downloadnixpkgs-0d09cc7cf6588be8efb4d3dda99b9c1e7de1919b.tar
nixpkgs-0d09cc7cf6588be8efb4d3dda99b9c1e7de1919b.tar.gz
nixpkgs-0d09cc7cf6588be8efb4d3dda99b9c1e7de1919b.tar.bz2
nixpkgs-0d09cc7cf6588be8efb4d3dda99b9c1e7de1919b.tar.lz
nixpkgs-0d09cc7cf6588be8efb4d3dda99b9c1e7de1919b.tar.xz
nixpkgs-0d09cc7cf6588be8efb4d3dda99b9c1e7de1919b.tar.zst
nixpkgs-0d09cc7cf6588be8efb4d3dda99b9c1e7de1919b.zip
anbox: be ten times more patient when launching
This helps on slower devices, at the cost of making the command
"resolve" less quickly.

It replaces commands "failing because things weren'd ready", but things
actually still succeeding by commands *possibly* failing in 10× more
time.
-rw-r--r--pkgs/os-specific/linux/anbox/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/anbox/default.nix b/pkgs/os-specific/linux/anbox/default.nix
index aa5f362665e..52942a4330e 100644
--- a/pkgs/os-specific/linux/anbox/default.nix
+++ b/pkgs/os-specific/linux/anbox/default.nix
@@ -125,6 +125,12 @@ stdenv.mkDerivation rec {
       url = "https://git.alpinelinux.org/aports/plain/community/anbox/lxc4.patch?id=64243590a16aee8d4e72061886fc1b15256492c3";
       sha256 = "1da5xyzyjza1g2q9nbxb4p3njj2sf3q71vkpvmmdphia5qnb0gk5";
     })
+    # Wait 10× more time when starting
+    # Not *strictly* needed, but helps a lot on slower hardware
+    (fetchpatch {
+      url = "https://git.alpinelinux.org/aports/plain/community/anbox/give-more-time-to-start.patch?id=058b56d4b332ef3379551b343bf31e0f2004321a";
+      sha256 = "0iiz3c7fgfgl0dvx8sf5hv7a961xqnihwpz6j8r0ib9v8piwxh9a";
+    })
   ];
 
   postInstall = ''