Merge pull request #44423 from obsidiansystems/configureFlags-cleanup

treewide: All configureFlags are lists
This commit is contained in:
John Ericson
2018-08-03 17:49:01 -04:00
committed by GitHub
222 changed files with 743 additions and 600 deletions

View File

@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
sha256 = "15m1w1qad3dj7r8n5ng1qqcaiyx1gyd6hnc3p2apgjllccdp77qg";
};
configureFlags = stdenv.lib.optionalString docSupport "--enable-doc";
configureFlags = stdenv.lib.optionals docSupport "--enable-doc";
buildInputs = [ yacc flex libusb libelf libftdi1 readline ]
++ stdenv.lib.optionals docSupport [ texLive texinfo texi2html ];

View File

@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
sha256 = "1byk29rcpyygrnr03h5j3y8j0aqxldd9dr5ihi9q982sy28x12a8";
};
configureFlags = "--with-ncurses=${ncurses.dev}";
configureFlags = [ "--with-ncurses=${ncurses.dev}" ];
buildInputs = [ ncurses ];
nativeBuildInputs = stdenv.lib.optional emacsSupport emacs;

View File

@@ -7,7 +7,7 @@ stdenv.mkDerivation rec {
sha256 = "0p5nx387857w3v2jbgvps2p6mlm0chajcdw5sfrddcglsxkwvmis";
};
buildInputs = [motif ncurses libX11 libXt];
configureFlags = "--with-x";
configureFlags = [ "--with-x" ];
patches = [ ./gcc44.patch ];

View File

@@ -1,12 +1,9 @@
{ stdenv, fetchurl, ncurses
, withLibrary ? false, libtool
, unicodeSupport ? true
, enableShared ? !stdenv.isDarwin
}:
let optStr = stdenv.lib.optionalString;
buildShared = !stdenv.isDarwin;
in
assert withLibrary -> libtool != null;
assert unicodeSupport -> ncurses.unicode && ncurses != null;
@@ -24,14 +21,14 @@ stdenv.mkDerivation rec {
buildInputs = [ ncurses ];
configureFlags = ''
--disable-rpath-hacks
${optStr withLibrary "--with-libtool"}
--with-libtool-opts=${optStr buildShared "-shared"}
--with-ncurses${optStr unicodeSupport "w"}
'';
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${optStr withLibrary "-full"}";
installTargets = "install${stdenv.lib.optionalString withLibrary "-full"}";
meta = {
homepage = http://invisible-island.net/dialog/dialog.html;

View File

@@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
#
# I wrote this testing for the nanonote.
buildPhase = if stdenv.hostPlatform == stdenv.buildPlatform then null else ''
buildPhase = stdenv.lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
pushd libebl
make
popd
@@ -50,7 +50,7 @@ stdenv.mkDerivation rec {
popd
'';
installPhase = if stdenv.hostPlatform == stdenv.buildPlatform then null else ''
installPhase = stdenv.lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
pushd libelf
make install
popd

View File

@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
doCheck = false;
configureFlags = "--with-syscmd-shell=${stdenv.shell}";
configureFlags = [ "--with-syscmd-shell=${stdenv.shell}" ];
# Upstream is aware of it; it may be in the next release.
patches = [ ./s_isdir.patch ] ++ stdenv.lib.optional hostPlatform.isDarwin stdenv.secure-format-patch;

View File

@@ -10,8 +10,9 @@ stdenv.mkDerivation rec {
buildInputs = [ boost libtool groff ghostscript libgcrypt ];
configureFlags = stdenv.lib.optionalString
(libgcrypt == null) "--without-gcrypt";
configureFlags = [
(stdenv.lib.optional (libgcrypt == null) "--without-gcrypt")
];
meta = with stdenv.lib; {
description = "Collection of powerful tools for manipulating EPROM load files";

View File

@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoconf automake libtool bison ];
buildInputs = [ pcre ];
configureFlags = "--without-tcl";
configureFlags = [ "--without-tcl" ];
postPatch = ''
# Disable ccache documentation as it need yodl

View File

@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoconf automake libtool bison ];
buildInputs = [ pcre ];
configureFlags = "--without-tcl";
configureFlags = [ "--without-tcl" ];
postPatch = ''
# Disable ccache documentation as it need yodl

View File

@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
# 'make check' uses boost and tcl
buildInputs = stdenv.lib.optionals doCheck [ boost tcl ];
configureFlags = "--disable-ccache";
configureFlags = [ "--disable-ccache" ];
meta = {
description = "Interface compiler that connects C/C++ code to higher-level languages";