mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-22 16:41:08 +00:00
mopidy: include the PipeWire GStreamer plugin (#355207)
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
{ lib, stdenv, fetchFromGitHub, pythonPackages, wrapGAppsNoGuiHook
|
||||
, gst_all_1, glib-networking, gobject-introspection
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
pythonPackages,
|
||||
wrapGAppsNoGuiHook,
|
||||
gst_all_1,
|
||||
glib-networking,
|
||||
gobject-introspection,
|
||||
pipewire,
|
||||
}:
|
||||
|
||||
pythonPackages.buildPythonApplication rec {
|
||||
@@ -24,17 +32,22 @@ pythonPackages.buildPythonApplication rec {
|
||||
gst-plugins-rs
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
gobject-introspection
|
||||
] ++ (with pythonPackages; [
|
||||
gst-python
|
||||
pygobject3
|
||||
pykka
|
||||
requests
|
||||
setuptools
|
||||
tornado
|
||||
] ++ lib.optional (!stdenv.hostPlatform.isDarwin) dbus-python
|
||||
);
|
||||
propagatedBuildInputs =
|
||||
[
|
||||
gobject-introspection
|
||||
]
|
||||
++ (
|
||||
with pythonPackages;
|
||||
[
|
||||
gst-python
|
||||
pygobject3
|
||||
pykka
|
||||
requests
|
||||
setuptools
|
||||
tornado
|
||||
]
|
||||
++ lib.optional (!stdenv.hostPlatform.isDarwin) dbus-python
|
||||
);
|
||||
|
||||
propagatedNativeBuildInputs = [
|
||||
gobject-introspection
|
||||
@@ -43,12 +56,18 @@ pythonPackages.buildPythonApplication rec {
|
||||
# There are no tests
|
||||
doCheck = false;
|
||||
|
||||
preFixup = ''
|
||||
gappsWrapperArgs+=(
|
||||
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "${pipewire}/lib/gstreamer-1.0"
|
||||
)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.mopidy.com/";
|
||||
description = "Extensible music server that plays music from local disk, Spotify, SoundCloud, and more";
|
||||
mainProgram = "mopidy";
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.fpletz ];
|
||||
hydraPlatforms = [];
|
||||
hydraPlatforms = [ ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user