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

apulse: 0.1.10 -> 0.1.11, add pressureaudio #35076

Merged
merged 2 commits into from Feb 17, 2018
Merged

Conversation

oxij
Copy link
Member

@oxij oxij commented Feb 17, 2018

Motivation for this change

Living without PulseAudio.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • 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 nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@oxij
Copy link
Member Author

oxij commented Feb 17, 2018

I tested mpv and cmus, both work fine with this and with plain ALSA disabled. firefox gets "permission denied" errors, probably because of sandboxing. More debugging needed there.
Sharing in case anyone else wants to play with this.

@7c6f434c
Copy link
Member

Firefox 58 is mentioned on the apulse homepage, there is an about:config option to loosen the sandbox and allow ioctl.

@oxij
Copy link
Member Author

oxij commented Feb 17, 2018

Ah, thanks!

'';

installPhase = ''
echo "Coping libraries."
Copy link
Member

Choose a reason for hiding this comment

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

Either use : for empty phases and reduce verbosity here, or fix the typo: ‘‘Coping’’ → ‘‘Copying’’

echo "Coping libraries."
mkdir -p $out/lib
ls ${apulse}/lib/apulse $out/lib
cp -a ${apulse}/lib/apulse/* $out/lib/
Copy link
Member

Choose a reason for hiding this comment

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

Any reason for cp -a instead of ln -s?

But apulse is made to be used as a wrapper that substitutes its
replacement libs into LD_LIBRARY_PATH. The problem with that is
that you have to link against the original libpulseaudio, which
means you have to build it (and risk executing it eventually).
Copy link
Member

Choose a reason for hiding this comment

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

Maybe remove this paragraph (and the last one)? As it is, libpulseaudio packages in Nix does not build any executables, and I am not sure there are any risks in failed attempts to connect by PA client library.

@oxij
Copy link
Member Author

oxij commented Feb 17, 2018 via email

@7c6f434c 7c6f434c dismissed their stale review February 17, 2018 18:02

concerns have been addressed

@7c6f434c 7c6f434c merged commit 280d51b into NixOS:master Feb 17, 2018
@oxij oxij deleted the pkgs/apulse branch September 8, 2018 22:16
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

3 participants