dagargo / overwitch

JACK client for Overbridge devices
GNU General Public License v3.0
120 stars 14 forks source link

Support NixOS Stable #57

Open JoNilsson opened 2 months ago

JoNilsson commented 2 months ago

Wondering if anyone has integrated Overwitch into a NixOS build? Or, are there any plans to do so?

Would be lovely to have this in the Nix package repository. NixOS is fabulous for building stable realtime audio workstations.

dagargo commented 1 month ago

AFAIK, there are no Overwitch packages for NixOS or any other distribution. I haven't tried either.

I'm planning on creating Flatpak package though.

JoNilsson commented 1 month ago

Real-time kernel access would undoubtedly suffer from within the sandbox of a flatpak.
Flatpak by nature is designed to sandbox an app, limiting access to the system. It's good for security, but sucks for audio. Access to system level real-time processing (ie: using sched_setscheduler() etc.) is going to be a major PITA from within a flatpak.

It might be possible, but I personally would not count on a flatpak to reliably deliver a good integration into a low latency real-time audio system.

NixOS adopts a fundamentally different approach to sandboxing, with none of the caveats that make flatpak an anti-pattern for pro-audio production.

dagargo commented 1 month ago

I didn't know any of that.

I expected the sandboxing to be transparent and just an isolation layer. I'll investigate this further,

Thanks for the heads up!

JoNilsson commented 1 month ago

I forked your repo, and I'll volunteer to maintain a nix package for the project if nobody else is doing so.

duarteoctavio commented 1 month ago

Hello, Jø! I also though about doing it. I don't know how experienced you are in Nix packaging. I have no experience in publishing packages but I've got more and more acquainted with the language and I've created some local packages for my system already.

If you are interested in collaboration, we can do it together.

Are10 commented 1 month ago

It seems like work is already underway for this: https://github.com/NixOS/nixpkgs/issues/165104 Edit: Derped on the correct link

JoNilsson commented 1 month ago

It seems like work is already underway for this: NixOS/nixpkgs#165104

Excellent. had neglected to see this prior. Mea Culpa. Seems that work is started and stalled awaiting participation?

The PR is still open, here: https://github.com/NixOS/nixpkgs/pull/269278

So, it would appear there needs to be some help lent to merge the PR.

dag-h commented 2 weeks ago

Sorry I haven’t finished up the PR, should only be some final touches left. I’ll get to it some time next week.