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