Unverified Commit fb05346f authored by Bobby Rong's avatar Bobby Rong
Browse files
parent 58bcff71
Loading
Loading
Loading
Loading
+25 −15
Original line number Diff line number Diff line
{ 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;
  };
}