mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
82 lines
1.4 KiB
Nix
82 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
gettext,
|
|
fetchurl,
|
|
pkg-config,
|
|
gtkmm4,
|
|
libxml2,
|
|
bash,
|
|
gtk4,
|
|
libadwaita,
|
|
glib,
|
|
wrapGAppsHook4,
|
|
meson,
|
|
ninja,
|
|
gsettings-desktop-schemas,
|
|
itstool,
|
|
gnome,
|
|
adwaita-icon-theme,
|
|
librsvg,
|
|
gdk-pixbuf,
|
|
libgtop,
|
|
systemd,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gnome-system-monitor";
|
|
version = "47.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/gnome-system-monitor/${lib.versions.major version}/gnome-system-monitor-${version}.tar.xz";
|
|
hash = "sha256-7ee5JetxTYs8K/v3QFobcUSU/kfgLwrwj1g3s+JWVH8=";
|
|
};
|
|
|
|
patches = [
|
|
# Fix pkexec detection on NixOS.
|
|
./fix-paths.patch
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
gettext
|
|
itstool
|
|
wrapGAppsHook4
|
|
meson
|
|
ninja
|
|
glib
|
|
];
|
|
|
|
buildInputs = [
|
|
bash
|
|
gtk4
|
|
libadwaita
|
|
glib
|
|
libxml2
|
|
gtkmm4
|
|
libgtop
|
|
gdk-pixbuf
|
|
adwaita-icon-theme
|
|
librsvg
|
|
gsettings-desktop-schemas
|
|
systemd
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
passthru = {
|
|
updateScript = gnome.updateScript {
|
|
packageName = "gnome-system-monitor";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://apps.gnome.org/SystemMonitor/";
|
|
description = "System Monitor shows you what programs are running and how much processor time, memory, and disk space are being used";
|
|
mainProgram = "gnome-system-monitor";
|
|
maintainers = teams.gnome.members;
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|