nixpkgs/pkgs/applications/misc/gnome-usage/default.nix

38 lines
987 B
Nix
Raw Normal View History

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";
2018-09-12 12:53:06 +02:00
version = "3.30.0";
2018-03-15 02:47:54 +01:00
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
2018-09-12 12:53:06 +02:00
sha256 = "0f1vccw916az8hzsqmx6f57jvl68s3sbd3qk4rpwn42ks1v7nmsh";
2018-03-15 02:47:54 +01:00
};
nativeBuildInputs = [ meson ninja pkgconfig vala gettext libxml2 desktop-file-utils wrapGAppsHook ];
2019-02-13 22:47:50 +01:00
buildInputs = [ glib gtk3 libgtop gnome3.adwaita-icon-theme ];
2018-03-15 02:47:54 +01:00
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;
};
}