mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 10:56:53 +00:00
5fb893f922
gnomeExtensions: Some more cleanup
54 lines
1.6 KiB
Nix
54 lines
1.6 KiB
Nix
{ lib, stdenv, substituteAll, fetchFromGitHub, glib, glib-networking, libgtop, gnome }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gnome-shell-extension-system-monitor";
|
|
version = "unstable-2021-06-19";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "paradoxxxzero";
|
|
repo = "gnome-shell-system-monitor-applet";
|
|
rev = "bece7be22352b81d3d81e64e18a385812851b8de";
|
|
sha256 = "08nnsg7z3cqk25hfgy4wm02hd2wpz13kig498kn4mf5f1q4hslmx";
|
|
};
|
|
|
|
buildInputs = [
|
|
glib
|
|
glib-networking
|
|
libgtop
|
|
];
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./paths_and_nonexisting_dirs.patch;
|
|
clutter_path = gnome.mutter.libdir; # only needed for GNOME < 40.
|
|
gtop_path = "${libgtop}/lib/girepository-1.0";
|
|
glib_net_path = "${glib-networking}/lib/girepository-1.0";
|
|
})
|
|
];
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
glib-compile-schemas --targetdir="system-monitor@paradoxxx.zero.gmail.com/schemas" "system-monitor@paradoxxx.zero.gmail.com/schemas"
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/share/gnome-shell/extensions
|
|
cp -r "system-monitor@paradoxxx.zero.gmail.com" $out/share/gnome-shell/extensions
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru = {
|
|
extensionUuid = "system-monitor@paradoxxx.zero.gmail.com";
|
|
extensionPortalSlug = "system-monitor";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Display system informations in gnome shell status bar";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ tiramiseb ];
|
|
homepage = "https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet";
|
|
};
|
|
}
|