nixpkgs-suyu/pkgs/desktops/gnome-3/apps/polari/default.nix

55 lines
1.7 KiB
Nix
Raw Normal View History

2019-05-22 13:03:39 +02:00
{ stdenv, itstool, fetchurl, gdk-pixbuf, adwaita-icon-theme
, telepathy-glib, gjs, meson, ninja, gettext, telepathy-idle, libxml2, desktop-file-utils
2020-02-09 01:34:37 +01:00
, pkgconfig, gtk3, glib, libsecret, libsoup, webkitgtk, gobject-introspection, appstream-glib
, gnome3, wrapGAppsHook, telepathy-logger, gspell, gsettings-desktop-schemas }:
2018-03-15 05:33:51 +01:00
let
pname = "polari";
version = "3.38.0";
2018-03-15 05:33:51 +01:00
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
sha256 = "1l82nmb5qk4h69rsdhzlcmjjdhwh9jzfs4cnw8hy39sg5v9ady1s";
};
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.
# Lets change the code to run the script directly by making it executable and having gjs in shebang.
./make-thumbnailer-wrappable.patch
];
propagatedUserEnvPkgs = [ telepathy-idle telepathy-logger ];
2018-03-15 05:33:51 +01:00
nativeBuildInputs = [
meson ninja pkgconfig itstool gettext wrapGAppsHook libxml2
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 = [
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
];
2020-02-09 01:34:37 +01:00
postFixup = ''
wrapGApp "$out/share/polari/thumbnailer.js"
'';
2018-03-15 05:33:51 +01:00
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
attrPath = "gnome3.${pname}";
};
};
meta = with stdenv.lib; {
homepage = "https://wiki.gnome.org/Apps/Polari";
description = "IRC chat client designed to integrate with the GNOME desktop";
maintainers = teams.gnome.members;
license = licenses.gpl2;
platforms = platforms.linux;
};
}