2021-02-04 15:39:04 -08:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
2021-01-02 15:06:06 -08:00
|
|
|
, ncurses
|
2015-06-22 05:40:55 -07:00
|
|
|
, withLibrary ? false, libtool
|
|
|
|
, unicodeSupport ? true
|
2018-07-25 14:44:21 -07:00
|
|
|
, enableShared ? !stdenv.isDarwin
|
2015-06-22 05:40:55 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
assert withLibrary -> libtool != null;
|
|
|
|
assert unicodeSupport -> ncurses.unicode && ncurses != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "dialog";
|
2021-02-04 15:39:04 -08:00
|
|
|
version = "1.3-20210117";
|
2015-06-22 05:40:55 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-02-04 15:39:04 -08:00
|
|
|
url = "ftp://ftp.invisible-island.net/dialog/${pname}-${version}.tgz";
|
|
|
|
sha256 = "PB7Qj0S89vFZ8qpv3nZduU6Jl7Pu+0nYtMhmkWk8Q+E=";
|
2015-06-22 05:40:55 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
2018-07-25 14:44:21 -07:00
|
|
|
configureFlags = [
|
|
|
|
"--disable-rpath-hacks"
|
2021-01-23 04:26:19 -08:00
|
|
|
(lib.withFeature withLibrary "libtool")
|
|
|
|
"--with-ncurses${lib.optionalString unicodeSupport "w"}"
|
|
|
|
"--with-libtool-opts=${lib.optionalString enableShared "-shared"}"
|
2018-07-25 14:44:21 -07:00
|
|
|
];
|
2015-06-22 05:40:55 -07:00
|
|
|
|
2021-01-23 04:26:19 -08:00
|
|
|
installTargets = [ "install${lib.optionalString withLibrary "-full"}" ];
|
2015-06-22 05:40:55 -07:00
|
|
|
|
2021-01-23 04:26:19 -08:00
|
|
|
meta = with lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://invisible-island.net/dialog/dialog.html";
|
2015-06-22 05:40:55 -07:00
|
|
|
description = "Display dialog boxes from shell";
|
2021-01-02 15:06:06 -08:00
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres spacefrogg ];
|
|
|
|
platforms = ncurses.meta.platforms;
|
2015-06-22 05:40:55 -07:00
|
|
|
};
|
|
|
|
}
|