Files
nixpkgs/pkgs/by-name/gn/gnome-usage/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

75 lines
1.3 KiB
Nix

{
stdenv,
lib,
fetchurl,
meson,
ninja,
pkg-config,
vala,
gettext,
libxml2,
desktop-file-utils,
wrapGAppsHook4,
glib,
gtk4,
json-glib,
libadwaita,
libgee,
libgtop,
networkmanager,
gnome,
tinysparql,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "gnome-usage";
version = "48.rc";
src = fetchurl {
url = "mirror://gnome/sources/gnome-usage/${lib.versions.major finalAttrs.version}/gnome-usage-${finalAttrs.version}.tar.xz";
hash = "sha256-LUbc2QcKkY/sMUdxaaQDI2CdCFa5XHo3wBusqULTk+w=";
};
nativeBuildInputs = [
desktop-file-utils
gettext
libxml2
meson
ninja
pkg-config
vala
wrapGAppsHook4
];
buildInputs = [
glib
gtk4
json-glib
libadwaita
libgee
libgtop
networkmanager
tinysparql
];
postPatch = ''
chmod +x build-aux/meson/postinstall.sh
patchShebangs build-aux/meson/postinstall.sh
'';
passthru = {
updateScript = gnome.updateScript {
packageName = "gnome-usage";
};
};
meta = with lib; {
description = "Nice way to view information about use of system resources, like memory and disk space";
mainProgram = "gnome-usage";
homepage = "https://gitlab.gnome.org/GNOME/gnome-usage";
license = licenses.gpl3Plus;
platforms = platforms.linux;
teams = [ teams.gnome ];
};
})