2015-06-22 13:40:55 +01:00
|
|
|
{ stdenv, fetchurl, ncurses, gettext
|
|
|
|
, withLibrary ? false, libtool
|
|
|
|
, unicodeSupport ? true
|
|
|
|
}:
|
|
|
|
|
2018-07-20 18:56:59 +01:00
|
|
|
let optStr = stdenv.lib.optionalString;
|
2015-06-22 13:40:55 +01:00
|
|
|
buildShared = !stdenv.isDarwin;
|
|
|
|
in
|
|
|
|
|
|
|
|
assert withLibrary -> libtool != null;
|
|
|
|
assert unicodeSupport -> ncurses.unicode && ncurses != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "dialog-${version}";
|
2018-06-29 21:58:58 +01:00
|
|
|
version = "1.3-20180621";
|
2015-06-22 13:40:55 +01: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-06-29 21:58:58 +01:00
|
|
|
sha256 = "0yjqczlf64yppgvk4i6s0jm06mdr0mb5m6sj39nf891dnbi5jj2a";
|
2015-06-22 13:40:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
|
|
|
configureFlags = ''
|
|
|
|
--disable-rpath-hacks
|
|
|
|
${optStr withLibrary "--with-libtool"}
|
|
|
|
--with-libtool-opts=${optStr buildShared "-shared"}
|
|
|
|
--with-ncurses${optStr unicodeSupport "w"}
|
|
|
|
'';
|
|
|
|
|
|
|
|
installTargets = "install${optStr withLibrary "-full"}";
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|