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