lollypop: add youtube and wikipedia support
Plus option for lastfm
This commit is contained in:
parent
ce50875fd4
commit
db9efc95b2
@ -1,7 +1,23 @@
|
|||||||
{ stdenv, fetchgit, meson, ninja, pkgconfig
|
{ lib
|
||||||
, python3, gtk3, gst_all_1, libsecret, libsoup
|
, fetchgit
|
||||||
, appstream-glib, desktop-file-utils, totem-pl-parser
|
, meson
|
||||||
, hicolor-icon-theme, gobject-introspection, wrapGAppsHook }:
|
, ninja
|
||||||
|
, pkgconfig
|
||||||
|
, python3
|
||||||
|
, gtk3
|
||||||
|
, gst_all_1
|
||||||
|
, libsecret
|
||||||
|
, libsoup
|
||||||
|
, appstream-glib
|
||||||
|
, desktop-file-utils
|
||||||
|
, totem-pl-parser
|
||||||
|
, hicolor-icon-theme
|
||||||
|
, gobject-introspection
|
||||||
|
, wrapGAppsHook
|
||||||
|
, lastFMSupport ? true
|
||||||
|
, wikipediaSupport ? true
|
||||||
|
, youtubeSupport ? true, youtube-dl
|
||||||
|
}:
|
||||||
|
|
||||||
python3.pkgs.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "lollypop";
|
pname = "lollypop";
|
||||||
@ -37,10 +53,9 @@ python3.pkgs.buildPythonApplication rec {
|
|||||||
gstreamer
|
gstreamer
|
||||||
gtk3
|
gtk3
|
||||||
hicolor-icon-theme
|
hicolor-icon-theme
|
||||||
libsecret
|
|
||||||
libsoup
|
libsoup
|
||||||
totem-pl-parser
|
totem-pl-parser
|
||||||
];
|
] ++ lib.optional lastFMSupport libsecret;
|
||||||
|
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
beautifulsoup4
|
beautifulsoup4
|
||||||
@ -49,8 +64,11 @@ python3.pkgs.buildPythonApplication rec {
|
|||||||
pycairo
|
pycairo
|
||||||
pydbus
|
pydbus
|
||||||
pygobject3
|
pygobject3
|
||||||
pylast
|
]
|
||||||
];
|
++ lib.optional lastFMSupport pylast
|
||||||
|
++ lib.optional wikipediaSupport wikipedia
|
||||||
|
++ lib.optional youtubeSupport youtube-dl
|
||||||
|
;
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
chmod +x meson_post_install.py
|
chmod +x meson_post_install.py
|
||||||
@ -62,7 +80,7 @@ python3.pkgs.buildPythonApplication rec {
|
|||||||
patchPythonScript "$out/libexec/lollypop-sp"
|
patchPythonScript "$out/libexec/lollypop-sp"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with lib; {
|
||||||
description = "A modern music player for GNOME";
|
description = "A modern music player for GNOME";
|
||||||
homepage = https://wiki.gnome.org/Apps/Lollypop;
|
homepage = https://wiki.gnome.org/Apps/Lollypop;
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user