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

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

49 lines
1.1 KiB
Nix
Raw Normal View History

2021-02-04 23:39:04 +00:00
{ lib
, stdenv
, fetchurl
2022-11-14 02:23:37 +00:00
, libtool
2021-01-02 23:06:06 +00:00
, ncurses
, enableShared ? !stdenv.isDarwin
2023-07-09 22:58:04 +00:00
, unicodeSupport ? true
, withLibrary ? false
}:
2023-07-09 22:58:04 +00:00
assert unicodeSupport -> ncurses.unicodeSupport;
2022-11-14 02:23:37 +00:00
stdenv.mkDerivation (finalAttrs: {
pname = "dialog";
2023-07-09 22:58:04 +00:00
version = "1.3-20230209";
src = fetchurl {
2023-07-09 22:58:04 +00:00
url = "https://invisible-island.net/archives/dialog/dialog-${finalAttrs.version}.tgz";
hash = "sha256-DCYoIwUmS+IhfzNfN5j0ix3OPPEsWgdr8jHK33em1qg=";
};
2023-07-09 22:58:04 +00:00
nativeBuildInputs = lib.optional withLibrary libtool;
2021-04-25 17:38:31 +00:00
buildInputs = [
ncurses
];
2023-07-09 22:58:04 +00:00
strictDeps = true;
configureFlags = [
"--disable-rpath-hacks"
2022-11-14 02:23:37 +00:00
"--${if withLibrary then "with" else "without"}-libtool"
"--with-libtool-opts=${lib.optionalString enableShared "-shared"}"
2022-11-14 02:23:37 +00:00
"--with-ncurses${lib.optionalString unicodeSupport "w"}"
];
2021-08-01 07:02:18 +00:00
installTargets = [
"install${lib.optionalString withLibrary "-full"}"
];
2023-07-09 22:58:04 +00:00
meta = {
homepage = "https://invisible-island.net/dialog/dialog.html";
description = "Display dialog boxes from shell";
2023-07-09 22:58:04 +00:00
license = lib.licenses.lgpl21Plus;
maintainers = with lib.maintainers; [ AndersonTorres spacefrogg ];
2022-01-04 03:35:02 +00:00
inherit (ncurses.meta) platforms;
};
2022-11-14 02:23:37 +00:00
})