2019-05-22 12:03:39 +01:00
|
|
|
|
{ stdenv, itstool, fetchurl, gdk-pixbuf, adwaita-icon-theme
|
2018-02-25 02:23:58 +00:00
|
|
|
|
, telepathy-glib, gjs, meson, ninja, gettext, telepathy-idle, libxml2, desktop-file-utils
|
2020-02-09 00:34:37 +00:00
|
|
|
|
, pkgconfig, gtk3, glib, libsecret, libsoup, webkitgtk, gobject-introspection, appstream-glib
|
2019-04-17 01:38:26 +01:00
|
|
|
|
, gnome3, wrapGAppsHook, telepathy-logger, gspell, gsettings-desktop-schemas }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
2018-03-15 04:33:51 +00:00
|
|
|
|
let
|
|
|
|
|
pname = "polari";
|
2020-05-03 14:16:38 +01:00
|
|
|
|
version = "3.36.2";
|
2018-03-15 04:33:51 +00:00
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
|
name = "${pname}-${version}";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-05 01:12:11 +01:00
|
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2020-05-03 14:16:38 +01:00
|
|
|
|
sha256 = "12i0gp2kwp0b7af135q32qygkhh2025f74dqbaylfbmzacbdpz5c";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
};
|
|
|
|
|
|
2020-02-09 00:34:37 +00: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 02:23:58 +00:00
|
|
|
|
propagatedUserEnvPkgs = [ telepathy-idle telepathy-logger ];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
2018-03-15 04:33:51 +00:00
|
|
|
|
nativeBuildInputs = [
|
|
|
|
|
meson ninja pkgconfig itstool gettext wrapGAppsHook libxml2
|
2018-12-02 11:41:15 +00:00
|
|
|
|
desktop-file-utils gobject-introspection appstream-glib
|
2018-03-15 04:33:51 +00:00
|
|
|
|
];
|
2017-10-04 22:50:14 +01:00
|
|
|
|
|
2018-03-15 04:33:51 +00:00
|
|
|
|
buildInputs = [
|
2019-04-17 01:38:26 +01:00
|
|
|
|
gtk3 glib adwaita-icon-theme gsettings-desktop-schemas
|
2020-02-09 00:34:37 +00:00
|
|
|
|
telepathy-glib telepathy-logger gjs gspell gdk-pixbuf libsecret libsoup webkitgtk
|
2017-10-04 22:50:14 +01:00
|
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
2020-02-09 00:34:37 +00:00
|
|
|
|
postFixup = ''
|
|
|
|
|
wrapGApp "$out/share/polari/thumbnailer.js"
|
|
|
|
|
'';
|
|
|
|
|
|
2018-03-15 04:33:51 +00:00
|
|
|
|
passthru = {
|
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
|
packageName = pname;
|
|
|
|
|
attrPath = "gnome3.${pname}";
|
|
|
|
|
};
|
|
|
|
|
};
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
|
homepage = "https://wiki.gnome.org/Apps/Polari";
|
2016-09-18 20:35:23 +01:00
|
|
|
|
description = "IRC chat client designed to integrate with the GNOME desktop";
|
2020-04-01 13:40:51 +01:00
|
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 20:35:23 +01:00
|
|
|
|
license = licenses.gpl2;
|
|
|
|
|
platforms = platforms.linux;
|
|
|
|
|
};
|
|
|
|
|
}
|