Commit Graph

39 Commits

Author SHA1 Message Date
rnhmjoj
705b998b83
anbox: always use postmarket OS images 2023-09-11 08:09:37 +02:00
Matt Votava
b3bb611ce6
nixos/tests/anbox: init 2023-09-05 10:09:45 +02:00
Samuel Dionne-Riel
eaa7d28b97
anbox: add postmarketos image 2023-09-05 10:09:44 +02:00
Samuel Dionne-Riel
5adb739599
anbox: add patch to provide window icon
Currently the windows don't provide icons. It's rather inconvenient for
many reasons.

This patch forwards the icons from the Android application to the
window.

Patch origin: 8922628786

Rebased on top of the current tip of anbox master

See also: https://github.com/anbox/anbox/issues/1514
2023-09-04 08:51:55 +02:00
Samuel Dionne-Riel
73767bb345
anbox: fix WM_CLASS
SDL defaults to reading the executable from the running app

 - 64724db0a1/src/video/x11/SDL_x11video.c (L69-L71)

Which in turn gives this from xprop:

```
WM_CLASS(STRING) = ".anbox-wrapped", ".anbox-wrapped"
```

Meaning that any special casing a window manager does will be broken.

This will also fallback correctly on Wayland:

 - d956636c85/src/video/wayland/SDL_waylandvideo.c (L93-L99)
2023-09-04 08:51:54 +02:00
Samuel Dionne-Riel
e8a39314fc
anbox: ensure .desktop files use a correct anbox
This fixes two issues

  - store path is hardcoded in desktop files
  - `.anbox-wrapped` is used in desktop files
2023-09-04 08:51:54 +02:00
Samuel Dionne-Riel
11aa36c61e
anbox: fix and reclaim anbox-application-manager
It now *strictly* is a shortcut to launch the application manager.
2023-09-04 08:51:54 +02:00
Samuel Dionne-Riel
0c30c277a6
anbox: remove (thankfully inactive) "su" default
The `anbox-application-manager` helper, which is actually broken as it's
not installed as +x, starts "su" by default, which might not be
desirable, depending on the end-user's wishes.
2023-09-04 08:51:54 +02:00
Samuel Dionne-Riel
0d09cc7cf6
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.
2023-09-04 08:51:54 +02:00
Samuel Dionne-Riel
12b9e2b259
anbox: fix compatibility with LXC 4
This patch is used actively by postmarketOS, which in turn *just* uses
Alpine Linux packages for anbox.
2023-09-04 08:51:53 +02:00
Samuel Dionne-Riel
0a9b1bebe6
anbox: 2021-10-20 -> 2023-02-03 2023-09-04 08:51:53 +02:00
Artturin
3251013cc1 treewide: env.NIX_CFLAGS_COMPILE use toString on result of optionals
env values must be strings
2023-02-22 21:23:05 +02:00
Artturin
f9fdf2d402 treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00
Vladimír Čunát
68b1727907
anbox, arc_unpacker: fix build after defaulting to gcc12 2023-02-04 12:36:34 +01:00
Fabián Heredia Montiel
0cf5d85f0c treewide: add gcc12 flags 2023-01-27 21:20:52 -06:00
Rick van Schijndel
f433d91bb3 anbox: drop kernel modules package
All builds are broken:
- 4.14
- 4.19
- 5.4

https://hydra.nixos.org/eval/1761072?filter=anbox&compare=1760998&full=#tabs-still-fail

Let's just drop it.

