diff options
Diffstat (limited to 'pkgs/desktops/xfce')
-rw-r--r-- | pkgs/desktops/xfce/panel-plugins/xfce4-windowck-plugin/default.nix | 40 |
1 files changed, 25 insertions, 15 deletions
diff --git a/pkgs/desktops/xfce/panel-plugins/xfce4-windowck-plugin/default.nix b/pkgs/desktops/xfce/panel-plugins/xfce4-windowck-plugin/default.nix index 53c154bdeecc7..6c0a7bafe39ec 100644 --- a/pkgs/desktops/xfce/panel-plugins/xfce4-windowck-plugin/default.nix +++ b/pkgs/desktops/xfce/panel-plugins/xfce4-windowck-plugin/default.nix @@ -1,37 +1,47 @@ -{ lib -, mkXfceDerivation -, imagemagick +{ stdenv +, lib +, fetchurl +, intltool +, pkg-config , libwnck , libxfce4ui -, python3 , xfce4-panel , xfconf +, gitUpdater }: -mkXfceDerivation { - category = "panel-plugins"; +stdenv.mkDerivation rec { pname = "xfce4-windowck-plugin"; - version = "0.5.0"; - rev-prefix = "v"; - odd-unstable = false; - sha256 = "sha256-MhNSgI74VLdoS5yL6nfRrVrPvv7+0P5meO4zQheYFzo="; + version = "0.5.1"; + + src = fetchurl { + # Use dist tarballs to avoid pulling extra deps and generating images ourselves. + url = "mirror://xfce/src/panel-plugins/xfce4-windowck-plugin/${lib.versions.majorMinor version}/xfce4-windowck-plugin-${version}.tar.bz2"; + sha256 = "sha256-p4FEi3gemE072lmw2qsNGE1M7CJSMW9zcKxKmO/kgfQ="; + }; + + nativeBuildInputs = [ + intltool + pkg-config + ]; buildInputs = [ - imagemagick libwnck libxfce4ui - python3 xfce4-panel xfconf ]; - postPatch = '' - patchShebangs themes/windowck{,-dark}/{xfwm4,unity}/generator.py - ''; + passthru.updateScript = gitUpdater { + url = "https://gitlab.xfce.org/panel-plugins/xfce4-windowck-plugin"; + rev-prefix = "xfce4-windowck-plugin-"; + }; meta = with lib; { description = "Xfce panel plugin for displaying window title and buttons"; + homepage = "https://gitlab.xfce.org/panel-plugins/xfce4-windowck-plugin"; license = licenses.gpl3Plus; + platforms = platforms.linux; maintainers = with maintainers; [ ] ++ teams.xfce.members; }; } |