summary refs log tree commit diff
path: root/pkgs/desktops/xfce/panel-plugins/xfce4-vala-panel-appmenu-plugin/appmenu-gtk-module.nix
blob: f67ba7af8aa968ad122b7801133a59cee0a2fab5 (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
{ stdenv, fetchFromGitHub, cmake, vala, glib, gtk2, gtk3 }:
stdenv.mkDerivation rec {
  pname = "vala-panel-appmenu-xfce";
  version = "0.6.94";

  src = "${fetchFromGitHub {
    owner = "rilian-la-te";
    repo = "vala-panel-appmenu";
    rev = version;
    fetchSubmodules = true;

    sha256 = "0xxn3zs60a9nfix8wrdp056wviq281cm1031hznzf1l38lp3wr5p";
  }}/subprojects/appmenu-gtk-module";

  nativeBuildInputs = [ cmake vala ];
  buildInputs = [ glib gtk2 gtk3 ];

  configurePhase = ''
    cmake . -DGTK3_INCLUDE_GDK=
  '';
  installPhase = ''
    make DESTDIR=output install
    cp -r output/var/empty/* "$out"
  '';

  meta = with stdenv.lib; {
    description = "Port of the Unity GTK+ Module";
    license = licenses.lgpl3;
    maintainers = with maintainers; [ jD91mZM2 ];
  };
}