ocamlPackages.camlp5: 8.03.00 → 8.03.01
[NixPkgs.git] / pkgs / applications / misc / openbox-menu / default.nix
blob465a3749df6d64baf88f3625718def528597eaa8
2   lib,
3   stdenv,
4   fetchurl,
5   pkg-config,
6   glib,
7   gtk2,
8   menu-cache,
9 }:
11 stdenv.mkDerivation rec {
12   pname = "openbox-menu";
13   version = "0.8.0";
15   src = fetchurl {
16     url = "https://bitbucket.org/fabriceT/openbox-menu/downloads/${pname}-${version}.tar.bz2";
17     sha256 = "1hi4b6mq97y6ajq4hhsikbkk23aha7ikaahm92djw48mgj2f1w8l";
18   };
20   nativeBuildInputs = [ pkg-config ];
21   buildInputs = [
22     glib
23     gtk2
24     menu-cache
25   ];
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
33   '';
35   makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
37   installFlags = [ "prefix=${placeholder "out"}" ];
39   meta = with lib; {
40     homepage = "http://fabrice.thiroux.free.fr/openbox-menu_en.html";
41     description = "Dynamic XDG menu generator for Openbox";
42     longDescription = ''
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.
46     '';
47     license = licenses.gpl3Plus;
48     maintainers = [ maintainers.romildo ];
49     platforms = platforms.unix;
50     mainProgram = "openbox-menu";
51   };