2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2019-03-24 15:29:44 +01:00
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-17 03:09:27 +01:00
|
|
|
, pkg-config
|
2019-03-24 15:29:44 +01:00
|
|
|
, vala
|
|
|
|
, gettext
|
|
|
|
, libxml2
|
|
|
|
, desktop-file-utils
|
|
|
|
, wrapGAppsHook
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, libgtop
|
|
|
|
, libdazzle
|
2021-05-07 23:18:14 +02:00
|
|
|
, gnome
|
2019-09-02 18:44:12 +02:00
|
|
|
, tracker
|
2020-09-18 16:59:46 +02:00
|
|
|
, libhandy
|
2019-03-24 15:29:44 +01:00
|
|
|
}:
|
2018-03-15 02:47:54 +01:00
|
|
|
|
2019-03-24 15:29:44 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-15 02:47:54 +01:00
|
|
|
pname = "gnome-usage";
|
2021-03-23 06:12:06 +01:00
|
|
|
version = "3.38.1";
|
2018-03-15 02:47:54 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 06:42:41 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2021-03-23 06:12:06 +01:00
|
|
|
sha256 = "mMdm4X4VZXEfx0uaJP0u0NX618y0VRlhLdTiFHaO05M=";
|
2018-03-15 02:47:54 +01:00
|
|
|
};
|
|
|
|
|
2019-03-24 15:29:44 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
desktop-file-utils
|
|
|
|
gettext
|
|
|
|
libxml2
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 03:09:27 +01:00
|
|
|
pkg-config
|
2019-03-24 15:29:44 +01:00
|
|
|
vala
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
2018-03-15 02:47:54 +01:00
|
|
|
|
2019-03-24 15:29:44 +01:00
|
|
|
buildInputs = [
|
|
|
|
glib
|
2021-05-07 23:18:14 +02:00
|
|
|
gnome.adwaita-icon-theme
|
2019-03-24 15:29:44 +01:00
|
|
|
gtk3
|
|
|
|
libdazzle
|
|
|
|
libgtop
|
2019-09-02 18:44:12 +02:00
|
|
|
tracker
|
2020-09-18 16:59:46 +02:00
|
|
|
libhandy
|
2019-03-24 15:29:44 +01:00
|
|
|
];
|
2018-03-15 02:47:54 +01:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/meson/postinstall.sh
|
|
|
|
patchShebangs build-aux/meson/postinstall.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-07 23:18:14 +02:00
|
|
|
updateScript = gnome.updateScript {
|
2018-03-15 02:47:54 +01:00
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-03-24 15:29:44 +01:00
|
|
|
description = "A nice way to view information about use of system resources, like memory and disk space";
|
2018-03-15 02:47:54 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2020-04-01 14:40:51 +02:00
|
|
|
maintainers = teams.gnome.members;
|
2018-03-15 02:47:54 +01:00
|
|
|
};
|
|
|
|
}
|