bemenu: enable strictDeps

fixes cross

remove useless nulls

add scdoc to build man page
This commit is contained in:
Artturin 2023-03-04 21:25:39 +02:00
parent a08d6979dd
commit f1953063d5

View File

@ -1,14 +1,10 @@
{ stdenv, lib, fetchFromGitHub, fetchpatch, cairo, libxkbcommon { stdenv, lib, fetchFromGitHub, fetchpatch, cairo, libxkbcommon
, pango, fribidi, harfbuzz, pcre, pkg-config , pango, fribidi, harfbuzz, pcre, pkg-config, scdoc
, ncursesSupport ? true, ncurses ? null , ncursesSupport ? true, ncurses
, waylandSupport ? true, wayland ? null, wayland-protocols ? null , waylandSupport ? true, wayland, wayland-protocols, wayland-scanner
, x11Support ? true, xorg ? null , x11Support ? true, xorg
}: }:
assert ncursesSupport -> ncurses != null;
assert waylandSupport -> ! lib.elem null [wayland wayland-protocols];
assert x11Support -> xorg != null;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "bemenu"; pname = "bemenu";
version = "0.6.14"; version = "0.6.14";
@ -20,14 +16,9 @@ stdenv.mkDerivation rec {
sha256 = "sha256-bMnnuT+LNNKphmvVcD1aaNZxasSGOEcAveC4stCieG8="; sha256 = "sha256-bMnnuT+LNNKphmvVcD1aaNZxasSGOEcAveC4stCieG8=";
}; };
nativeBuildInputs = [ pkg-config pcre ]; strictDeps = true;
nativeBuildInputs = [ pkg-config scdoc ]
makeFlags = ["PREFIX=$(out)"]; ++ lib.optionals waylandSupport [ wayland-scanner ];
buildFlags = ["clients"]
++ lib.optional ncursesSupport "curses"
++ lib.optional waylandSupport "wayland"
++ lib.optional x11Support "x11";
buildInputs = with lib; [ buildInputs = with lib; [
cairo cairo
@ -42,6 +33,13 @@ stdenv.mkDerivation rec {
xorg.libXdmcp xorg.libpthreadstubs xorg.libxcb 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; { meta = with lib; {
homepage = "https://github.com/Cloudef/bemenu"; homepage = "https://github.com/Cloudef/bemenu";
description = "Dynamic menu library and client program inspired by dmenu"; description = "Dynamic menu library and client program inspired by dmenu";