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