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

41 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-03-17 00:56:58 +00:00
version = "1.3-20210306";
src = fetchurl {
2021-02-04 23:39:04 +00:00
url = "ftp://ftp.invisible-island.net/dialog/${pname}-${version}.tgz";
2021-03-17 00:56:58 +00:00
hash = "sha256-pz57YHtjX2PAICuzMTEG5wD5H+Sp9NJspwA/brK5yw8=";
};
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;
};
}