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

Add mopidy-mpris #38842

Closed
wants to merge 2 commits into from
Closed

Add mopidy-mpris #38842

wants to merge 2 commits into from

Conversation

thorerik
Copy link

@thorerik thorerik commented Apr 12, 2018

Motivation for this change

Add mopidy-mpris so that it can easily be installed with mopidy

closes #38758

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.


version = "1.4.0";

src = fetchFromGitHub {
Copy link
Member

Choose a reason for hiding this comment

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

Please use fetchPypi


propagatedBuildInputs = with pythonPackages; [ mopidy ];

doCheck = false;
Copy link
Member

Choose a reason for hiding this comment

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

Please remove this and set

checkPhase = ''
  py.test
'';

{ stdenv, fetchFromGitHub, pythonPackages, mopidy }:

pythonPackages.buildPythonApplication rec {
name = "mopidy-mpris-${version}";
Copy link
Member

Choose a reason for hiding this comment

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

Please specify pname instead.
name will automatically be set to ${pname}-${version} by buildPython*

@thorerik
Copy link
Author

I did the changes you said here, but once I ran nix-build -A mopidy-mpris, it started pulling in rust, any idea why that would happen?

current, uncommited state:
https://gist.github.com/thorerik/767ffc9f744cbbe46d690ff18c7f85ad

@Mic92
Copy link
Member

Mic92 commented Apr 12, 2018

Maybe because rsvg is written in rust and was about to compile? librsvg-2.42.2

@dotlambda
Copy link
Member

Did this actually work without the second commit you added?

@thorerik
Copy link
Author

It built, but I'm unsure how to test it since it should be installed with services.mopidy.extensionPackages.

@dotlambda
Copy link
Member

You can simply add it there, and do

nixos-rebuild test -I nixpkgs=path/to/your/local/nixpkgs

@thorerik
Copy link
Author

Thanks, I see there's a lot more to work through here before this is even remotely close to working. I'll close it for now and open a new PR once it's in a more servicable state.

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.

Mopidy: Include pip modules with the installation of mopidy
5 participants