nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 74 lines 1.4 kB view raw
1{ 2 stdenv, 3 lib, 4 fetchurl, 5 meson, 6 ninja, 7 pkg-config, 8 vala, 9 gettext, 10 libxml2, 11 desktop-file-utils, 12 wrapGAppsHook4, 13 glib, 14 gtk4, 15 json-glib, 16 libadwaita, 17 libgee, 18 libgtop, 19 networkmanager, 20 gnome, 21 tinysparql, 22}: 23 24stdenv.mkDerivation (finalAttrs: { 25 pname = "gnome-usage"; 26 version = "48.0"; 27 28 src = fetchurl { 29 url = "mirror://gnome/sources/gnome-usage/${lib.versions.major finalAttrs.version}/gnome-usage-${finalAttrs.version}.tar.xz"; 30 hash = "sha256-UB3jxtTWU9Wc4NcHdY3M+D3D6oGi7RSS0vMzFi/uChc="; 31 }; 32 33 nativeBuildInputs = [ 34 desktop-file-utils 35 gettext 36 libxml2 37 meson 38 ninja 39 pkg-config 40 vala 41 wrapGAppsHook4 42 ]; 43 44 buildInputs = [ 45 glib 46 gtk4 47 json-glib 48 libadwaita 49 libgee 50 libgtop 51 networkmanager 52 tinysparql 53 ]; 54 55 postPatch = '' 56 chmod +x build-aux/meson/postinstall.sh 57 patchShebangs build-aux/meson/postinstall.sh 58 ''; 59 60 passthru = { 61 updateScript = gnome.updateScript { 62 packageName = "gnome-usage"; 63 }; 64 }; 65 66 meta = { 67 description = "Nice way to view information about use of system resources, like memory and disk space"; 68 mainProgram = "gnome-usage"; 69 homepage = "https://gitlab.gnome.org/GNOME/gnome-usage"; 70 license = lib.licenses.gpl3Plus; 71 platforms = lib.platforms.linux; 72 teams = [ lib.teams.gnome ]; 73 }; 74})