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