2024-06-05 15:53:02 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, cairo, libxkbcommon
|
2024-07-27 06:49:29 +00:00
|
|
|
, pango, fribidi, harfbuzz, pkg-config, scdoc
|
2023-03-08 16:32:21 +00:00
|
|
|
, ncursesSupport ? true, ncurses
|
|
|
|
, waylandSupport ? true, wayland, wayland-protocols, wayland-scanner
|
|
|
|
, x11Support ? true, xorg
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "bemenu";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.6.23";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Cloudef";
|
2024-07-27 06:49:29 +00:00
|
|
|
repo = "bemenu";
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = finalAttrs.version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-0vpqJ2jydTt6aVni0ma0g+80PFz+C4xJ5M77sMODkSg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-03-08 16:32:21 +00:00
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [ pkg-config scdoc ]
|
|
|
|
++ lib.optionals waylandSupport [ wayland-scanner ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
buildInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
cairo
|
|
|
|
fribidi
|
|
|
|
harfbuzz
|
|
|
|
libxkbcommon
|
|
|
|
pango
|
2024-09-19 14:19:46 +00:00
|
|
|
] ++ lib.optional ncursesSupport ncurses
|
|
|
|
++ lib.optionals waylandSupport [ wayland wayland-protocols ]
|
|
|
|
++ lib.optionals x11Support [
|
2021-03-19 17:17:44 +00:00
|
|
|
xorg.libX11 xorg.libXinerama xorg.libXft
|
2020-04-24 23:36:52 +00:00
|
|
|
xorg.libXdmcp xorg.libpthreadstubs xorg.libxcb
|
|
|
|
];
|
|
|
|
|
2023-03-08 16:32:21 +00:00
|
|
|
makeFlags = ["PREFIX=$(out)"];
|
|
|
|
|
|
|
|
buildFlags = ["clients"]
|
|
|
|
++ lib.optional ncursesSupport "curses"
|
|
|
|
++ lib.optional waylandSupport "wayland"
|
|
|
|
++ lib.optional x11Support "x11";
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/Cloudef/bemenu";
|
|
|
|
description = "Dynamic menu library and client program inspired by dmenu";
|
|
|
|
license = licenses.gpl3Plus;
|
2024-07-27 06:49:29 +00:00
|
|
|
maintainers = with maintainers; [ crertel ];
|
2023-10-09 19:29:22 +00:00
|
|
|
mainProgram = "bemenu";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
})
|