@@ -1,26 +1,33 @@
1−{ stdenv, fetchFromGitHub, glib }:
1+# This package needs the following configuration in configuration.nix:
2+# services.xserver.desktopManager.gnome3.sessionPath = [ pkgs.libgtop pkgs.glib_networking ];
3+{ config, stdenv, fetchFromGitHub, glib, glib_networking, libgtop, pkgs }:
24
35stdenv.mkDerivation rec {
46 name = "gnome-shell-system-monitor-${version}";
5− version = "8b31f070e9e59109d729661ced313d6a63e31787";
7+ version = "v33";
68
79 src = fetchFromGitHub {
810 owner = "paradoxxxzero";
911 repo = "gnome-shell-system-monitor-applet";
1012 rev = version;
11− sha256 = "0fm5zb6qp53jjy2mnkb8ybxygzjwpb314giiq0ywq87hhrpch8m3";
13+ sha256 = "0abqaanl5r26x8f0mm0jgrjsr86hcx7mk75dx5c3zz7csw4nclkk";
1214 };
1315
1416 buildInputs = [
1517 glib
18+ glib_networking
19+ libgtop
1620 ];
1721
22+ patches = [ ./remove_nonexisting_mounts.patch ];
23+
1824 buildPhase = ''
1925 ${glib.dev}/bin/glib-compile-schemas --targetdir=${uuid}/schemas ${uuid}/schemas
2026 '';
2127
2228 installPhase = ''
23− cp -r ${uuid} $out
29+ mkdir -p $out/share/gnome-shell/extensions
30+ cp -r ${uuid} $out/share/gnome-shell/extensions
2431 '';
2532
2633 uuid = "system-monitor@paradoxxx.zero.gmail.com";
@@ -28,7 +35,7 @@ stdenv.mkDerivation rec {
2835 meta = with stdenv.lib; {
2936 description = "Display system informations in gnome shell status bar";
3037 license = licenses.gpl3Plus;
31− maintainers = with maintainers; [ aneeshusa ];
38+ maintainers = with maintainers; [ aneeshusa tiramiseb ];
3239 homepage = https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet;
3340 };
3441}