mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
Merge pull request #82651 from adisbladis/mopidyPackages
mopidy: Create a mopidyPackages set
This commit is contained in:
commit
98be297deb
5 changed files with 90 additions and 69 deletions
|
@ -13,11 +13,11 @@ let
|
||||||
mopidyEnv = buildEnv {
|
mopidyEnv = buildEnv {
|
||||||
name = "mopidy-with-extensions-${mopidy.version}";
|
name = "mopidy-with-extensions-${mopidy.version}";
|
||||||
paths = closePropagation cfg.extensionPackages;
|
paths = closePropagation cfg.extensionPackages;
|
||||||
pathsToLink = [ "/${python3.sitePackages}" ];
|
pathsToLink = [ "/${mopidyPackages.python.sitePackages}" ];
|
||||||
buildInputs = [ makeWrapper ];
|
buildInputs = [ makeWrapper ];
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
makeWrapper ${mopidy}/bin/mopidy $out/bin/mopidy \
|
makeWrapper ${mopidy}/bin/mopidy $out/bin/mopidy \
|
||||||
--prefix PYTHONPATH : $out/${python3.sitePackages}
|
--prefix PYTHONPATH : $out/${mopidyPackages.python.sitePackages}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
|
|
@ -1,44 +1,41 @@
|
||||||
{ stdenv, fetchFromGitHub, python3Packages, wrapGAppsHook
|
{ newScope, python }:
|
||||||
, gst_all_1, glib-networking, gobject-introspection
|
|
||||||
}:
|
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
# Create a custom scope so we are consistent in which python version is used
|
||||||
pname = "mopidy";
|
|
||||||
version = "3.0.2";
|
let
|
||||||
|
callPackage = newScope self;
|
||||||
|
|
||||||
|
self = {
|
||||||
|
|
||||||
|
inherit python;
|
||||||
|
pythonPackages = python.pkgs;
|
||||||
|
|
||||||
|
mopidy = callPackage ./mopidy.nix { };
|
||||||
|
|
||||||
|
mopidy-gmusic = callPackage ./gmusic.nix { };
|
||||||
|
|
||||||
|
mopidy-local-images = callPackage ./local-images.nix { };
|
||||||
|
|
||||||
|
mopidy-local-sqlite = callPackage ./local-sqlite.nix { };
|
||||||
|
|
||||||
|
mopidy-spotify = callPackage ./spotify.nix { };
|
||||||
|
|
||||||
|
mopidy-moped = callPackage ./moped.nix { };
|
||||||
|
|
||||||
|
mopidy-mopify = callPackage ./mopify.nix { };
|
||||||
|
|
||||||
|
mopidy-mpd = callPackage ./mpd.nix { };
|
||||||
|
|
||||||
|
mopidy-spotify-tunigo = callPackage ./spotify-tunigo.nix { };
|
||||||
|
|
||||||
|
mopidy-youtube = callPackage ./youtube.nix { };
|
||||||
|
|
||||||
|
mopidy-soundcloud = callPackage ./soundcloud.nix { };
|
||||||
|
|
||||||
|
mopidy-musicbox-webclient = callPackage ./musicbox-webclient.nix { };
|
||||||
|
|
||||||
|
mopidy-iris = callPackage ./iris.nix { };
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "mopidy";
|
|
||||||
repo = "mopidy";
|
|
||||||
rev = "v${version}";
|
|
||||||
sha256 = "1n9lpgq0p112cjgsrc1cd6mnffk56y36g2c5skk9cqzw27qrkd15";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ wrapGAppsHook ];
|
in self
|
||||||
|
|
||||||
buildInputs = with gst_all_1; [
|
|
||||||
gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad
|
|
||||||
glib-networking gobject-introspection
|
|
||||||
];
|
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [
|
|
||||||
gst-python pygobject3 pykka tornado_4 requests setuptools
|
|
||||||
] ++ stdenv.lib.optional (!stdenv.isDarwin) dbus-python;
|
|
||||||
|
|
||||||
# There are no tests
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
preFixup = ''
|
|
||||||
gappsWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH")
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
homepage = "https://www.mopidy.com/";
|
|
||||||
description = ''
|
|
||||||
An extensible music server that plays music from local disk, Spotify,
|
|
||||||
SoundCloud, Google Play Music, and more
|
|
||||||
'';
|
|
||||||
license = licenses.asl20;
|
|
||||||
maintainers = [ maintainers.fpletz ];
|
|
||||||
hydraPlatforms = [];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
44
pkgs/applications/audio/mopidy/mopidy.nix
Normal file
44
pkgs/applications/audio/mopidy/mopidy.nix
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
{ stdenv, fetchFromGitHub, pythonPackages, wrapGAppsHook
|
||||||
|
, gst_all_1, glib-networking, gobject-introspection
|
||||||
|
}:
|
||||||
|
|
||||||
|
pythonPackages.buildPythonApplication rec {
|
||||||
|
pname = "mopidy";
|
||||||
|
version = "3.0.2";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "mopidy";
|
||||||
|
repo = "mopidy";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1n9lpgq0p112cjgsrc1cd6mnffk56y36g2c5skk9cqzw27qrkd15";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ wrapGAppsHook ];
|
||||||
|
|
||||||
|
buildInputs = with gst_all_1; [
|
||||||
|
gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad
|
||||||
|
glib-networking gobject-introspection
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = with pythonPackages; [
|
||||||
|
gst-python pygobject3 pykka tornado_4 requests setuptools
|
||||||
|
] ++ stdenv.lib.optional (!stdenv.isDarwin) dbus-python;
|
||||||
|
|
||||||
|
# There are no tests
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
preFixup = ''
|
||||||
|
gappsWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH")
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = "https://www.mopidy.com/";
|
||||||
|
description = ''
|
||||||
|
An extensible music server that plays music from local disk, Spotify,
|
||||||
|
SoundCloud, Google Play Music, and more
|
||||||
|
'';
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = [ maintainers.fpletz ];
|
||||||
|
hydraPlatforms = [];
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
{ stdenv, fetchurl, python3Packages, mopidy }:
|
{ stdenv, fetchurl, pythonPackages, mopidy }:
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
pythonPackages.buildPythonApplication rec {
|
||||||
pname = "mopidy-spotify";
|
pname = "mopidy-spotify";
|
||||||
version = "4.0.1";
|
version = "4.0.1";
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ python3Packages.buildPythonApplication rec {
|
||||||
sha256 = "1ac8r8050i5r3ag1hlblbcyskqjqz7wgamndbzsmw52qi6hxk44f";
|
sha256 = "1ac8r8050i5r3ag1hlblbcyskqjqz7wgamndbzsmw52qi6hxk44f";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ mopidy python3Packages.pyspotify ];
|
propagatedBuildInputs = [ mopidy pythonPackages.pyspotify ];
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
|
|
@ -20639,31 +20639,11 @@ in
|
||||||
|
|
||||||
mop = callPackage ../applications/misc/mop { };
|
mop = callPackage ../applications/misc/mop { };
|
||||||
|
|
||||||
mopidy = callPackage ../applications/audio/mopidy { };
|
mopidyPackages = callPackages ../applications/audio/mopidy/default.nix {
|
||||||
|
python = python3;
|
||||||
|
};
|
||||||
|
|
||||||
mopidy-gmusic = callPackage ../applications/audio/mopidy/gmusic.nix { };
|
inherit (mopidyPackages) mopidy mopidy-gmusic mopidy-local-images mopidy-local-sqlite mopidy-spotify mopidy-moped mopidy-mopify mopidy-spotify-tunigo mopidy-youtube mopidy-soundcloud mopidy-musicbox-webclient mopidy-iris mopidy-mpd;
|
||||||
|
|
||||||
mopidy-local-images = callPackage ../applications/audio/mopidy/local-images.nix { };
|
|
||||||
|
|
||||||
mopidy-local-sqlite = callPackage ../applications/audio/mopidy/local-sqlite.nix { };
|
|
||||||
|
|
||||||
mopidy-spotify = callPackage ../applications/audio/mopidy/spotify.nix { };
|
|
||||||
|
|
||||||
mopidy-moped = callPackage ../applications/audio/mopidy/moped.nix { };
|
|
||||||
|
|
||||||
mopidy-mopify = callPackage ../applications/audio/mopidy/mopify.nix { };
|
|
||||||
|
|
||||||
mopidy-spotify-tunigo = callPackage ../applications/audio/mopidy/spotify-tunigo.nix { };
|
|
||||||
|
|
||||||
mopidy-youtube = callPackage ../applications/audio/mopidy/youtube.nix { };
|
|
||||||
|
|
||||||
mopidy-soundcloud = callPackage ../applications/audio/mopidy/soundcloud.nix { };
|
|
||||||
|
|
||||||
mopidy-musicbox-webclient = callPackage ../applications/audio/mopidy/musicbox-webclient.nix { };
|
|
||||||
|
|
||||||
mopidy-iris = callPackage ../applications/audio/mopidy/iris.nix { };
|
|
||||||
|
|
||||||
mopidy-mpd = callPackage ../applications/audio/mopidy/mpd.nix { };
|
|
||||||
|
|
||||||
motif = callPackage ../development/libraries/motif { };
|
motif = callPackage ../development/libraries/motif { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue