nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, stdenv
3, fetchurl
4, pkg-config
5, glib
6, gtk2
7, menu-cache
8}:
9
10stdenv.mkDerivation rec {
11 pname = "openbox-menu";
12 version = "0.8.0";
13
14 src = fetchurl {
15 url = "https://bitbucket.org/fabriceT/openbox-menu/downloads/${pname}-${version}.tar.bz2";
16 sha256 = "1hi4b6mq97y6ajq4hhsikbkk23aha7ikaahm92djw48mgj2f1w8l";
17 };
18
19 nativeBuildInputs = [ pkg-config ];
20 buildInputs = [ glib gtk2 menu-cache ];
21
22 # Enables SVG support by uncommenting the Makefile
23 patches = [ ./000-enable-svg.patch ];
24
25 # The strip options are not recognized by Darwin.
26 postPatch = lib.optionalString stdenv.isDarwin ''
27 sed -i -e '/strip -s/d' Makefile
28 '';
29
30 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
31
32 installFlags = [ "prefix=${placeholder "out"}" ];
33
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 };
46}