@@ -0,0 +1,60 @@
1+{ stdenv, fetchFromGitLab, meson, ninja, pkgconfig
2+, python36Packages, gnome3, gst_all_1, gtk3, libnotify
3+, kid3, easytag, gobjectIntrospection, wrapGAppsHook }:
4+
5+stdenv.mkDerivation rec {
6+ name = "lollypop-portal";
7+ version = "0.9.7";
8+
9+ src = fetchFromGitLab {
10+ domain = "gitlab.gnome.org";
11+ owner = "gnumdk";
12+ repo = name;
13+ rev = version;
14+ sha256 = "0rn5xmh6391i9l69y613pjad3pzdilskr2xjfcir4vpk8wprvph3";
15+ };
16+
17+ nativeBuildInputs = [
18+ gobjectIntrospection
19+ meson
20+ ninja
21+ pkgconfig
22+ python36Packages.wrapPython
23+ wrapGAppsHook
24+ ];
25+
26+ buildInputs = [
27+ gnome3.totem-pl-parser
28+ gnome3.libsecret
29+ gnome3.gnome-settings-daemon
30+
31+ gst_all_1.gstreamer
32+ gst_all_1.gst-plugins-base
33+
34+ gtk3
35+ libnotify
36+ ];
37+
38+ pythonPath = with python36Packages; [
39+ pygobject3
40+ pydbus
41+ pycairo
42+ ];
43+
44+ preFixup = ''
45+ buildPythonPath "$out/libexec/lollypop-portal $pythonPath"
46+
47+ gappsWrapperArgs+=(
48+ --prefix PYTHONPATH : "$program_PYTHONPATH"
49+ --prefix PATH : "${stdenv.lib.makeBinPath [ easytag kid3 ]}"
50+ )
51+ '';
52+
53+ meta = with stdenv.lib; {
54+ description = "DBus Service for Lollypop";
55+ homepage = https://gitlab.gnome.org/gnumdk/lollypop-portal;
56+ license = licenses.gpl3Plus;
57+ maintainers = with maintainers; [ worldofpeace ];
58+ platforms = platforms.linux;
59+ };
60+}