2021-02-04 23:39:04 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
2021-01-02 23:06:06 +00:00
|
|
|
, ncurses
|
2015-06-22 12:40:55 +00:00
|
|
|
, withLibrary ? false, libtool
|
|
|
|
, unicodeSupport ? true
|
2018-07-25 21:44:21 +00:00
|
|
|
, enableShared ? !stdenv.isDarwin
|
2015-06-22 12:40:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
assert withLibrary -> libtool != null;
|
2022-01-07 00:54:08 +00:00
|
|
|
assert unicodeSupport -> ncurses.unicodeSupport && ncurses != null;
|
2015-06-22 12:40:55 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "dialog";
|
2022-01-04 03:35:02 +00:00
|
|
|
version = "1.3-20211214";
|
2015-06-22 12:40:55 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-02-04 23:39:04 +00:00
|
|
|
url = "ftp://ftp.invisible-island.net/dialog/${pname}-${version}.tgz";
|
2022-01-04 03:35:02 +00:00
|
|
|
hash = "sha256-zCll4FxqjDcHCza1ZBTqpWDfjYfyzqIXWeKJUOmyeks=";
|
2015-06-22 12:40:55 +00:00
|
|
|
};
|
|
|
|
|
2021-04-25 17:38:31 +00:00
|
|
|
buildInputs = [
|
|
|
|
ncurses
|
|
|
|
];
|
2015-06-22 12:40:55 +00:00
|
|
|
|
2018-07-25 21:44:21 +00: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 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
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
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";
|
2021-01-02 23:06:06 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres spacefrogg ];
|
2022-01-04 03:35:02 +00:00
|
|
|
inherit (ncurses.meta) platforms;
|
2015-06-22 12:40:55 +00:00
|
|
|
};
|
|
|
|
}
|