nixpkgs/pkgs/tools/misc/dialog/default.nix

43 lines
1.1 KiB
Nix
Raw Normal View History

2021-02-04 23:39:04 +00:00
{ lib
, stdenv
, fetchurl
2021-01-02 23:06:06 +00:00
, ncurses
, withLibrary ? false, libtool
, unicodeSupport ? true
, enableShared ? !stdenv.isDarwin
}:
assert withLibrary -> libtool != null;
assert unicodeSupport -> ncurses.unicode && ncurses != null;
stdenv.mkDerivation rec {
pname = "dialog";
2021-04-25 18:38:31 +01:00
version = "1.3-20210324";
src = fetchurl {
2021-02-04 23:39:04 +00:00
url = "ftp://ftp.invisible-island.net/dialog/${pname}-${version}.tgz";
2021-04-25 18:38:31 +01:00
hash = "sha256-AcLR4umvmwg+ogDKrQhP39pVF41bv05Cyf/0STUVFlM=";
};
2021-04-25 18:38:31 +01:00
buildInputs = [
ncurses
];
configureFlags = [
"--disable-rpath-hacks"
(lib.withFeature withLibrary "libtool")
"--with-ncurses${lib.optionalString unicodeSupport "w"}"
"--with-libtool-opts=${lib.optionalString enableShared "-shared"}"
];
installTargets = [ "install${lib.optionalString withLibrary "-full"}" ];
meta = with lib; {
homepage = "https://invisible-island.net/dialog/dialog.html";
description = "Display dialog boxes from shell";
2021-01-02 23:06:06 +00:00
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ AndersonTorres spacefrogg ];
platforms = ncurses.meta.platforms;
};
}