2021-02-04 23:39:04 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
2022-11-14 02:23:37 +00:00
|
|
|
, libtool
|
2021-01-02 23:06:06 +00:00
|
|
|
, ncurses
|
2023-10-10 02:03:10 +00:00
|
|
|
, enableShared ? !stdenv.isDarwin && !stdenv.hostPlatform.isStatic
|
2023-07-09 22:58:04 +00:00
|
|
|
, unicodeSupport ? true
|
2023-10-10 02:03:10 +00:00
|
|
|
, withLibrary ? true
|
2015-06-22 12:40:55 +00:00
|
|
|
}:
|
|
|
|
|
2023-07-09 22:58:04 +00:00
|
|
|
assert unicodeSupport -> ncurses.unicodeSupport;
|
2022-11-14 02:23:37 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "dialog";
|
2023-10-10 02:03:10 +00:00
|
|
|
version = "1.3-20231002";
|
2015-06-22 12:40:55 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-07-09 22:58:04 +00:00
|
|
|
url = "https://invisible-island.net/archives/dialog/dialog-${finalAttrs.version}.tgz";
|
2023-10-10 02:03:10 +00:00
|
|
|
hash = "sha256-MVZAqwcZIl1cvKsTBYXAXweR/PBzBypf6UeZaaorgzs=";
|
2015-06-22 12:40:55 +00:00
|
|
|
};
|
|
|
|
|
2023-10-10 02:03:10 +00:00
|
|
|
nativeBuildInputs = lib.optionals withLibrary [
|
|
|
|
libtool
|
|
|
|
];
|
2023-07-09 22:58:04 +00:00
|
|
|
|
2021-04-25 17:38:31 +00:00
|
|
|
buildInputs = [
|
|
|
|
ncurses
|
|
|
|
];
|
2015-06-22 12:40:55 +00:00
|
|
|
|
2023-07-09 22:58:04 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2018-07-25 21:44:21 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--disable-rpath-hacks"
|
2022-11-14 02:23:37 +00:00
|
|
|
"--${if withLibrary then "with" else "without"}-libtool"
|
2021-01-23 12:26:19 +00:00
|
|
|
"--with-libtool-opts=${lib.optionalString enableShared "-shared"}"
|
2022-11-14 02:23:37 +00:00
|
|
|
"--with-ncurses${lib.optionalString unicodeSupport "w"}"
|
2018-07-25 21:44:21 +00:00
|
|
|
];
|
2015-06-22 12:40:55 +00:00
|
|
|
|
2021-08-01 07:02:18 +00:00
|
|
|
installTargets = [
|
|
|
|
"install${lib.optionalString withLibrary "-full"}"
|
|
|
|
];
|
2015-06-22 12:40:55 +00:00
|
|
|
|
2023-07-09 22:58:04 +00:00
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://invisible-island.net/dialog/dialog.html";
|
2015-06-22 12:40:55 +00:00
|
|
|
description = "Display dialog boxes from shell";
|
2023-07-09 22:58:04 +00:00
|
|
|
license = lib.licenses.lgpl21Plus;
|
2023-10-10 02:03:10 +00:00
|
|
|
mainProgram = "dialog";
|
2023-07-09 22:58:04 +00:00
|
|
|
maintainers = with lib.maintainers; [ AndersonTorres spacefrogg ];
|
2022-01-04 03:35:02 +00:00
|
|
|
inherit (ncurses.meta) platforms;
|
2015-06-22 12:40:55 +00:00
|
|
|
};
|
2022-11-14 02:23:37 +00:00
|
|
|
})
|