mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
341202cd83
https://github.com/Cloudef/bemenu/releases/tag/0.6.16 Also adds mainProgram attribute and changes from rec to finalAttrs to allow proper overriding
52 lines
1.4 KiB
Nix
52 lines
1.4 KiB
Nix
{ stdenv, lib, fetchFromGitHub, fetchpatch, cairo, libxkbcommon
|
|
, pango, fribidi, harfbuzz, pcre, pkg-config, scdoc
|
|
, ncursesSupport ? true, ncurses
|
|
, waylandSupport ? true, wayland, wayland-protocols, wayland-scanner
|
|
, x11Support ? true, xorg
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "bemenu";
|
|
version = "0.6.16";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Cloudef";
|
|
repo = finalAttrs.pname;
|
|
rev = finalAttrs.version;
|
|
sha256 = "sha256-K9a9BUodpKwvEOhnF2/TGo5zLm7F9RzqSCcWzuhKcWA=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
nativeBuildInputs = [ pkg-config scdoc ]
|
|
++ lib.optionals waylandSupport [ wayland-scanner ];
|
|
|
|
buildInputs = with lib; [
|
|
cairo
|
|
fribidi
|
|
harfbuzz
|
|
libxkbcommon
|
|
pango
|
|
] ++ optional ncursesSupport ncurses
|
|
++ optionals waylandSupport [ wayland wayland-protocols ]
|
|
++ optionals x11Support [
|
|
xorg.libX11 xorg.libXinerama xorg.libXft
|
|
xorg.libXdmcp xorg.libpthreadstubs xorg.libxcb
|
|
];
|
|
|
|
makeFlags = ["PREFIX=$(out)"];
|
|
|
|
buildFlags = ["clients"]
|
|
++ lib.optional ncursesSupport "curses"
|
|
++ lib.optional waylandSupport "wayland"
|
|
++ lib.optional x11Support "x11";
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/Cloudef/bemenu";
|
|
description = "Dynamic menu library and client program inspired by dmenu";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ lheckemann ];
|
|
mainProgram = "bemenu";
|
|
platforms = with platforms; linux;
|
|
};
|
|
})
|