2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, substituteAll, fetchFromGitHub, glib, glib-networking, libgtop }:
|
2016-04-15 21:18:15 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gnome-shell-system-monitor-${version}";
|
2018-03-07 18:59:00 +00:00
|
|
|
version = "33";
|
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}";
|
2018-03-07 08:24:31 +00:00
|
|
|
sha256 = "0abqaanl5r26x8f0mm0jgrjsr86hcx7mk75dx5c3zz7csw4nclkk";
|
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 = ''
|
2016-08-23 02:07:00 +01:00
|
|
|
${glib.dev}/bin/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;
|
|
|
|
};
|
|
|
|
}
|