summary refs log tree commit diff
path: root/pkgs/desktops/gnome-3/apps/polari/default.nix
blob: f1d6dba21b088478976e9cdfe3cbba7af7d647da (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
{ stdenv, itstool, fetchurl, fetchpatch, gdk_pixbuf, adwaita-icon-theme
, telepathy-glib, gjs, meson, ninja, gettext, telepathy-idle, libxml2, desktop-file-utils
, pkgconfig, gtk3, glib, libsecret, libsoup, gobjectIntrospection, appstream-glib
, gnome3, wrapGAppsHook, telepathy-logger, gspell }:

stdenv.mkDerivation rec {
  name = "polari-${version}";
  version = "3.26.2";

  src = fetchurl {
    url = "mirror://gnome/sources/polari/${gnome3.versionBranch version}/${name}.tar.xz";
    sha256 = "2f36361dacf5d924d134f231fdb36ec4539f7495fce325d9b2f2728bd17cc190";
  };

  passthru = {
    updateScript = gnome3.updateScript { packageName = "polari"; attrPath = "gnome3.polari"; };
  };

  propagatedUserEnvPkgs = [ telepathy-idle telepathy-logger ];

  nativeBuildInputs = [ meson ninja pkgconfig itstool gettext wrapGAppsHook libxml2
                        desktop-file-utils gobjectIntrospection appstream-glib ];
  buildInputs = [ gtk3 glib adwaita-icon-theme gnome3.gsettings-desktop-schemas
                  telepathy-glib telepathy-logger gjs gspell gdk_pixbuf libsecret libsoup ];

  patches = [
    (fetchpatch {
      url = https://gitlab.gnome.org/jtojnar/polari/commit/a6733a6ad95eac1813e7b18e3d0018a22ee7a377.diff;
      sha256 = "0f5ll49h5w0477lkh67kaa2j83z376z1jk7z3i2v7cq4d3hi5lf9";
    })
  ];

  enableParallelBuilding = true;

  meta = with stdenv.lib; {
    homepage = https://wiki.gnome.org/Apps/Polari;
    description = "IRC chat client designed to integrate with the GNOME desktop";
    maintainers = gnome3.maintainers;
    license = licenses.gpl2;
    platforms = platforms.linux;
  };
}