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