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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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.unicodeSupport && ncurses != null;
stdenv.mkDerivation rec {
pname = "dialog";
2022-01-04 03:35:02 +00:00
version = "1.3-20211214";
src = fetchurl {
2021-02-04 23:39:04 +00:00
url = "ftp://ftp.invisible-island.net/dialog/${pname}-${version}.tgz";
2022-01-04 03:35:02 +00:00
hash = "sha256-zCll4FxqjDcHCza1ZBTqpWDfjYfyzqIXWeKJUOmyeks=";
};
2021-04-25 17:38:31 +00: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 07:02:18 +00: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 ];
2022-01-04 03:35:02 +00:00
inherit (ncurses.meta) platforms;
};
}