1{
2 lib,
3 stdenv,
4 fetchurl,
5 fetchpatch,
6 glib,
7 pkg-config,
8 libfm-extra,
9}:
10
11stdenv.mkDerivation rec {
12 pname = "menu-cache";
13 version = "1.1.0";
14
15 src = fetchurl {
16 url = "mirror://sourceforge/lxde/menu-cache-${version}.tar.xz";
17 sha256 = "1iry4zlpppww8qai2cw4zid4081hh7fz8nzsp5lqyffbkm2yn0pd";
18 };
19
20 patches = [
21 # Pull patch pending upstream inclusion for -fno-common toolchain support:
22 # https://github.com/lxde/menu-cache/pull/19
23 (fetchpatch {
24 name = "fno-common.patch";
25 url = "https://github.com/lxde/menu-cache/commit/1ce739649b4d66339a03fc0ec9ee7a2f7c141780.patch";
26 sha256 = "08x3h0w2pl8ifj83v9jkf4j3zxcwsyzh251divlhhnwx0rw1pyn7";
27 })
28 ];
29
30 nativeBuildInputs = [ pkg-config ];
31
32 buildInputs = [
33 glib
34 libfm-extra
35 ];
36
37 meta = with lib; {
38 description = "Library to read freedesktop.org menu files";
39 homepage = "https://blog.lxde.org/tag/menu-cache/";
40 license = licenses.gpl2Plus;
41 maintainers = [ maintainers.ttuegel ];
42 platforms = platforms.linux ++ platforms.darwin;
43 };
44}