mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 19:15:39 +00:00
45 lines
1.2 KiB
Nix
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-20171209";
|
|
|
|
src = fetchurl {
|
|
urls = [
|
|
"ftp://ftp.invisible-island.net/dialog/${name}.tgz"
|
|
"https://invisible-mirror.net/archives/dialog/${name}.tgz"
|
|
];
|
|
sha256 = "1rk72as52f5br3wcr74d00wib41w65g8wvi36mfgybly251984r0";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|