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

mpd: add lame support #28068

Merged
merged 1 commit into from Aug 11, 2017
Merged

mpd: add lame support #28068

merged 1 commit into from Aug 11, 2017

Conversation

infinisil
Copy link
Member

Motivation for this change

mp3 lame is one of the two encodings supported by the mpd httpd server, the other being vorbis. As I discovered, a lot of players don't like vorbis, the Sonos sound system being one of them.

Things done

Having a working mpd server streaming via HTTP to my Sonos system, I can confirm that it definitely works.

Please check what applies. Note that these are not hard requirements but merely serve as information for reviewers.

  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • 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.

@@ -105,6 +107,7 @@ in stdenv.mkDerivation rec {
(mkFlag mmsSupport "mms")
(mkFlag mpg123Support "mpg123")
(mkFlag aacSupport "aac")
(mkFlag lameSupport "lame-encoder")
Copy link
Member Author

Choose a reason for hiding this comment

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

This is in regard to all flags passed to ./configure: A lot of them are on "auto" mode, turning themselves on when the respective library is found. I don't know the rationale of passing these flags explicitly, so I'd remove those.

@@ -72,6 +73,7 @@ in stdenv.mkDerivation rec {
++ opt mmsSupport libmms
++ opt mpg123Support mpg123
++ opt aacSupport faad2
++ opt lameSupport lame
Copy link
Member Author

Choose a reason for hiding this comment

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

To keep in line with the other lines, I decided to use lame instead of lame.lib. All of them not using the .lib variant, building mpd requires downloading docs and bins for all of these.

@infinisil
Copy link
Member Author

I'll probably make a separate PR regarding my two comments

@joachifm joachifm merged commit b72e3b0 into NixOS:master Aug 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants