2019-11-18 15:57:41 +00:00
|
|
|
{ stdenv, substituteAll, fetchFromGitHub, glib, glib-networking, libgtop }:
|
2016-04-15 21:18:15 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "gnome-shell-system-monitor";
|
2019-09-07 12:52:35 +01:00
|
|
|
version = "38";
|
2016-04-15 21:18:15 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "paradoxxxzero";
|
|
|
|
repo = "gnome-shell-system-monitor-applet";
|
2018-03-07 18:59:00 +00:00
|
|
|
rev = "v${version}";
|
2019-09-07 12:52:35 +01:00
|
|
|
sha256 = "1sdj2kxb418mgq44a6lf6jic33wlfbnn3ja61igmx0jj1530iknv";
|
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;
|
|
|
|
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;
|
2018-03-07 08:24:31 +00:00
|
|
|
maintainers = with maintainers; [ aneeshusa tiramiseb ];
|
2016-04-15 21:18:15 +01:00
|
|
|
homepage = https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet;
|
|
|
|
};
|
|
|
|
}
|