1 { stdenv, lib, fetchFromGitHub, cairo, libxkbcommon
2 , pango, fribidi, harfbuzz, pkg-config, scdoc
3 , ncursesSupport ? true, ncurses
4 , waylandSupport ? true, wayland, wayland-protocols, wayland-scanner
5 , x11Support ? true, xorg
8 stdenv.mkDerivation (finalAttrs: {
12 src = fetchFromGitHub {
15 rev = finalAttrs.version;
16 hash = "sha256-0vpqJ2jydTt6aVni0ma0g+80PFz+C4xJ5M77sMODkSg=";
20 nativeBuildInputs = [ pkg-config scdoc ]
21 ++ lib.optionals waylandSupport [ wayland-scanner ];
29 ] ++ lib.optional ncursesSupport ncurses
30 ++ lib.optionals waylandSupport [ wayland wayland-protocols ]
31 ++ lib.optionals x11Support [
32 xorg.libX11 xorg.libXinerama xorg.libXft
33 xorg.libXdmcp xorg.libpthreadstubs xorg.libxcb
36 makeFlags = ["PREFIX=$(out)"];
38 buildFlags = ["clients"]
39 ++ lib.optional ncursesSupport "curses"
40 ++ lib.optional waylandSupport "wayland"
41 ++ lib.optional x11Support "x11";
44 homepage = "https://github.com/Cloudef/bemenu";
45 description = "Dynamic menu library and client program inspired by dmenu";
46 license = licenses.gpl3Plus;
47 maintainers = with maintainers; [ crertel ];
48 mainProgram = "bemenu";
49 platforms = with platforms; linux;