2019-04-24 16:54:18 +01:00
|
|
|
{ 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
|
|
|
|
}:
|
2018-06-16 01:17:01 +01:00
|
|
|
|
2018-09-12 07:07:39 +01:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2018-12-12 08:08:56 +00:00
|
|
|
pname = "lollypop";
|
2019-07-12 05:12:10 +01:00
|
|
|
version = "1.1.4.2";
|
2018-06-16 01:17:01 +01:00
|
|
|
|
2018-09-12 07:07:39 +01:00
|
|
|
format = "other";
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-06-16 01:17:01 +01:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://gitlab.gnome.org/World/lollypop";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
fetchSubmodules = true;
|
2019-07-12 05:12:10 +01:00
|
|
|
sha256 = "0rn3q7xslqq5hw4wb739ywg5dr99xpkbmyw80y84rsg0wfrwbjlc";
|
2018-06-16 01:17:01 +01:00
|
|
|
};
|
|
|
|
|
2019-01-25 19:00:47 +00:00
|
|
|
nativeBuildInputs = [
|
2018-06-25 03:32:43 +01:00
|
|
|
appstream-glib
|
2018-06-16 01:17:01 +01:00
|
|
|
desktop-file-utils
|
2018-12-02 11:41:15 +00:00
|
|
|
gobject-introspection
|
2018-06-16 01:17:01 +01:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
2018-09-12 07:07:39 +01:00
|
|
|
buildInputs = with gst_all_1; [
|
2019-02-15 09:08:27 +00:00
|
|
|
gobject-introspection
|
2018-09-12 07:07:39 +01:00
|
|
|
gst-libav
|
|
|
|
gst-plugins-bad
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-good
|
|
|
|
gst-plugins-ugly
|
2018-06-16 01:17:01 +01:00
|
|
|
gstreamer
|
2018-09-12 07:07:39 +01:00
|
|
|
gtk3
|
2019-02-25 03:50:37 +00:00
|
|
|
hicolor-icon-theme
|
2018-09-12 07:07:39 +01:00
|
|
|
libsoup
|
2018-12-25 22:27:49 +00:00
|
|
|
totem-pl-parser
|
2019-04-24 16:54:18 +01:00
|
|
|
] ++ lib.optional lastFMSupport libsecret;
|
2018-06-16 01:17:01 +01:00
|
|
|
|
2018-12-12 08:08:56 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2018-06-16 01:17:01 +01:00
|
|
|
beautifulsoup4
|
|
|
|
pillow
|
|
|
|
pycairo
|
|
|
|
pygobject3
|
2019-04-24 16:54:18 +01:00
|
|
|
]
|
|
|
|
++ lib.optional lastFMSupport pylast
|
|
|
|
++ lib.optional wikipediaSupport wikipedia
|
|
|
|
++ lib.optional youtubeSupport youtube-dl
|
|
|
|
;
|
2018-06-16 01:17:01 +01:00
|
|
|
|
|
|
|
postPatch = ''
|
2018-09-12 07:07:39 +01:00
|
|
|
chmod +x meson_post_install.py
|
|
|
|
patchShebangs meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
2018-12-12 08:08:56 +00:00
|
|
|
buildPythonPath "$out $propagatedBuildInputs"
|
2018-09-12 07:07:39 +01:00
|
|
|
patchPythonScript "$out/libexec/lollypop-sp"
|
2018-06-16 01:17:01 +01:00
|
|
|
'';
|
|
|
|
|
2019-04-24 16:54:18 +01:00
|
|
|
meta = with lib; {
|
2018-06-16 01:17:01 +01:00
|
|
|
description = "A modern music player for GNOME";
|
2018-12-12 08:08:56 +00:00
|
|
|
homepage = https://wiki.gnome.org/Apps/Lollypop;
|
|
|
|
license = licenses.gpl3Plus;
|
2019-05-15 13:27:47 +01:00
|
|
|
changelog = "https://gitlab.gnome.org/World/lollypop/tags/${version}";
|
2018-06-16 01:17:01 +01:00
|
|
|
maintainers = with maintainers; [ worldofpeace ];
|
2018-12-12 08:08:56 +00:00
|
|
|
platforms = platforms.linux;
|
2018-06-16 01:17:01 +01:00
|
|
|
};
|
|
|
|
}
|