nixpkgs/pkgs/development/tools/misc/dialog/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

41 lines
1.2 KiB
Nix

{ stdenv, fetchurl, ncurses
, withLibrary ? false, libtool
, unicodeSupport ? true
, enableShared ? !stdenv.isDarwin
}:
assert withLibrary -> libtool != null;
assert unicodeSupport -> ncurses.unicode && ncurses != null;
stdenv.mkDerivation rec {
pname = "dialog";
version = "1.3-20190211";
src = fetchurl {
urls = [
"ftp://ftp.invisible-island.net/dialog/${pname}-${version}.tgz"
"https://invisible-mirror.net/archives/dialog/${pname}-${version}.tgz"
];
sha256 = "1lx0bvradzx1zl7znlrsnyljcs596r7wamkhyq37ikbxsy4y5h29";
};
buildInputs = [ ncurses ];
configureFlags = [
"--disable-rpath-hacks"
(stdenv.lib.withFeature withLibrary "libtool")
"--with-ncurses${stdenv.lib.optionalString unicodeSupport "w"}"
"--with-libtool-opts=${stdenv.lib.optionalString enableShared "-shared"}"
];
installTargets = "install${stdenv.lib.optionalString withLibrary "-full"}";
meta = {
homepage = https://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;
};
}