2018-07-21 00:44:44 +00:00
|
|
|
{ stdenv, fetchurl, 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;
|
|
|
|
assert unicodeSupport -> ncurses.unicode && ncurses != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "dialog-${version}";
|
2018-12-16 09:42:33 +00:00
|
|
|
version = "1.3-20181107";
|
2015-06-22 12:40:55 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-01-02 17:55:13 +00:00
|
|
|
urls = [
|
|
|
|
"ftp://ftp.invisible-island.net/dialog/${name}.tgz"
|
|
|
|
"https://invisible-mirror.net/archives/dialog/${name}.tgz"
|
|
|
|
];
|
2018-12-16 09:42:33 +00:00
|
|
|
sha256 = "0mv4a31sz5kc1hyc51cvg9dq54vhlz0vbizn7jgkm9fx4y0cmspg";
|
2015-06-22 12:40:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
2018-07-25 21:44:21 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--disable-rpath-hacks"
|
|
|
|
(stdenv.lib.withFeature withLibrary "libtool")
|
|
|
|
"--with-ncurses${stdenv.lib.optionalString unicodeSupport "w"}"
|
|
|
|
"--with-libtool-opts=${stdenv.lib.optionalString enableShared "-shared"}"
|
|
|
|
];
|
2015-06-22 12:40:55 +00:00
|
|
|
|
2018-07-25 21:44:21 +00:00
|
|
|
installTargets = "install${stdenv.lib.optionalString withLibrary "-full"}";
|
2015-06-22 12:40:55 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://invisible-island.net/dialog/dialog.html;
|
|
|
|
description = "Display dialog boxes from shell";
|
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.spacefrogg ];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|