diff options
author | worldofpeace <worldofpeace@users.noreply.github.com> | 2019-04-24 11:54:18 -0400 |
---|---|---|
committer | worldofpeace <worldofpeace@users.noreply.github.com> | 2019-04-24 12:39:31 -0400 |
commit | db9efc95b24b693aad2b9f8ecdf0864dd3e3e56f (patch) | |
tree | 373b2e6658416d3d335d93916957c8ad2af4002c /pkgs/applications/audio/lollypop | |
parent | ce50875fd4a261f744b9c1edec77350e3748ab97 (diff) | |
download | nixpkgs-db9efc95b24b693aad2b9f8ecdf0864dd3e3e56f.tar nixpkgs-db9efc95b24b693aad2b9f8ecdf0864dd3e3e56f.tar.gz nixpkgs-db9efc95b24b693aad2b9f8ecdf0864dd3e3e56f.tar.bz2 nixpkgs-db9efc95b24b693aad2b9f8ecdf0864dd3e3e56f.tar.lz nixpkgs-db9efc95b24b693aad2b9f8ecdf0864dd3e3e56f.tar.xz nixpkgs-db9efc95b24b693aad2b9f8ecdf0864dd3e3e56f.tar.zst nixpkgs-db9efc95b24b693aad2b9f8ecdf0864dd3e3e56f.zip |
lollypop: add youtube and wikipedia support
Plus option for lastfm
Diffstat (limited to 'pkgs/applications/audio/lollypop')
-rw-r--r-- | pkgs/applications/audio/lollypop/default.nix | 36 |
1 files changed, 27 insertions, 9 deletions
diff --git a/pkgs/applications/audio/lollypop/default.nix b/pkgs/applications/audio/lollypop/default.nix index d039f0a7a43..2a790514447 100644 --- a/pkgs/applications/audio/lollypop/default.nix +++ b/pkgs/applications/audio/lollypop/default.nix @@ -1,7 +1,23 @@ -{ stdenv, fetchgit, meson, ninja, pkgconfig -, python3, gtk3, gst_all_1, libsecret, libsoup -, appstream-glib, desktop-file-utils, totem-pl-parser -, hicolor-icon-theme, gobject-introspection, wrapGAppsHook }: +{ lib +, fetchgit +, meson +, 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 { pname = "lollypop"; @@ -37,10 +53,9 @@ python3.pkgs.buildPythonApplication rec { gstreamer gtk3 hicolor-icon-theme - libsecret libsoup totem-pl-parser - ]; + ] ++ lib.optional lastFMSupport libsecret; propagatedBuildInputs = with python3.pkgs; [ beautifulsoup4 @@ -49,8 +64,11 @@ python3.pkgs.buildPythonApplication rec { pycairo pydbus pygobject3 - pylast - ]; + ] + ++ lib.optional lastFMSupport pylast + ++ lib.optional wikipediaSupport wikipedia + ++ lib.optional youtubeSupport youtube-dl + ; postPatch = '' chmod +x meson_post_install.py @@ -62,7 +80,7 @@ python3.pkgs.buildPythonApplication rec { patchPythonScript "$out/libexec/lollypop-sp" ''; - meta = with stdenv.lib; { + meta = with lib; { description = "A modern music player for GNOME"; homepage = https://wiki.gnome.org/Apps/Lollypop; license = licenses.gpl3Plus; |