2018-09-12 07:07:39 +01:00
|
|
|
{ stdenv, fetchgit, meson, ninja, pkgconfig
|
|
|
|
, python3, gtk3, gst_all_1, libsecret, libsoup
|
|
|
|
, appstream-glib, desktop-file-utils, gnome3
|
2018-12-02 11:41:15 +00:00
|
|
|
, gobject-introspection, wrapGAppsHook }:
|
2018-06-16 01:17:01 +01:00
|
|
|
|
2018-09-12 07:07:39 +01:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2018-11-07 21:39:52 +00:00
|
|
|
version = "0.9.611";
|
2018-06-16 01:17:01 +01:00
|
|
|
name = "lollypop-${version}";
|
|
|
|
|
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;
|
2018-11-07 21:39:52 +00:00
|
|
|
sha256 = "1k78a26sld0xd14c9hr4qv8c7qaq1m8zqk1mzrh4pl7ysqqg9p20";
|
2018-06-16 01:17:01 +01:00
|
|
|
};
|
|
|
|
|
2018-09-12 07:07:39 +01:00
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
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; [
|
|
|
|
gnome3.totem-pl-parser
|
|
|
|
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
|
|
|
|
libsecret
|
|
|
|
libsoup
|
|
|
|
];
|
2018-06-16 01:17:01 +01:00
|
|
|
|
2018-09-12 07:07:39 +01:00
|
|
|
pythonPath = with python3.pkgs; [
|
2018-06-16 01:17:01 +01:00
|
|
|
beautifulsoup4
|
|
|
|
gst-python
|
|
|
|
pillow
|
|
|
|
pycairo
|
|
|
|
pydbus
|
|
|
|
pygobject3
|
|
|
|
pylast
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2018-09-12 07:07:39 +01:00
|
|
|
chmod +x meson_post_install.py
|
|
|
|
patchShebangs meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
buildPythonPath "$out/libexec/lollypop-sp $pythonPath"
|
|
|
|
patchPythonScript "$out/libexec/lollypop-sp"
|
2018-06-16 01:17:01 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A modern music player for GNOME";
|
|
|
|
homepage = https://wiki.gnome.org/Apps/Lollypop;
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ worldofpeace ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|