This leaves the anbox module possibly in a broken-ish state,
but I'm not sure what to do about it.
2022-05-10 21:15:48 +02:00
Alyssa Ross
ae8e8aaee7 treewide: remove obsolete kernel version checks
We no longer support any Linux kernel older than 4.9.
2022-04-08 09:56:09 +00:00
Jonathan Ringer
09837994ba
anbox: 2020-11-29 -> 2021-10-20, fix build 2022-02-08 22:19:10 -08:00
fortuneteller2k
ce9315076c linuxPackages.anbox: 2019-11-15 -> 2020-06-14, mark broken for kernels
not supported
2021-05-13 11:23:14 -07:00
Alyssa Ross
52cd3538ff linux: remove remnants of grsecurity
Nixpkgs hasn't supported grsecurity kernels since 2017, so unless
anybody is manually enabling the grsecurity feature to make these
small kernel tweaks this is dead code.

This means we don't actually support any "features" in the kernel
common-config any more, but I've left the argument there because it's
conceivable we could have some again in future.
2021-04-06 09:48:56 +00:00
Ben Siraphob
16d91ee628 pkgs/os-specific: stdenv.lib -> lib 2021-01-17 23:26:08 +07:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Jan Tojnar
f19eb635b4
Merge branch 'master' into staging-next
b04fc593e7 seems to have accidentally changed mkDerivation function for dfilemanager and solarus-quest-editor so I have reverted that here.
2021-01-07 13:04:31 +01:00
Fabián Heredia Montiel
bce6d7acfe anbox: unstable-2019-11-15 -> unstable-2020-11-29 2021-01-03 19:55:11 -06:00
Ben Siraphob
b04fc593e7 treewide: cmake buildInputs to nativeBuildInputs, minor cleanups 2021-01-01 11:52:33 +07:00
Jonathan Ringer
c6afa8820b anbox: kernel.features can be null 2020-11-01 19:59:06 -08:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Herwig Hochleitner
9d208a6af1 anbox: 2019-05-03 -> 2019-11-15 2019-11-24 19:07:59 +01:00
volth
08f68313a4 treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
Herwig Hochleitner
840e16b1a9 anbox-modules: 2018-09-08 -> 2019-07-13 2019-07-31 16:55:43 +02:00
Herwig Hochleitner
94f412e254 anbox: fix build
see https://github.com/anbox/anbox/issues/1124
2019-07-31 16:54:12 +02:00
volth
f3282c8d1e treewide: remove unused variables (#63177)
* treewide: remove unused variables

* making ofborg happy
2019-06-16 19:59:05 +00:00
Lars Jellema
80a10b1a5f
anbox: unstable-2019-03-07 -> unstable-2019-05-03
This fixes a build issue with protobuf that was seemingly resolved
upstream.
2019-05-14 01:58:50 +02:00
Benjamin Staffin
fba697daef anbox: fix build on x86_64-linux
`x86-64-linux` was a typo; there needs to be an underscore in there.
2019-03-23 15:57:07 -04:00
Gabriel Ebner
d5a533de97
Merge pull request #58143 from worldofpeace/anbox-nits
anbox: cleanup
2019-03-23 18:34:36 +01:00
Sarah Brofeldt
af4ad24d73 anbox: Prevent eval failure on non-existent arches 2019-03-23 08:44:19 +01:00
worldofpeace
1e2b834cf0 anbox: cleanup
Use trivial builders for all the text manipulation and use runtimeShell
2019-03-22 15:22:40 -04:00
Edward Tjörnhammar
e42b5d9326 anbox: init at 2019-03-07
Co-authored-by: Luke Adams <luke.adams@belljar.io>
Co-authored-by: Volth <volth@webmaster.ms>
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
Co-authored-by: Edward Tjörnhammar <ed@cflags.cc>
Co-authored-by: Gabriel Ebner <gebner@gebner.org>
2019-03-18 09:28:01 +01:00
Edward Tjörnhammar
dfa314c382 linuxPackages.anbox: init at 2018-09-08
Co-authored-by: Luke Adams <luke.adams@belljar.io>
Co-authored-by: Volth <volth@webmaster.ms>
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
Co-authored-by: Edward Tjörnhammar <ed@cflags.cc>
Co-authored-by: Gabriel Ebner <gebner@gebner.org>
2019-03-18 09:23:08 +01:00