@@ -1,18 +1,28 @@
1−{ stdenv, fetchFromGitHub, glib }:
1+{ config, stdenv, substituteAll, fetchFromGitHub, glib, glib_networking, libgtop, pkgs }:
22
33stdenv.mkDerivation rec {
44 name = "gnome-shell-system-monitor-${version}";
5− version = "8b31f070e9e59109d729661ced313d6a63e31787";
5+ version = "33";
66
77 src = fetchFromGitHub {
88 owner = "paradoxxxzero";
99 repo = "gnome-shell-system-monitor-applet";
10− rev = version;
11− sha256 = "0fm5zb6qp53jjy2mnkb8ybxygzjwpb314giiq0ywq87hhrpch8m3";
10+ rev = "v${version}";
11+ sha256 = "0abqaanl5r26x8f0mm0jgrjsr86hcx7mk75dx5c3zz7csw4nclkk";
1212 };
1313
1414 buildInputs = [
1515 glib
16+ glib_networking
17+ libgtop
18+ ];
19+
20+ patches = [
21+ (substituteAll {
22+ src = ./paths_and_nonexisting_dirs.patch;
23+ gtop_path = "${libgtop}/lib/girepository-1.0";
24+ glib_net_path = "${glib_networking}/lib/girepository-1.0";
25+ })
1626 ];
1727
1828 buildPhase = ''
@@ -20,7 +30,8 @@ stdenv.mkDerivation rec {
2030 '';
2131
2232 installPhase = ''
23− cp -r ${uuid} $out
33+ mkdir -p $out/share/gnome-shell/extensions
34+ cp -r ${uuid} $out/share/gnome-shell/extensions
2435 '';
2536
2637 uuid = "system-monitor@paradoxxx.zero.gmail.com";
@@ -28,7 +39,7 @@ stdenv.mkDerivation rec {
2839 meta = with stdenv.lib; {
2940 description = "Display system informations in gnome shell status bar";
3041 license = licenses.gpl3Plus;
31− maintainers = with maintainers; [ aneeshusa ];
42+ maintainers = with maintainers; [ aneeshusa tiramiseb ];
3243 homepage = https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet;
3344 };
3445}