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-20 19:56:59 +02:00
|
|
|
let optStr = stdenv.lib.optionalString;
|
2015-06-22 14:40:55 +02:00
|
|
|
buildShared = !stdenv.isDarwin;
|
|
|
|
in
|
|
|
|
|
|
|
|
assert withLibrary -> libtool != null;
|
|
|
|
assert unicodeSupport -> ncurses.unicode && ncurses != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "dialog-${version}";
|
2018-06-29 22:58:58 +02:00
|
|
|
version = "1.3-20180621";
|
2015-06-22 14:40:55 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-01-02 18:55:13 +01:00
|
|
|
urls = [
|
|
|
|
"ftp://ftp.invisible-island.net/dialog/${name}.tgz"
|
|
|
|
"https://invisible-mirror.net/archives/dialog/${name}.tgz"
|
|
|
|
];
|
2018-06-29 22:58:58 +02:00
|
|
|
sha256 = "0yjqczlf64yppgvk4i6s0jm06mdr0mb5m6sj39nf891dnbi5jj2a";
|
2015-06-22 14:40:55 +02: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;
|
|
|
|
};
|
|
|
|
}
|