2018-07-13 23:46:18 +02:00
|
|
|
{ stdenv, fetchurl, meson, ninja, pkgconfig, gnome3, glib, gtk3, wrapGAppsHook, desktop-file-utils
|
2018-07-06 00:44:49 +02:00
|
|
|
, gettext, itstool, libxml2, libxslt, docbook_xsl, docbook_xml_dtd_43, systemd, python3 }:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-25 21:07:20 +01:00
|
|
|
name = "gnome-logs-${version}";
|
2019-03-03 19:52:27 +01:00
|
|
|
version = "3.32.0";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-05 02:12:11 +02:00
|
|
|
url = "mirror://gnome/sources/gnome-logs/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2019-03-03 19:52:27 +01:00
|
|
|
sha256 = "1cn0ms24y9sg1kvhmk4mj7v9fi0n6ylyf11jjh4k81wfjsaah7w4";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
|
|
|
|
2018-07-06 00:44:49 +02:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dtests=true"
|
|
|
|
"-Dman=true"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2018-09-05 02:46:47 +02:00
|
|
|
python3
|
2018-07-06 00:44:49 +02:00
|
|
|
meson ninja pkgconfig wrapGAppsHook gettext itstool desktop-file-utils
|
|
|
|
libxml2 libxslt docbook_xsl docbook_xml_dtd_43
|
|
|
|
];
|
2019-02-13 22:47:50 +01:00
|
|
|
buildInputs = [ glib gtk3 systemd gnome3.gsettings-desktop-schemas gnome3.adwaita-icon-theme ];
|
2018-07-06 00:44:49 +02:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_post_install.py
|
|
|
|
patchShebangs meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = true;
|
2018-03-15 01:14:52 +01:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "gnome-logs";
|
|
|
|
attrPath = "gnome3.gnome-logs";
|
|
|
|
};
|
|
|
|
};
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://wiki.gnome.org/Apps/Logs;
|
|
|
|
description = "A log viewer for the systemd journal";
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|