nixpkgs/pkgs/development/tools/misc/dialog/default.nix
R. RyanTM 8e3415eb86 dialog: 1.3-20171209 -> 1.3-20180621 (#42512)
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/dialog/versions.

These checks were done:

- built on NixOS
- /nix/store/m0hxh556s4yrr5m1sdbj1hr4kghms99x-dialog-1.3-20180621/bin/dialog passed the binary check.
- 1 of 1 passed binary check by having a zero exit code.
- 1 of 1 passed binary check by having the new version present in output.
- found 1.3-20180621 with grep in /nix/store/m0hxh556s4yrr5m1sdbj1hr4kghms99x-dialog-1.3-20180621
- directory tree listing: https://gist.github.com/a0a4bc59b6cd5033a62a99d509b6903e
- du listing: https://gist.github.com/fd4c8d60fa9ed0c6f0fb56fdaf3f8b2b
2018-06-29 22:58:58 +02:00

45 lines
1.2 KiB
Nix

{ stdenv, fetchurl, ncurses, gettext
, withLibrary ? false, libtool
, unicodeSupport ? true
}:
let optional = stdenv.lib.optional;
optStr = stdenv.lib.optionalString;
buildShared = !stdenv.isDarwin;
in
assert withLibrary -> libtool != null;
assert unicodeSupport -> ncurses.unicode && ncurses != null;
stdenv.mkDerivation rec {
name = "dialog-${version}";
version = "1.3-20180621";
src = fetchurl {
urls = [
"ftp://ftp.invisible-island.net/dialog/${name}.tgz"
"https://invisible-mirror.net/archives/dialog/${name}.tgz"
];
sha256 = "0yjqczlf64yppgvk4i6s0jm06mdr0mb5m6sj39nf891dnbi5jj2a";
};
buildInputs = [ ncurses ];
configureFlags = ''
--disable-rpath-hacks
${optStr withLibrary "--with-libtool"}
--with-libtool-opts=${optStr buildShared "-shared"}
--with-ncurses${optStr unicodeSupport "w"}
'';
installTargets = "install${optStr withLibrary "-full"}";
meta = {
homepage = http://invisible-island.net/dialog/dialog.html;
description = "Display dialog boxes from shell";
license = stdenv.lib.licenses.lgpl21Plus;
maintainers = [ stdenv.lib.maintainers.spacefrogg ];
platforms = stdenv.lib.platforms.all;
};
}