2018-03-15 02:47:54 +01:00
|
|
|
{ stdenv, fetchurl, meson, ninja, pkgconfig, vala, gettext
|
|
|
|
, libxml2, desktop-file-utils, wrapGAppsHook
|
|
|
|
, glib, gtk3, libgtop, gnome3 }:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "gnome-usage";
|
|
|
|
version = "3.28.0";
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-05 02:12:11 +02:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2018-03-15 02:47:54 +01:00
|
|
|
sha256 = "0130bwinpkz307nalw6ndi5mk38k5g6jna4gbw2916d54df6a4nq";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig vala gettext libxml2 desktop-file-utils wrapGAppsHook ];
|
|
|
|
|
|
|
|
buildInputs = [ glib gtk3 libgtop gnome3.defaultIconTheme ];
|
|
|
|
|
|
|
|
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 = "";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
};
|
|
|
|
}
|