Skip to content

Add Waydroid#140200

Merged
SuperSandro2000 merged 4 commits intoNixOS:masterfrom
CajuM:waydroid
Oct 3, 2021
Merged

Add Waydroid#140200
SuperSandro2000 merged 4 commits intoNixOS:masterfrom
CajuM:waydroid

Conversation

@CajuM
Copy link

@CajuM CajuM commented Oct 1, 2021

Motivation for this change

Waydroid was requested for packaging at #139140

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • 21.11 Release Notes (or backporting 21.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@CajuM CajuM requested review from FRidh and jonringer as code owners October 1, 2021 20:30
@github-actions github-actions bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Oct 1, 2021
@ofborg ofborg bot added 8.has: package (new) This PR adds a new package 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Oct 1, 2021
@legendofmiracles
Copy link
Contributor

Result of nixpkgs-review pr 140200 run on x86_64-linux 1

5 packages built:
  • libgbinder
  • libglibutil
  • python38Packages.gbinder-python
  • python39Packages.gbinder-python
  • waydroid

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe $PKG_CONFIG would be better here

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think specifying the .dev output is necessary here.

@SuperSandro2000 SuperSandro2000 merged commit ceb3636 into NixOS:master Oct 3, 2021
@CajuM CajuM deleted the waydroid branch October 3, 2021 20:12
@Mindavi
Copy link
Contributor

Mindavi commented Oct 3, 2021

I tried this but got stuck at sudo waydroid init, because I'm missing a kernel module.

(3232854) [23:15:00] % modprobe binder_linux
(3232854) [23:15:00] run: ['modprobe', 'binder_linux']
modprobe: FATAL: Module binder_linux not found in directory /run/current-system/kernel-modules/lib/modules/5.14.7
(3232854) [23:15:00] Failed to load binder driver
(3232854) [23:15:00] modprobe: FATAL: Module binder_linux not found in directory /run/current-system/kernel-modules/lib/modules/5.14.7
(3232854) [23:15:00] ERROR: Binder node "binder" for waydroid not found

Do you have a config to enable that module by chance @CajuM?

@CajuM
Copy link
Author

CajuM commented Oct 3, 2021

try:

{ boot.kernelPackages = pkgs.linuxPackages_xanmod; }

you'll also have to copy/symlink share/waydroid/gbinder.d into /etc

@samueldr
Copy link
Member

samueldr commented Oct 3, 2021

This packaging should probably have included a NixOS module to setup things as needed.

@asdf8dfafjk
Copy link
Contributor

For those of us luddites stuck on i3, anyone got quick steps to run this? (Is there a wayland compositor as an x11-app out there?)

@asdf8dfafjk
Copy link
Contributor

asdf8dfafjk commented Oct 22, 2021

Module (also by the genius OP): #141076

@CajuM
Copy link
Author

CajuM commented Oct 22, 2021

I think Weston should work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants