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