Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 gettext, 6 meson, 7 ninja, 8 pkg-config, 9 xfce4-panel, 10 glib, 11 gtk3, 12 libgtop, 13 libxfce4ui, 14 libxfce4util, 15 upower, 16 xfconf, 17 gitUpdater, 18}: 19 20stdenv.mkDerivation (finalAttrs: { 21 pname = "xfce4-systemload-plugin"; 22 version = "1.4.0"; 23 24 src = fetchurl { 25 url = "mirror://xfce/src/panel-plugins/xfce4-systemload-plugin/${lib.versions.majorMinor finalAttrs.version}/xfce4-systemload-plugin-${finalAttrs.version}.tar.xz"; 26 hash = "sha256-bjY7z4RbuIMptShY1loexuANtRIa6SRuRusDE12VacY="; 27 }; 28 29 strictDeps = true; 30 31 nativeBuildInputs = [ 32 gettext 33 meson 34 ninja 35 pkg-config 36 ]; 37 38 buildInputs = [ 39 glib 40 gtk3 41 libgtop 42 libxfce4ui 43 libxfce4util 44 upower 45 xfce4-panel 46 xfconf 47 ]; 48 49 passthru.updateScript = gitUpdater { 50 url = "https://gitlab.xfce.org/panel-plugins/xfce4-systemload-plugin"; 51 rev-prefix = "xfce4-systemload-plugin-"; 52 }; 53 54 meta = { 55 homepage = "https://docs.xfce.org/panel-plugins/xfce4-systemload-plugin"; 56 description = "System load plugin for Xfce panel"; 57 license = lib.licenses.bsd2; 58 platforms = lib.platforms.linux; 59 teams = [ lib.teams.xfce ]; 60 }; 61})