@@ -1,7 +1,23 @@
1−{ stdenv, fetchgit, meson, ninja, pkgconfig
2−, python3, gtk3, gst_all_1, libsecret, libsoup
3−, appstream-glib, desktop-file-utils, totem-pl-parser
4−, hicolor-icon-theme, gobject-introspection, wrapGAppsHook }:
1+{ lib
2+, fetchgit
3+, meson
4+, ninja
5+, pkgconfig
6+, python3
7+, gtk3
8+, gst_all_1
9+, libsecret
10+, libsoup
11+, appstream-glib
12+, desktop-file-utils
13+, totem-pl-parser
14+, hicolor-icon-theme
15+, gobject-introspection
16+, wrapGAppsHook
17+, lastFMSupport ? true
18+, wikipediaSupport ? true
19+, youtubeSupport ? true, youtube-dl
20+}:
521
622python3.pkgs.buildPythonApplication rec {
723 pname = "lollypop";
@@ -37,10 +53,9 @@ python3.pkgs.buildPythonApplication rec {
3753 gstreamer
3854 gtk3
3955 hicolor-icon-theme
40− libsecret
4156 libsoup
4257 totem-pl-parser
43− ];
58+ ] ++ lib.optional lastFMSupport libsecret;
4459
4560 propagatedBuildInputs = with python3.pkgs; [
4661 beautifulsoup4
@@ -49,8 +64,11 @@ python3.pkgs.buildPythonApplication rec {
4964 pycairo
5065 pydbus
5166 pygobject3
52− pylast
53− ];
67+ ]
68+ ++ lib.optional lastFMSupport pylast
69+ ++ lib.optional wikipediaSupport wikipedia
70+ ++ lib.optional youtubeSupport youtube-dl
71+ ;
5472
5573 postPatch = ''
5674 chmod +x meson_post_install.py
@@ -62,7 +80,7 @@ python3.pkgs.buildPythonApplication rec {
6280 patchPythonScript "$out/libexec/lollypop-sp"
6381 '';
6482
65− meta = with stdenv.lib; {
83+ meta = with lib; {
6684 description = "A modern music player for GNOME";
6785 homepage = https://wiki.gnome.org/Apps/Lollypop;
6886 license = licenses.gpl3Plus;