summary refs log tree commit diff
path: root/pkgs/misc/lollypop-portal/default.nix
blob: dfcdebace3b07ea5b465e667534f226c81c938c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{ stdenv, fetchFromGitLab, meson, ninja, pkgconfig
, python3, gnome3, gst_all_1, gtk3, libnotify
, kid3, easytag, gobjectIntrospection, wrapGAppsHook }:

python3.pkgs.buildPythonApplication rec {
  name = "lollypop-portal-${version}";
  version = "0.9.7";

  format = "other";
  doCheck = false;

  src = fetchFromGitLab {
     domain = "gitlab.gnome.org";
     owner = "gnumdk";
     repo = name;
     rev = version;
     sha256 = "0rn5xmh6391i9l69y613pjad3pzdilskr2xjfcir4vpk8wprvph3";
  };

  nativeBuildInputs = [
    gobjectIntrospection
    meson
    ninja
    pkgconfig
    wrapGAppsHook
  ];

  buildInputs = [
    gnome3.gnome-settings-daemon
    gnome3.libsecret
    gnome3.totem-pl-parser
    gst_all_1.gst-plugins-base
    gst_all_1.gstreamer
    gtk3
    libnotify
    python3
  ];

  pythonPath = with python3.pkgs; [
    pycairo
    pydbus
    pygobject3
  ];

  preFixup = ''
    buildPythonPath "$out/libexec/lollypop-portal $pythonPath"
    patchPythonScript "$out/libexec/lollypop-portal"

    gappsWrapperArgs+=(
      --prefix PATH : "${stdenv.lib.makeBinPath [ easytag kid3 ]}"
    )
  '';

  meta = with stdenv.lib; {
    description = "DBus Service for Lollypop";
    homepage = https://gitlab.gnome.org/gnumdk/lollypop-portal;
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ worldofpeace ];
    platforms = platforms.linux;
  };
}