mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
66 lines
1.1 KiB
Nix
66 lines
1.1 KiB
Nix
{ stdenv
|
|
, fetchurl
|
|
, meson
|
|
, ninja
|
|
, pkgconfig
|
|
, vala
|
|
, gettext
|
|
, libxml2
|
|
, desktop-file-utils
|
|
, wrapGAppsHook
|
|
, glib
|
|
, gtk3
|
|
, libgtop
|
|
, libdazzle
|
|
, gnome3
|
|
, tracker
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gnome-usage";
|
|
version = "3.33.2";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "0w3ppfaf15il8mad64qyc9hj1rmlvzs5dyzrxhq7r50k4kyiwmk4";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
desktop-file-utils
|
|
gettext
|
|
libxml2
|
|
meson
|
|
ninja
|
|
pkgconfig
|
|
vala
|
|
wrapGAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
gnome3.adwaita-icon-theme
|
|
gtk3
|
|
libdazzle
|
|
libgtop
|
|
tracker
|
|
];
|
|
|
|
postPatch = ''
|
|
chmod +x build-aux/meson/postinstall.sh
|
|
patchShebangs build-aux/meson/postinstall.sh
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = gnome3.updateScript {
|
|
packageName = pname;
|
|
};
|
|
};
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A nice way to view information about use of system resources, like memory and disk space";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux;
|
|
maintainers = teams.gnome.members;
|
|
};
|
|
}
|