gnome3.gnome-system-monitor: fix build

This commit is contained in:
Jan Tojnar 2018-03-14 14:39:43 +01:00
parent f5bfbb377c
commit fead86590d
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -1,4 +1,4 @@
{ stdenv, intltool, fetchurl, pkgconfig, gtkmm3, libxml2
{ stdenv, gettext, fetchurl, pkgconfig, gtkmm3, libxml2, polkit
, bash, gtk3, glib, wrapGAppsHook
, itstool, gnome3, librsvg, gdk_pixbuf, libgtop, systemd }:
@ -11,33 +11,31 @@ stdenv.mkDerivation rec {
sha256 = "1wvgx5p0a29d8yzp7rinpln90pg8vsjagqlvm4cxyhnl5hsdvrvn";
};
passthru = {
updateScript = gnome3.updateScript { packageName = "gnome-system-monitor"; attrPath = "gnome3.gnome-system-monitor"; };
};
doCheck = true;
propagatedUserEnvPkgs = [ gnome3.gnome-themes-standard ];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ bash gtk3 glib intltool itstool libxml2
gtkmm3 libgtop wrapGAppsHook
gdk_pixbuf gnome3.defaultIconTheme librsvg
gnome3.gsettings-desktop-schemas systemd ];
preFixup = ''
gappsWrapperArgs+=(
--prefix XDG_DATA_DIRS : "${gtk3.out}/share:${gnome3.gnome-themes-standard}/share"
)
'';
nativeBuildInputs = [
pkgconfig gettext itstool wrapGAppsHook
polkit # for ITS file
];
buildInputs = [
bash gtk3 glib libxml2 gtkmm3 libgtop gdk_pixbuf gnome3.defaultIconTheme librsvg
gnome3.gsettings-desktop-schemas systemd
];
# fails to build without --enable-static
configureFlags = ["--enable-systemd" "--enable-static"];
enableParallelBuilding = true;
passthru = {
updateScript = gnome3.updateScript {
packageName = "gnome-system-monitor";
attrPath = "gnome3.gnome-system-monitor";
};
};
meta = with stdenv.lib; {
homepage = https://help.gnome.org/users/gnome-system-monitor/3.12/;
homepage = https://wiki.gnome.org/Apps/SystemMonitor;
description = "System Monitor shows you what programs are running and how much processor time, memory, and disk space are being used";
maintainers = gnome3.maintainers;
license = licenses.gpl2;