6 , enableShared ? !stdenv.isDarwin && !stdenv.hostPlatform.isStatic
7 , unicodeSupport ? true
11 assert unicodeSupport -> ncurses.unicodeSupport;
12 stdenv.mkDerivation (finalAttrs: {
14 version = "1.3-20231002";
17 url = "https://invisible-island.net/archives/dialog/dialog-${finalAttrs.version}.tgz";
18 hash = "sha256-MVZAqwcZIl1cvKsTBYXAXweR/PBzBypf6UeZaaorgzs=";
21 nativeBuildInputs = lib.optionals withLibrary [
32 "--disable-rpath-hacks"
33 "--${if withLibrary then "with" else "without"}-libtool"
34 "--with-libtool-opts=${lib.optionalString enableShared "-shared"}"
35 "--with-ncurses${lib.optionalString unicodeSupport "w"}"
39 "install${lib.optionalString withLibrary "-full"}"
43 homepage = "https://invisible-island.net/dialog/dialog.html";
44 description = "Display dialog boxes from shell";
45 license = lib.licenses.lgpl21Plus;
46 mainProgram = "dialog";
47 maintainers = with lib.maintainers; [ AndersonTorres spacefrogg ];
48 inherit (ncurses.meta) platforms;