2021-01-15 22:18:51 +00:00
|
|
|
{ stdenv, fetchurl
|
|
|
|
, ncurses
|
2020-04-24 23:36:52 +00:00
|
|
|
, withLibrary ? false, libtool
|
|
|
|
, unicodeSupport ? true
|
|
|
|
, enableShared ? !stdenv.isDarwin
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert withLibrary -> libtool != null;
|
|
|
|
assert unicodeSupport -> ncurses.unicode && ncurses != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dialog";
|
2021-01-15 22:18:51 +00:00
|
|
|
version = "1.3-20201126";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
urls = [
|
|
|
|
"ftp://ftp.invisible-island.net/dialog/${pname}-${version}.tgz"
|
|
|
|
"https://invisible-mirror.net/archives/dialog/${pname}-${version}.tgz"
|
|
|
|
];
|
2021-01-15 22:18:51 +00:00
|
|
|
sha256 = "sha256-ySM6bI6jOlniN45RRq4r0TtRl0TP22R690IK2sWtOGY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--disable-rpath-hacks"
|
|
|
|
(stdenv.lib.withFeature withLibrary "libtool")
|
|
|
|
"--with-ncurses${stdenv.lib.optionalString unicodeSupport "w"}"
|
|
|
|
"--with-libtool-opts=${stdenv.lib.optionalString enableShared "-shared"}"
|
|
|
|
];
|
|
|
|
|
|
|
|
installTargets = [ "install${stdenv.lib.optionalString withLibrary "-full"}" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://invisible-island.net/dialog/dialog.html";
|
|
|
|
description = "Display dialog boxes from shell";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres spacefrogg ];
|
|
|
|
platforms = ncurses.meta.platforms;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|