2021-01-11 08:54:33 +01:00
|
|
|
|
{ lib, stdenv, itstool, fetchurl, gdk-pixbuf, adwaita-icon-theme
|
2018-02-25 03:23:58 +01:00
|
|
|
|
, telepathy-glib, gjs, meson, ninja, gettext, telepathy-idle, libxml2, desktop-file-utils
|
2021-09-23 23:44:41 +02:00
|
|
|
|
, pkg-config, gtk4, gtk3, glib, libsecret, libsoup, webkitgtk, gobject-introspection, appstream-glib
|
|
|
|
|
, gnome, wrapGAppsHook4, telepathy-logger, gspell, gsettings-desktop-schemas }:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
2021-09-23 23:44:41 +02:00
|
|
|
|
stdenv.mkDerivation rec {
|
2018-03-15 05:33:51 +01:00
|
|
|
|
pname = "polari";
|
2021-09-23 23:44:41 +02:00
|
|
|
|
version = "41.0";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-09-23 23:44:41 +02:00
|
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
|
|
|
|
sha256 = "o7BfgWYDcMZ8lCtvRLKYx7eIFv6zjJJuwiEr3iLqQOs=";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
};
|
|
|
|
|
|
2020-02-09 01:34:37 +01:00
|
|
|
|
patches = [
|
|
|
|
|
# Upstream runs the thumbnailer by passing it to gjs.
|
|
|
|
|
# If we wrap it in a shell script, gjs can no longer run it.
|
|
|
|
|
# Let’s change the code to run the script directly by making it executable and having gjs in shebang.
|
|
|
|
|
./make-thumbnailer-wrappable.patch
|
|
|
|
|
];
|
|
|
|
|
|
2018-02-25 03:23:58 +01:00
|
|
|
|
propagatedUserEnvPkgs = [ telepathy-idle telepathy-logger ];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
2018-03-15 05:33:51 +01:00
|
|
|
|
nativeBuildInputs = [
|
2021-09-23 23:44:41 +02:00
|
|
|
|
meson ninja pkg-config itstool gettext wrapGAppsHook4 libxml2
|
2018-12-02 12:41:15 +01:00
|
|
|
|
desktop-file-utils gobject-introspection appstream-glib
|
2018-03-15 05:33:51 +01:00
|
|
|
|
];
|
2017-10-04 23:50:14 +02:00
|
|
|
|
|
2018-03-15 05:33:51 +01:00
|
|
|
|
buildInputs = [
|
2021-09-23 23:44:41 +02:00
|
|
|
|
gtk4 gtk3 glib adwaita-icon-theme gsettings-desktop-schemas
|
2020-02-09 01:34:37 +01:00
|
|
|
|
telepathy-glib telepathy-logger gjs gspell gdk-pixbuf libsecret libsoup webkitgtk
|
2017-10-04 23:50:14 +02:00
|
|
|
|
];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
2020-02-09 01:34:37 +01:00
|
|
|
|
postFixup = ''
|
|
|
|
|
wrapGApp "$out/share/polari/thumbnailer.js"
|
|
|
|
|
'';
|
|
|
|
|
|
2018-03-15 05:33:51 +01:00
|
|
|
|
passthru = {
|
2021-05-07 23:18:14 +02:00
|
|
|
|
updateScript = gnome.updateScript {
|
2018-03-15 05:33:51 +01:00
|
|
|
|
packageName = pname;
|
2021-05-07 23:18:14 +02:00
|
|
|
|
attrPath = "gnome.${pname}";
|
2018-03-15 05:33:51 +01:00
|
|
|
|
};
|
|
|
|
|
};
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
|
homepage = "https://wiki.gnome.org/Apps/Polari";
|
2016-09-18 21:35:23 +02:00
|
|
|
|
description = "IRC chat client designed to integrate with the GNOME desktop";
|
2020-04-01 14:40:51 +02:00
|
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 21:35:23 +02:00
|
|
|
|
license = licenses.gpl2;
|
|
|
|
|
platforms = platforms.linux;
|
|
|
|
|
};
|
|
|
|
|
}
|