summary refs log tree commit diff
path: root/pkgs/desktops/xfce/panel-plugins/xfce4-windowck-plugin/default.nix
blob: 8f4751b1737ba8c94186c29680b543172d53f063 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{ lib, stdenv, fetchFromGitHub, pkg-config, intltool, python3, imagemagick, libwnck, libxfce4ui, xfce4-panel, xfconf, xfce4-dev-tools, xfce }:

stdenv.mkDerivation rec {
  pname  = "xfce4-windowck-plugin";
  version = "0.4.10";

  src = fetchFromGitHub {
    owner = "invidian";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-luCQzqWX3Jl2MlBa3vi1q7z1XOhpFxE8PUxscoIyBlA=";
  };

  nativeBuildInputs = [
    pkg-config
    intltool
  ];

  buildInputs = [
    python3
    imagemagick
    libwnck
    libxfce4ui
    xfce4-panel
    xfconf
    xfce4-dev-tools
  ];

  preConfigure = ''
    ./autogen.sh
    patchShebangs .
  '';

  enableParallelBuilding = true;

  passthru.updateScript = xfce.updateScript {
    inherit pname version;
    attrPath = "xfce.${pname}";
    versionLister = xfce.gitLister src.meta.homepage;
    rev-prefix = "v";
  };

  meta = with lib; {
    homepage = "https://goodies.xfce.org/projects/panel-plugins/xfce4-windowck-plugin";
    description = "Xfce plugins which allows to put the maximized window title and buttons on the panel";
    license = licenses.gpl2Plus;
    platforms = platforms.unix;
    maintainers = [ maintainers.volth ];
  };
}