biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / misc / openbox-menu / default.nix
blobde3fc6cd0acccee8ff7f630d65e36d4bba593cd0
1 { lib
2 , stdenv
3 , fetchurl
4 , pkg-config
5 , glib
6 , gtk2
7 , menu-cache
8 }:
10 stdenv.mkDerivation rec {
11   pname = "openbox-menu";
12   version = "0.8.0";
14   src = fetchurl {
15     url = "https://bitbucket.org/fabriceT/openbox-menu/downloads/${pname}-${version}.tar.bz2";
16     sha256 = "1hi4b6mq97y6ajq4hhsikbkk23aha7ikaahm92djw48mgj2f1w8l";
17   };
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
28   '';
30   makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
32   installFlags = [ "prefix=${placeholder "out"}" ];
34   meta = with lib; {
35     homepage = "http://fabrice.thiroux.free.fr/openbox-menu_en.html";
36     description = "Dynamic XDG menu generator for Openbox";
37     longDescription = ''
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.
41     '';
42     license = licenses.gpl3Plus;
43     maintainers = [ maintainers.romildo ];
44     platforms   = platforms.unix;
45     mainProgram = "openbox-menu";
46   };