New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] anbox: init at 2018-01-06 #33970
Conversation
We also did some work to get it working here in the past: https://github.com/volth/nixpkgs/commits/anbox However it was never finished - maybe you can borrow some code. |
That's awesome! Thanks for the link. I like how the linked commits include process-cpp and friends in the anbox cfg for simplicity. Main issue I had to hunt down was newer boost versions (>=1.60) causing issues due to the use of deprecated functions – Anbox only used deprecated functions in one location (might submit upstream pr) but process-cpp and libproperties haven't been updated I suppose due to Ubuntu using an older boost dist-wide... Also had no idea about fetchbzr Would eventually like to test this on ARM on my rpi2/nitrogen6x as that's my use case. |
allows auto-selection by images.${stdenv.system}
In the module you will need also some networking for LXC, if I remember correctly. |
Since volth's branch is relatively complete I'm going to overlay my changes on top of those commits. I've rebased onto master and resolved merge conflicts in this branch, which will eventually become the one in this pr |
description = "C++ API for D-BUS"; | ||
license = licenses.gpl2Plus; | ||
platforms = platforms.linux; | ||
maintainers = [ maintainers.goibhniu ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is @goibhniu ok with that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maintainer left in due to copy-pasting ;)
most of my commits will be replaced by those in Volth's branch when I get a chance to finish that
description = "C++ API for D-BUS"; | ||
license = licenses.gpl2Plus; | ||
platforms = platforms.linux; | ||
maintainers = [ maintainers.goibhniu ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here.
truncate -s 0 tests/CMakeLists.txt | ||
''; | ||
|
||
meta = with stdenv.lib; { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
meta is incorrect
description = "C++ API for D-BUS"; | ||
license = licenses.gpl2Plus; | ||
platforms = platforms.linux; | ||
maintainers = [ maintainers.goibhniu ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here.
Any progress? |
Not recently. I plan to finish this PR sometime early to mid May once my classes finish. |
ETA? |
I'd also like to see this finished, are you still working on it? |
I personally no longer need it and stopped working on it as a result. Sorry about that... |
Motivation for this change
pr for tracking
Anbox allows execution of Android apps within a lxc namespace on the host kernel.
Requires
binder
andashmem
kmods (included in src), in addition to application of kernel patches.Probably need to add a NixOS module for this eventually.
Needed to add dbus-cpp (not the same as dbus-cplusplus) and a few other libraries.
currently library commits are after Anbox, need to rebaseRebased as much as possible (now anbox init is after deps). Still need to reorder to be in the following order for bisectability:
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)