dialog: 1.3-20220728 -> 1.3-20230209

This commit is contained in:
Anderson Torres 2023-07-09 19:58:04 -03:00
parent d48fc2f2f6
commit bf5f8aa262

View file

@ -3,27 +3,30 @@
, fetchurl , fetchurl
, libtool , libtool
, ncurses , ncurses
, withLibrary ? false
, unicodeSupport ? true
, enableShared ? !stdenv.isDarwin , enableShared ? !stdenv.isDarwin
, unicodeSupport ? true
, withLibrary ? false
}: }:
assert withLibrary -> libtool != null; assert unicodeSupport -> ncurses.unicodeSupport;
assert unicodeSupport -> ncurses != null && ncurses.unicodeSupport;
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "dialog"; pname = "dialog";
version = "1.3-20220728"; version = "1.3-20230209";
src = fetchurl { src = fetchurl {
url = "ftp://ftp.invisible-island.net/dialog/dialog-${finalAttrs.version}.tgz"; url = "https://invisible-island.net/archives/dialog/dialog-${finalAttrs.version}.tgz";
hash = "sha256-VEGJc9VZpGGwBpX6/mjfYvK8c9UGtDaCHXfKPfRUGQs="; hash = "sha256-DCYoIwUmS+IhfzNfN5j0ix3OPPEsWgdr8jHK33em1qg=";
}; };
nativeBuildInputs = lib.optional withLibrary libtool;
buildInputs = [ buildInputs = [
ncurses ncurses
]; ];
strictDeps = true;
configureFlags = [ configureFlags = [
"--disable-rpath-hacks" "--disable-rpath-hacks"
"--${if withLibrary then "with" else "without"}-libtool" "--${if withLibrary then "with" else "without"}-libtool"
@ -35,11 +38,11 @@ stdenv.mkDerivation (finalAttrs: {
"install${lib.optionalString withLibrary "-full"}" "install${lib.optionalString withLibrary "-full"}"
]; ];
meta = with lib; { meta = {
homepage = "https://invisible-island.net/dialog/dialog.html"; homepage = "https://invisible-island.net/dialog/dialog.html";
description = "Display dialog boxes from shell"; description = "Display dialog boxes from shell";
license = licenses.lgpl21Plus; license = lib.licenses.lgpl21Plus;
maintainers = with maintainers; [ AndersonTorres spacefrogg ]; maintainers = with lib.maintainers; [ AndersonTorres spacefrogg ];
inherit (ncurses.meta) platforms; inherit (ncurses.meta) platforms;
}; };
}) })