2021-11-02 23:50:32 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, fetchpatch, cairo, libxkbcommon
|
2023-03-04 19:25:39 +00:00
|
|
|
, pango, fribidi, harfbuzz, pcre, pkg-config, scdoc
|
|
|
|
, ncursesSupport ? true, ncurses
|
|
|
|
, waylandSupport ? true, wayland, wayland-protocols, wayland-scanner
|
|
|
|
, x11Support ? true, xorg
|
2019-05-01 22:04:38 +00:00
|
|
|
}:
|
|
|
|
|
2019-12-29 21:11:42 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-05-01 22:04:38 +00:00
|
|
|
pname = "bemenu";
|
2022-12-16 21:31:22 +00:00
|
|
|
version = "0.6.14";
|
2019-05-01 22:04:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Cloudef";
|
2019-12-29 21:11:42 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-12-16 21:31:22 +00:00
|
|
|
sha256 = "sha256-bMnnuT+LNNKphmvVcD1aaNZxasSGOEcAveC4stCieG8=";
|
2019-05-01 22:04:38 +00:00
|
|
|
};
|
|
|
|
|
2023-03-04 19:25:39 +00:00
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [ pkg-config scdoc ]
|
|
|
|
++ lib.optionals waylandSupport [ wayland-scanner ];
|
2019-12-29 21:11:42 +00:00
|
|
|
|
2021-01-15 05:42:41 +00:00
|
|
|
buildInputs = with lib; [
|
2019-05-01 22:04:38 +00:00
|
|
|
cairo
|
|
|
|
fribidi
|
|
|
|
harfbuzz
|
|
|
|
libxkbcommon
|
|
|
|
pango
|
2020-05-11 10:18:43 +00:00
|
|
|
] ++ optional ncursesSupport ncurses
|
|
|
|
++ optionals waylandSupport [ wayland wayland-protocols ]
|
2019-05-01 22:04:38 +00:00
|
|
|
++ optionals x11Support [
|
2021-03-16 18:16:31 +00:00
|
|
|
xorg.libX11 xorg.libXinerama xorg.libXft
|
2019-05-01 22:04:38 +00:00
|
|
|
xorg.libXdmcp xorg.libpthreadstubs xorg.libxcb
|
|
|
|
];
|
|
|
|
|
2023-03-04 19:25:39 +00:00
|
|
|
makeFlags = ["PREFIX=$(out)"];
|
|
|
|
|
|
|
|
buildFlags = ["clients"]
|
|
|
|
++ lib.optional ncursesSupport "curses"
|
|
|
|
++ lib.optional waylandSupport "wayland"
|
|
|
|
++ lib.optional x11Support "x11";
|
|
|
|
|
2020-05-11 10:18:43 +00:00
|
|
|
meta = with lib; {
|
2019-05-01 22:04:38 +00:00
|
|
|
homepage = "https://github.com/Cloudef/bemenu";
|
|
|
|
description = "Dynamic menu library and client program inspired by dmenu";
|
|
|
|
license = licenses.gpl3Plus;
|
2020-05-11 15:39:26 +00:00
|
|
|
maintainers = with maintainers; [ lheckemann ];
|
2019-05-01 22:04:38 +00:00
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|