10 stdenv.mkDerivation rec {
11 pname = "openbox-menu";
15 url = "https://bitbucket.org/fabriceT/openbox-menu/downloads/${pname}-${version}.tar.bz2";
16 sha256 = "1hi4b6mq97y6ajq4hhsikbkk23aha7ikaahm92djw48mgj2f1w8l";
19 nativeBuildInputs = [ pkg-config ];
20 buildInputs = [ glib gtk2 menu-cache ];
22 # Enables SVG support by uncommenting the Makefile
23 patches = [ ./000-enable-svg.patch ];
25 # The strip options are not recognized by Darwin.
26 postPatch = lib.optionalString stdenv.isDarwin ''
27 sed -i -e '/strip -s/d' Makefile
30 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
32 installFlags = [ "prefix=${placeholder "out"}" ];
35 homepage = "http://fabrice.thiroux.free.fr/openbox-menu_en.html";
36 description = "Dynamic XDG menu generator for Openbox";
38 Openbox-menu is a pipemenu for Openbox window manager. It provides a
39 dynamic menu listing installed applications. Most of the work is done by
40 the LXDE library menu-cache.
42 license = licenses.gpl3Plus;
43 maintainers = [ maintainers.romildo ];
44 platforms = platforms.unix;
45 mainProgram = "openbox-menu";