From 21667ec81c19382f8f5f2a13144ee65228dae284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo?= Date: Tue, 27 Sep 2022 11:49:20 -0300 Subject: [PATCH] xfce.xfce4-cpugraph-plugin: use mkXfceDerivation --- .../xfce4-cpugraph-plugin/default.nix | 43 +++++-------------- 1 file changed, 11 insertions(+), 32 deletions(-) diff --git a/pkgs/desktops/xfce/panel-plugins/xfce4-cpugraph-plugin/default.nix b/pkgs/desktops/xfce/panel-plugins/xfce4-cpugraph-plugin/default.nix index 33bdb052b6a9..8a2cd770944b 100644 --- a/pkgs/desktops/xfce/panel-plugins/xfce4-cpugraph-plugin/default.nix +++ b/pkgs/desktops/xfce/panel-plugins/xfce4-cpugraph-plugin/default.nix @@ -1,57 +1,36 @@ { lib -, stdenv -, fetchurl -, pkg-config -, intltool -, glib +, mkXfceDerivation , exo +, gtk3 , libXtst -, xorgproto +, libxfce4ui , libxfce4util , xfce4-panel -, libxfce4ui , xfconf -, gtk3 -, hicolor-icon-theme -, xfce +, xorgproto }: -let +mkXfceDerivation rec { category = "panel-plugins"; -in stdenv.mkDerivation rec { pname = "xfce4-cpugraph-plugin"; version = "1.2.6"; - - src = fetchurl { - url = "mirror://xfce/src/${category}/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.bz2"; - sha256 = "sha256-dzJG9XwYJKhUaNQRnBeusHFw7R66zo+kBsf7z1tHr5k="; - }; - - nativeBuildInputs = [ - pkg-config - intltool - ]; + rev-prefix = "xfce4-cpugraph-plugin-"; + odd-unstable = false; + sha256 = "sha256-Elm10ZGN93R+1XZ4vJJZZIJ6OcaHpsrH0nQRMMuFnLY="; buildInputs = [ - glib exo + gtk3 libXtst - xorgproto - libxfce4util libxfce4ui + libxfce4util xfce4-panel xfconf - gtk3 - hicolor-icon-theme + xorgproto ]; - passthru.updateScript = xfce.archiveUpdater { inherit category pname version; }; - meta = with lib; { - homepage = "https://docs.xfce.org/panel-plugins/xfce4-cpugraph-plugin"; description = "CPU graph show for Xfce panel"; - license = licenses.gpl2Plus; - platforms = platforms.linux; maintainers = with maintainers; [ ] ++ teams.xfce.members; }; }