mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
80b25db15c
Using explicit output feels more flaky in case we e.g. move the binary. (No strong opinion on my side, feel free to revert if you think so.)
46 lines
1.2 KiB
Nix
46 lines
1.2 KiB
Nix
{ stdenv, substituteAll, fetchFromGitHub, glib, glib-networking, libgtop }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "gnome-shell-system-monitor-${version}";
|
|
version = "33";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "paradoxxxzero";
|
|
repo = "gnome-shell-system-monitor-applet";
|
|
rev = "v${version}";
|
|
sha256 = "0abqaanl5r26x8f0mm0jgrjsr86hcx7mk75dx5c3zz7csw4nclkk";
|
|
};
|
|
|
|
buildInputs = [
|
|
glib
|
|
glib-networking
|
|
libgtop
|
|
];
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./paths_and_nonexisting_dirs.patch;
|
|
gtop_path = "${libgtop}/lib/girepository-1.0";
|
|
glib_net_path = "${glib-networking}/lib/girepository-1.0";
|
|
})
|
|
];
|
|
|
|
buildPhase = ''
|
|
glib-compile-schemas --targetdir=${uuid}/schemas ${uuid}/schemas
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/share/gnome-shell/extensions
|
|
cp -r ${uuid} $out/share/gnome-shell/extensions
|
|
'';
|
|
|
|
uuid = "system-monitor@paradoxxx.zero.gmail.com";
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Display system informations in gnome shell status bar";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ aneeshusa tiramiseb ];
|
|
homepage = https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet;
|
|
};
|
|
}
|