2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, fetchurl, 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";
|
2019-03-02 02:59:35 +01:00
|
|
|
version = "1.3-20190211";
|
2015-06-22 14:40:55 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-01-02 18:55:13 +01:00
|
|
|
urls = [
|
2019-08-15 14:41:18 +02:00
|
|
|
"ftp://ftp.invisible-island.net/dialog/${pname}-${version}.tgz"
|
|
|
|
"https://invisible-mirror.net/archives/dialog/${pname}-${version}.tgz"
|
2018-01-02 18:55:13 +01:00
|
|
|
];
|
2019-03-02 02:59:35 +01:00
|
|
|
sha256 = "1lx0bvradzx1zl7znlrsnyljcs596r7wamkhyq37ikbxsy4y5h29";
|
2015-06-22 14:40:55 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
2018-07-25 23:44:21 +02: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 14:40:55 +02:00
|
|
|
|
2019-11-04 12:23:53 +01:00
|
|
|
installTargets = [ "install${stdenv.lib.optionalString withLibrary "-full"}" ];
|
2015-06-22 14:40:55 +02:00
|
|
|
|
|
|
|
meta = {
|
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";
|
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.spacefrogg ];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|