nixpkgs/pkgs/by-name/di/dialog/package.nix

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

51 lines
1.2 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
2023-10-10 02:03:10 +00:00
, enableShared ? !stdenv.isDarwin && !stdenv.hostPlatform.isStatic
2023-07-09 22:58:04 +00:00
, unicodeSupport ? true
2023-10-10 02:03:10 +00:00
, withLibrary ? true
}:
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-10-10 02:03:10 +00:00
version = "1.3-20231002";
src = fetchurl {
2023-07-09 22:58:04 +00:00
url = "https://invisible-island.net/archives/dialog/dialog-${finalAttrs.version}.tgz";
2023-10-10 02:03:10 +00:00
hash = "sha256-MVZAqwcZIl1cvKsTBYXAXweR/PBzBypf6UeZaaorgzs=";
};
2023-10-10 02:03:10 +00:00
nativeBuildInputs = lib.optionals withLibrary [
libtool
];
2023-07-09 22:58:04 +00:00
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;
2023-10-10 02:03:10 +00:00
mainProgram = "dialog";
2023-07-09 22:58:04 +00:00
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
})