2020-07-10 19:12:34 +01:00
|
|
|
{ stdenv, substituteAll, fetchpatch, fetchFromGitHub, glib, glib-networking, libgtop, gnome3 }:
|
2016-04-15 21:18:15 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "gnome-shell-system-monitor";
|
2020-07-10 19:12:34 +01:00
|
|
|
version = "2020-04-27-unstable";
|
2016-04-15 21:18:15 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "paradoxxxzero";
|
|
|
|
repo = "gnome-shell-system-monitor-applet";
|
2020-07-10 19:12:34 +01:00
|
|
|
rev = "7f8f0a7b255473941f14d1dcaa35ebf39d3bccd0";
|
|
|
|
sha256 = "tUUvBY0UEUE+T79zVZEAICpKoriFZuuZzi9ArdHdXks=";
|
2016-04-15 21:18:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
2018-07-17 21:11:16 +01:00
|
|
|
glib-networking
|
2018-03-07 08:24:31 +00:00
|
|
|
libgtop
|
2016-04-15 21:18:15 +01:00
|
|
|
];
|
|
|
|
|
2018-03-11 20:55:21 +00:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./paths_and_nonexisting_dirs.patch;
|
2020-07-10 19:12:34 +01:00
|
|
|
clutter_path = gnome3.mutter.libdir; # this should not be used in settings but 🤷♀️
|
2018-03-11 20:55:21 +00:00
|
|
|
gtop_path = "${libgtop}/lib/girepository-1.0";
|
2018-07-17 21:11:16 +01:00
|
|
|
glib_net_path = "${glib-networking}/lib/girepository-1.0";
|
2018-03-11 20:55:21 +00:00
|
|
|
})
|
|
|
|
];
|
2018-03-07 08:24:31 +00:00
|
|
|
|
2016-04-15 21:18:15 +01:00
|
|
|
buildPhase = ''
|
2018-08-30 18:45:19 +01:00
|
|
|
glib-compile-schemas --targetdir=${uuid}/schemas ${uuid}/schemas
|
2016-04-15 21:18:15 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2018-03-07 08:24:31 +00:00
|
|
|
mkdir -p $out/share/gnome-shell/extensions
|
|
|
|
cp -r ${uuid} $out/share/gnome-shell/extensions
|
2016-04-15 21:18:15 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
uuid = "system-monitor@paradoxxx.zero.gmail.com";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Display system informations in gnome shell status bar";
|
|
|
|
license = licenses.gpl3Plus;
|
2020-03-24 05:21:10 +00:00
|
|
|
maintainers = with maintainers; [ tiramiseb ];
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet";
|
2016-04-15 21:18:15 +01:00
|
|
|
};
|
|
|
|
}
|