depot/third_party/nixpkgs/pkgs/desktops/xfce/panel-plugins/xfce4-vala-panel-appmenu-plugin/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

56 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;
};
}