2022-03-30 09:31:56 +00:00
|
|
|
|
{ stdenv
|
|
|
|
|
, lib
|
|
|
|
|
, itstool
|
|
|
|
|
, fetchurl
|
|
|
|
|
, gdk-pixbuf
|
|
|
|
|
, telepathy-glib
|
|
|
|
|
, gjs
|
|
|
|
|
, meson
|
|
|
|
|
, ninja
|
|
|
|
|
, gettext
|
|
|
|
|
, telepathy-idle
|
|
|
|
|
, libxml2
|
|
|
|
|
, desktop-file-utils
|
|
|
|
|
, pkg-config
|
|
|
|
|
, gtk4
|
|
|
|
|
, libadwaita
|
|
|
|
|
, gtk3
|
|
|
|
|
, glib
|
|
|
|
|
, libsecret
|
2022-10-21 18:38:19 +00:00
|
|
|
|
, libsoup_3
|
|
|
|
|
, webkitgtk_4_1
|
2022-03-30 09:31:56 +00:00
|
|
|
|
, gobject-introspection
|
|
|
|
|
, appstream-glib
|
|
|
|
|
, gnome
|
|
|
|
|
, wrapGAppsHook4
|
|
|
|
|
, telepathy-logger
|
|
|
|
|
, gspell
|
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
2021-10-14 00:43:12 +00:00
|
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
pname = "polari";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
version = "43.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-10-14 00:43:12 +00:00
|
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
sha256 = "F6GS3uYfWOPNRHJQC+cBGUa5n75SvFrBJPqurC8zQUc=";
|
2020-04-24 23:36:52 +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
|
|
|
|
|
];
|
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
|
propagatedUserEnvPkgs = [
|
|
|
|
|
telepathy-idle
|
|
|
|
|
telepathy-logger
|
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2022-03-30 09:31:56 +00:00
|
|
|
|
meson
|
|
|
|
|
ninja
|
|
|
|
|
pkg-config
|
|
|
|
|
itstool
|
|
|
|
|
gettext
|
|
|
|
|
wrapGAppsHook4
|
|
|
|
|
libxml2
|
|
|
|
|
desktop-file-utils
|
|
|
|
|
gobject-introspection
|
|
|
|
|
appstream-glib
|
2020-04-24 23:36:52 +00:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-03-30 09:31:56 +00:00
|
|
|
|
gtk4
|
|
|
|
|
libadwaita
|
|
|
|
|
gtk3 # for thumbnailer
|
|
|
|
|
glib
|
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
|
telepathy-glib
|
|
|
|
|
telepathy-logger
|
|
|
|
|
gjs
|
|
|
|
|
gspell
|
|
|
|
|
gdk-pixbuf
|
|
|
|
|
libsecret
|
2022-10-21 18:38:19 +00:00
|
|
|
|
libsoup_3
|
|
|
|
|
webkitgtk_4_1 # for thumbnailer
|
2020-04-24 23:36:52 +00:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
|
wrapGApp "$out/share/polari/thumbnailer.js"
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
packageName = pname;
|
2021-05-20 23:08:51 +00:00
|
|
|
|
attrPath = "gnome.${pname}";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
homepage = "https://wiki.gnome.org/Apps/Polari";
|
|
|
|
|
description = "IRC chat client designed to integrate with the GNOME desktop";
|
|
|
|
|
maintainers = teams.gnome.members;
|
2022-03-30 09:31:56 +00:00
|
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
platforms = platforms.linux;
|
|
|
|
|
};
|
|
|
|
|
}
|