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

mpDris2: add mutagen for cover art support #28063

Merged
merged 2 commits into from Aug 11, 2017

Conversation

casey
Copy link
Contributor

@casey casey commented Aug 9, 2017

Building mpDris2 with mutagen allows it to extract cover art from songs.

I added mutagen as a build input; mpDris2 autodetects this and enables cover art support.

I tested it with:

nix-shell --option build-use-sandbox true -I nixpkgs=. -p mpdris2

And confirmed that cover art support was enabled.

The reason why some packages are in propagatedBuildInputs and some are in pythonPath is a bit mysterious to me, but I tested if it worked without putting mutagen inpythonPath and it was fine, so I left it out.

  • Tested using sandboxing
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • [N/A] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • [N/A] 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.

@mention-bot
Copy link

@casey, thanks for your PR! By analyzing the history of the files in this pull request, we identified @pjones, @FRidh and @dsprenkels to be potential reviewers.

@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
'';

buildInputs = [ intltool autoreconfHook pythonPackages.wrapPython ];
propagatedBuildInputs = with pythonPackages; [ python pygtk dbus-python ];
propagatedBuildInputs = with pythonPackages; [ python pygtk dbus-python mutagen ];
Copy link
Member

Choose a reason for hiding this comment

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

this only works, when you are in a nix-shell.
Otherwise you will see the following:

$ /nix/store/123j3zdik295fjnbgcrlsrf5zmgx97vk-mpDris2/bin/mpDris2
...
2017-08-11 23:40:27,583 .mpDris2-wrapped INFO: Mutagen not available, covers in music files will be ignored.
...

Copy link
Member

Choose a reason for hiding this comment

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

propagatedBuildInputs will propagate all elements of this list to other derivations, using this derivation in buildInputs

@Mic92 Mic92 merged commit a3103fb 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

3 participants