Help making a new module and package (audio-share)

Hello everyone, this is my ever first real contribution to the nixpkgs repository; I’ve made an service module and a package from a deamon that I really like called audio-share.

What audio-share does: it replicates all sound from the current main output of PipeWire to an Android app, so you can use any device as an speaker.


I’m facing issues with making the user systemd service start correctly, and making the tests for the module.

Here the draft pull request: audio-share: new module and package init a v0.3.4 by wetrustinprize · Pull Request #506760 · NixOS/nixpkgs · GitHub


I really liked how nixpkgs is organized, and will learn more and improve my skills to continue contributing! But right now I am in need of help to understand better nixos tests and systemd units.

Thanks!

Hello and welcome to nixpkgs!

I’ve looked at what you’ve done, and you’ve gotten quite far. I’ve left a review to help out a bit :). If you want to make the service start on user login, you can change the service configuration to wantedBy = [ "multi-user.target" ];. What issues are you running into for the test?

1 Like

hey @not-jack


regarding the problems I’m facing in the tests: for some reason PipeWire doesn’t startup in the testing env using the x11 common package, there are lots of logs saying this:

pipewire[627]: spa.dbus: Failed to connect to session bus: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11

I’ll fetch better logs and apply the reviews this afternoon.

thanks a lot!