nixpkgs/pkgs/desktops/xfce/panel-plugins/xfce4-vala-panel-appmenu-plugin/default.nix
2020-04-19 20:38:59 -03:00

57 lines
1.6 KiB
Nix

{ stdenv, fetchFromGitHub, substituteAll, callPackage, pkgconfig, cmake, vala, libxml2,
glib, pcre, gtk2, gtk3, xorg, libxkbcommon, epoxy, at-spi2-core, dbus-glib, bamf,
xfce, libwnck3, libdbusmenu, gobject-introspection }:
stdenv.mkDerivation rec {
pname = "xfce4-vala-panel-appmenu-plugin";
version = "0.7.3";
src = fetchFromGitHub {
owner = "rilian-la-te";
repo = "vala-panel-appmenu";
rev = version;
fetchSubmodules = true;
sha256 = "06rykdr2c9rnzxwinwdynd73v9wf0gjkx6qfva7sx2n94ajsdnaw";
};
nativeBuildInputs = [ pkgconfig cmake vala libxml2.bin ];
buildInputs = [ (callPackage ./appmenu-gtk-module.nix {})
glib pcre gtk2 gtk3 xorg.libpthreadstubs xorg.libXdmcp libxkbcommon epoxy
at-spi2-core dbus-glib bamf xfce.xfce4panel_gtk3 xfce.libxfce4util xfce.xfconf
libwnck3 libdbusmenu gobject-introspection ];
patches = [
(substituteAll {
src = ./fix-bamf-dependency.patch;
bamf = bamf;
})
];
cmakeFlags = [
"-DENABLE_XFCE=ON"
"-DENABLE_BUDGIE=OFF"
"-DENABLE_VALAPANEL=OFF"
"-DENABLE_MATE=OFF"
"-DENABLE_JAYATANA=OFF"
"-DENABLE_APPMENU_GTK_MODULE=OFF"
];
preConfigure = ''
mv cmake/FallbackVersion.cmake.in cmake/FallbackVersion.cmake
'';
passthru.updateScript = xfce.updateScript {
inherit pname version;
attrPath = "xfce.${pname}";
versionLister = xfce.gitLister src.meta.homepage;
};
meta = with stdenv.lib; {
description = "Global Menu applet for XFCE4";
license = licenses.lgpl3;
maintainers = with maintainers; [ jD91mZM2 ];
broken = true;
};
}