a5adf1ddd8
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
41 lines
1.2 KiB
Nix
41 lines
1.2 KiB
Nix
{ stdenv, fetchurl
|
|
, ncurses
|
|
, withLibrary ? false, libtool
|
|
, unicodeSupport ? true
|
|
, enableShared ? !stdenv.isDarwin
|
|
}:
|
|
|
|
assert withLibrary -> libtool != null;
|
|
assert unicodeSupport -> ncurses.unicode && ncurses != null;
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "dialog";
|
|
version = "1.3-20201126";
|
|
|
|
src = fetchurl {
|
|
urls = [
|
|
"ftp://ftp.invisible-island.net/dialog/${pname}-${version}.tgz"
|
|
"https://invisible-mirror.net/archives/dialog/${pname}-${version}.tgz"
|
|
];
|
|
sha256 = "sha256-ySM6bI6jOlniN45RRq4r0TtRl0TP22R690IK2sWtOGY=";
|
|
};
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
configureFlags = [
|
|
"--disable-rpath-hacks"
|
|
(stdenv.lib.withFeature withLibrary "libtool")
|
|
"--with-ncurses${stdenv.lib.optionalString unicodeSupport "w"}"
|
|
"--with-libtool-opts=${stdenv.lib.optionalString enableShared "-shared"}"
|
|
];
|
|
|
|
installTargets = [ "install${stdenv.lib.optionalString withLibrary "-full"}" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://invisible-island.net/dialog/dialog.html";
|
|
description = "Display dialog boxes from shell";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = with maintainers; [ AndersonTorres spacefrogg ];
|
|
platforms = ncurses.meta.platforms;
|
|
};
|
|
}
|