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

45 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-08-01 08:02:18 +01:00
version = "1.3-20210621";
src = fetchurl {
2021-02-04 23:39:04 +00:00
url = "ftp://ftp.invisible-island.net/dialog/${pname}-${version}.tgz";
2021-08-01 08:02:18 +01:00
hash = "sha256-w68izPzZuso4QGIQjdk1ToaZCSnuJwwjnu9pUYxdp8g=";
};
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"}"
];
2021-08-01 08:02:18 +01:00
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;
};
}