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