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