Skip to content
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

reaper: mark audio backend libs as optional, add missing plugin libs #110582

Merged
merged 1 commit into from Jan 25, 2021

Conversation

ilian
Copy link
Member

@ilian ilian commented Jan 23, 2021

Motivation for this change

The JACK and PulseAudio audio backends are optional. This change allows users to enable or disable support for them.

This change also adds optional libraries that are needed to use the included plugins:

  • LAME for mp3 support
  • VLC for video decoding
  • FFmpeg for video encoding and decoding
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs 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/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@SuperSandro2000
Copy link
Member

The JACK and PulseAudio audio backends are optional. This change allows users to enable or disable support for them.

Is there a compelling reason to disable them? Options which serve no real benefit should be avoided.

pkgs/applications/audio/reaper/default.nix Outdated Show resolved Hide resolved
pkgs/applications/audio/reaper/default.nix Outdated Show resolved Hide resolved
pkgs/applications/audio/reaper/default.nix Outdated Show resolved Hide resolved
pkgs/applications/audio/reaper/default.nix Outdated Show resolved Hide resolved
pkgs/applications/audio/reaper/default.nix Outdated Show resolved Hide resolved
pkgs/applications/audio/reaper/default.nix Outdated Show resolved Hide resolved
@ilian
Copy link
Member Author

ilian commented Jan 23, 2021

The JACK and PulseAudio audio backends are optional. This change allows users to enable or disable support for them.

Is there a compelling reason to disable them? Options which serve no real benefit should be avoided.

Adding such an option might be useful to avoid having to include PulseAudio and JACK on a system where reaper exclusively manages the audio device through ALSA.

@SuperSandro2000
Copy link
Member

Adding such an option might be useful to avoid having to include PulseAudio and JACK on a system where reaper exclusively manages the audio device through ALSA.

This would mean we would only need an option like disablePulseAudio. I want to avoid adding options for things no one uses or tests.

@ilian
Copy link
Member Author

ilian commented Jan 23, 2021

Adding such an option might be useful to avoid having to include PulseAudio and JACK on a system where reaper exclusively manages the audio device through ALSA.

This would mean we would only need an option like disablePulseAudio. I want to avoid adding options for things no one uses or tests.

I don't see why we should add an option for only one of the two backends that are marked as optional in the readme-linux.txt inside the binary tarball.
I think the jackSupport and pulseaudioSupport options make most sense to me instead of inverting the option since it is consistent with many existing packages that use JACK or PulseAudio. Examples include:

@SuperSandro2000
Copy link
Member

SuperSandro2000 commented Jan 23, 2021

I don't see why we should add an option for only one of the two backends that are marked as optional in the readme-linux.txt inside the binary tarball.

Because we do not follow those upstream recommendations all the time. Usually nixpkgs packages are build with all available options if they work together and there is no other compelling reason to disable them. Incase of qemu there is a full packages with almost all options and a slim one with only the most necessary options for tests IIRC.

I think the jackSupport and pulseaudioSupport options make most sense to me instead of inverting the option since it is consistent with many existing packages that use JACK or PulseAudio. Examples include:

Okay then we leave them like this.

pkgs/applications/audio/reaper/default.nix Outdated Show resolved Hide resolved
pkgs/applications/audio/reaper/default.nix Outdated Show resolved Hide resolved
pkgs/applications/audio/reaper/default.nix Outdated Show resolved Hide resolved
@SuperSandro2000
Copy link
Member

This is a semi-automatic executed nixpkgs-review which is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.

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

1 package built:
  • reaper

@SuperSandro2000 SuperSandro2000 merged commit fc5c930 into NixOS:master Jan 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants