2021-05-07 22:18:14 +01:00
|
|
|
{ lib, stdenv, substituteAll, fetchFromGitHub, glib, glib-networking, libgtop, gnome }:
|
2016-04-15 21:18:15 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-05-24 21:01:59 +01:00
|
|
|
pname = "gnome-shell-extension-system-monitor";
|
2021-06-19 18:22:56 +01:00
|
|
|
version = "unstable-2021-06-19";
|
2016-04-15 21:18:15 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "paradoxxxzero";
|
|
|
|
repo = "gnome-shell-system-monitor-applet";
|
2021-06-19 18:22:56 +01:00
|
|
|
rev = "bece7be22352b81d3d81e64e18a385812851b8de";
|
|
|
|
sha256 = "08nnsg7z3cqk25hfgy4wm02hd2wpz13kig498kn4mf5f1q4hslmx";
|
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;
|
2021-06-19 18:22:56 +01:00
|
|
|
clutter_path = gnome.mutter.libdir; # only needed for GNOME < 40.
|
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 = ''
|
2020-07-18 12:06:33 +01:00
|
|
|
runHook preBuild
|
2021-05-29 20:55:35 +01:00
|
|
|
glib-compile-schemas --targetdir="system-monitor@paradoxxx.zero.gmail.com/schemas" "system-monitor@paradoxxx.zero.gmail.com/schemas"
|
2020-07-18 12:06:33 +01:00
|
|
|
runHook postBuild
|
2016-04-15 21:18:15 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2020-07-18 12:06:33 +01:00
|
|
|
runHook preInstall
|
2018-03-07 08:24:31 +00:00
|
|
|
mkdir -p $out/share/gnome-shell/extensions
|
2021-05-29 20:55:35 +01:00
|
|
|
cp -r "system-monitor@paradoxxx.zero.gmail.com" $out/share/gnome-shell/extensions
|
2020-07-18 12:06:33 +01:00
|
|
|
runHook postInstall
|
2016-04-15 21:18:15 +01:00
|
|
|
'';
|
|
|
|
|
2021-05-29 16:34:26 +01:00
|
|
|
passthru = {
|
|
|
|
extensionUuid = "system-monitor@paradoxxx.zero.gmail.com";
|
|
|
|
extensionPortalSlug = "system-monitor";
|
|
|
|
};
|
2016-04-15 21:18:15 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-04-15 21:18:15 +01:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|