treewide: Make configureFlags lists

This commit is contained in:
John Ericson 2018-07-25 17:44:21 -04:00
parent 85a9913edd
commit db965063b3
164 changed files with 380 additions and 263 deletions

View File

@ -64,7 +64,7 @@ stdenv.mkDerivation {
sha256 = "1ian3kwh2vg6hr3ymrv48s04gijs539vzrq62xr76bxbhbwnz2np";
};
inherit noSysDirs;
configureFlags = "--target=arm-linux";
configureFlags = [ "--target=arm-linux" ];
}
---

View File

@ -13,7 +13,7 @@ stdenv.mkDerivation {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ intltool gtk2 alsaLib libglade ];
configureFlags = "--disable-jack";
configureFlags = [ "--disable-jack" ];
meta = {
description = "Not a Guitar-Only tuner";

View File

@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
pkgconfig libpulseaudio makeWrapper
];
configureFlags = "--with-default-ladspa-path=${ladspaPlugins}/lib/ladspa";
configureFlags = [ "--with-default-ladspa-path=${ladspaPlugins}/lib/ladspa" ];
postInstall = ''
wrapProgram $out/bin/mhwaveedit \

View File

@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
export ac_cv_prog_ac_ct_WINDRES=
'';
configureFlags = "--enable-dependency-tracking";
configureFlags = [ "--enable-dependency-tracking" ];
buildInputs = [ alsaLib python SDL ];

View File

@ -10,9 +10,11 @@ stdenv.mkDerivation rec {
buildInputs = [ flac lame zlib libjpeg libvorbis libtheora libxml2 lzo
libdvdread pkgconfig x264 libmpeg2 xvidcore ];
configureFlags = "--disable-ffmpeg --disable-libavcodec --disable-libavformat
--enable-lzo --enable-ogg --enable-vorbis --enable-theora --enable-libxml2
--enable-x264 --enable-libmpeg2 --enable-xvid";
configureFlags = [
"--disable-ffmpeg" "--disable-libavcodec" "--disable-libavformat"
"--enable-lzo" "--enable-ogg" "--enable-vorbis" "--enable-theora" "--enable-libxml2"
"--enable-x264" "--enable-libmpeg2" "--enable-xvid"
];
enableParallelBuilding = true;

View File

@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
done
'';
configureFlags = "--ioctl=termios";
configureFlags = [ "--ioctl=termios" ];
meta = {
homepage = http://elvis.vi-editor.org/;

View File

@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
patches = [ ./install-infodir.patch ];
buildInputs = [emacs texinfo ctags];
configureFlags = "--with-package-dir=$$out/share/emacs/site-lisp";
configureFlags = [ "--with-package-dir=$$out/share/emacs/site-lisp" ];
preInstall = "mkdir -p $out/info";
installTargets = "install-pkg texinfo";
postInstall = ''

View File

@ -9,7 +9,7 @@ stdenv.mkDerivation {
};
buildInputs = [emacs];
configureFlags = "--with-lispdir=$$out/share/emacs/site-lisp";
configureFlags = [ "--with-lispdir=$$out/share/emacs/site-lisp" ];
meta = {
description = "Emacs mode for the programming language Maude";

View File

@ -12,7 +12,7 @@ stdenv.mkDerivation {
nativeBuildInputs = [ automake pkgconfig gettext perl zip ];
buildInputs = [ wxGTK gtk2 libxml2 freetype pango ];
configureFlags = "--disable-svnversion";
configureFlags = [ "--disable-svnversion" ];
patches = map fetchurl (import ./debian-patches.nix);

View File

@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
xorg.libX11 xorg.libXext xorg.libXinerama jansson
];
configureScript = "./autogen.sh";
configureFlags = "--enable-scrypt --enable-opencl";
configureFlags = [ "--enable-scrypt" "--enable-opencl" ];
NIX_LDFLAGS = "-lgcc_s -lX11 -lXext -lXinerama";
preConfigure = ''

View File

@ -13,7 +13,7 @@ stdenv.mkDerivation {
buildInputs = [ openssl ];
configureFlags = "--with-ssl=${openssl.dev}";
configureFlags = [ "--with-ssl=${openssl.dev}" ];
meta = {
homepage = http://www.fetchmail.info/;

View File

@ -46,7 +46,7 @@ stdenv.mkDerivation rec {
substituteInPlace configure --replace "/usr/bin/file" "${file}/bin/file"
'';
configureFlags = "--disable-pycompile";
configureFlags = [ "--disable-pycompile" ];
meta = {
homepage = https://fontmanager.github.io/;

View File

@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
sed -i -e 's|/usr/bin/x-terminal-emulator|-l gnome-terminal|g' gksu.desktop
'';
configureFlags = "--disable-nautilus-extension";
configureFlags = [ "--disable-nautilus-extension" ];
meta = {
description = "A graphical frontend for libgksu";

View File

@ -19,7 +19,7 @@ stdenv.mkDerivation {
buildInputs = [ db gtk2 bzip2 ];
configureFlags = "--without-libdb";
configureFlags = [ "--without-libdb" ];
meta = {
description = "Download utility that can fetch files from several sources simultaneously";

View File

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
gnome3.gsettings-desktop-schemas
];
configureFlags = "--libexecdir=$(out)/bin";
configureFlags = [ "--libexecdir=$(out)/bin" ];
preFixup = ''
wrapProgram "$out/bin/notify-osd" \

View File

@ -44,12 +44,12 @@ stdenv.mkDerivation rec {
HOME=$TMPDIR
'';
configureFlags = "
--without-arts --disable-docs
--x-includes=${libX11.dev}/include
--x-libraries=${libX11.out}/lib
--with-qt-dir=${qt3}
";
configureFlags = [
"--without-arts" "--disable-docs"
"--x-includes=${libX11.dev}/include"
"--x-libraries=${libX11.out}/lib"
"--with-qt-dir=${qt3}"
];
preInstall = ''
mkdir -p $out/share/emacs/site-lisp/

View File

@ -17,8 +17,10 @@ stdenv.mkDerivation rec {
'';
# Needs the path to `tclConfig.sh' and `tkConfig.sh'.
configureFlags = "--with-tcl=" + tcl + "/lib " +
"--with-tk=" + tk + "/lib";
configureFlags = [
"--with-tcl=${tcl}/lib"
"--with-tk=${tk}/lib"
];
postInstall = ''
wrapProgram $out/bin/wishwn --set TK_LIBRARY "${tk}/lib/${tk.libPrefix}"

View File

@ -11,7 +11,11 @@ stdenv.mkDerivation rec {
buildInputs = [ flex bison libpcap libdnet libnfnetlink libnetfilter_queue];
configureFlags = "--enable-nfq-module=yes --with-dnet-includes=${libdnet}/includes --with-dnet-libraries=${libdnet}/lib";
configureFlags = [
"--enable-nfq-module=yes"
"--with-dnet-includes=${libdnet}/includes"
"--with-dnet-libraries=${libdnet}/lib"
];
meta = {
description = "Data AcQuisition library (DAQ), for packet I/O";

View File

@ -14,7 +14,12 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
configureFlags = "--disable-static-daq --enable-control-socket --with-daq-includes=${daq}/includes --with-daq-libraries=${daq}/lib";
configureFlags = [
"--disable-static-daq"
"--enable-control-socket"
"--with-daq-includes=${daq}/includes"
"--with-daq-libraries=${daq}/lib"
];
postInstall = ''
wrapProgram $out/bin/snort --add-flags "--daq-dir ${daq}/lib/daq --dynamic-preprocessor-lib-dir $out/lib/snort_dynamicpreprocessor/ --dynamic-engine-lib-dir $out/lib/snort_dynamicengine"

View File

@ -7,7 +7,11 @@ stdenv.mkDerivation {
sha256 = "0b8ir7spxnsz8f7kvr9f1k91nsy8cb65q6jv2l55b04fl20x4z7r";
};
configureFlags = "--with-tcl=${tcl}/lib --with-tk=${tk}/lib --enable-static";
configureFlags = [
"--with-tcl=${tcl}/lib"
"--with-tk=${tk}/lib"
"--enable-static"
];
buildInputs = [which tcl tk xlibsWrapper libpng libjpeg makeWrapper];

View File

@ -14,7 +14,11 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ openssl ncurses glib loudmouth libotr gpgme ];
configureFlags = "--with-openssl=${openssl.dev} --enable-modules --enable-otr";
configureFlags = [
"--with-openssl=${openssl.dev}"
"--enable-modules"
"--enable-otr"
];
doCheck = true;

View File

@ -21,7 +21,7 @@ stdenv.mkDerivation {
hardeningDisable = [ "format" ];
configureFlags = "--with-ncurses=${ncurses.dev}";
configureFlags = [ "--with-ncurses=${ncurses.dev}" ];
preConfigure = stdenv.lib.optionalString enablePlugin ''
configureFlags="$configureFlags --with-silc-plugin=$out/lib/irssi"

View File

@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
checkInputs = [ dbus.daemon ];
configureFlags = "--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt";
configureFlags = [ "--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt" ];
enableParallelBuilding = true;
doCheck = true;

View File

@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
dbus telepathy-glib.python
];
configureFlags = "--enable-call";
configureFlags = [ "--enable-call" ];
preFixup = ''
wrapProgram "$out/libexec/telepathy-logger" \

View File

@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ libxslt pkgconfigUpstream ];
configureFlags = "--disable-avahi-tests";
configureFlags = [ "--disable-avahi-tests" ];
meta = with stdenv.lib; {
description = "Link-local XMPP connection manager for Telepathy";

View File

@ -18,7 +18,10 @@ stdenv.mkDerivation {
-e "s|/bin/rm|rm|"
'';
configureFlags = "--with-slang=${slang.dev} --with-ssl=${openssl.dev}";
configureFlags = [
"--with-slang=${slang.dev}"
"--with-ssl=${openssl.dev}"
];
buildInputs = [ slang ncurses openssl ];

View File

@ -27,7 +27,13 @@ stdenv.mkDerivation rec {
];
propagatedUserEnvPkgs = [ gconf ];
configureFlags = "CFLAGS=-O3 CXXFLAGS=-O3 --disable-dbi --enable-ofx --enable-aqbanking";
configureFlags = [
"CFLAGS=-O3"
"CXXFLAGS=-O3"
"--disable-dbi"
"--enable-ofx"
"--enable-aqbanking"
];
postInstall = ''
# Auto-updaters don't make sense in Nix.

View File

@ -16,7 +16,7 @@ in stdenv.mkDerivation rec {
sha256 = "26cceb7fa97dc7eee7181a79a6251a85b1f1464dcaaaf7624829f7439c5f7d3f";
};
configureFlags = "--disable-component";
configureFlags = [ "--disable-component" ];
prePatch = ''
substituteInPlace doc/C/gnumeric.xml \

View File

@ -10,7 +10,11 @@ stdenv.mkDerivation rec {
buildInputs = [ emacs gmp pcre expat ];
configureFlags = "CPPFLAGS=-DNDEBUG CFLAGS=-O3 CXXFLAGS=-O3";
configureFlags = [
"CPPFLAGS=-DNDEBUG"
"CFLAGS=-O3"
"CXXFLAGS=-O3"
];
doCheck = true;

View File

@ -15,7 +15,12 @@ stdenv.mkDerivation rec {
sha256 = "1b2v0dcdqn3bysgdkj57sxmd6s0hc9wpnxssviz399g6plhxggbr";
};
configureFlags = "--without-debug --with-bin-release --with-dll --without-static";
configureFlags = [
"--without-debug"
"--with-bin-release"
"--with-dll"
"--without-static"
];
buildInputs = [ cpio ];
meta = {

View File

@ -9,7 +9,9 @@ stdenv.mkDerivation rec {
sha256 = "08dpa506xk4gjbbi8vnxcb640wq4ihlgmhzlssl52nhvxwx7gx5v";
};
configureFlags = "--disable-update-xdg-database";
configureFlags = [
"--disable-update-xdg-database"
];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ guile gtk2 flex gawk perl ];

View File

@ -17,7 +17,11 @@ in stdenv.mkDerivation {
nativeBuildInputs = [ autoreconfHook automake pkgconfig ];
hardeningDisable = [ "format" ];
configureFlags = "--with-tcl=${tcl}/lib --with-tk=${tk}/lib --with-ngspice=${getBin ngspice}/bin/ngspice";
configureFlags = [
"--with-tcl=${tcl}/lib"
"--with-tk=${tk}/lib"
"--with-ngspice=${getBin ngspice}/bin/ngspice"
];
buildInputs = with xorg; [ cairo ghostscript libSM libXt libICE libX11 libXpm tcl tk zlib ];

View File

@ -14,7 +14,10 @@ stdenv.mkDerivation rec {
preConfigure = ''
sed -e 's/ *CC *= *gcc$//' -i Makefile.vars
'';
configureFlags = "--exec-prefix=$(out) --man-prefix=$(out)/share/man";
configureFlags = [
"--exec-prefix=$(out)"
"--man-prefix=$(out)/share/man"
];
meta = with stdenv.lib; {
description = "Automated theorem prover for full first-order logic with equality";

View File

@ -15,7 +15,7 @@ in
let
polymlEnableShared = with pkgs; lib.overrideDerivation polyml (attrs: {
configureFlags = "--enable-shared";
configureFlags = [ "--enable-shared" ];
});
in

View File

@ -8,7 +8,7 @@ stdenv.mkDerivation {
sha256 = "1w8axdzm05xf5y13c31w7rc5z6ywxqxiwafnxcq3p195kgj0915a";
};
configureFlags = "-C";
configureFlags = [ "-C" ];
enableParallelBuilding = true;

View File

@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
preConfigure = "patchShebangs ginsh";
configureFlags = "--disable-rpath";
configureFlags = [ "--disable-rpath" ];
meta = with stdenv.lib; {
description = "GiNaC is Not a CAS";

View File

@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
configureFlags = "--disable-server";
configureFlags = [ "--disable-server" ];
meta = {
description = "Free software for distributed and grid computing";

View File

@ -66,7 +66,7 @@ stdenv.mkDerivation {
buildInputs = [ gtk2 libglade libxml2 libraw1394 libsamplerate libdv
pkgconfig perl perlXMLParser libavc1394 libiec61883 intltool libXv gettext libX11 glib cairo ffmpeg libv4l ]; # TODOoptional packages
configureFlags = "--enable-local-ffmpeg=no";
configureFlags = [ "--enable-local-ffmpeg=no" ];
hardeningDisable = [ "format" ];

View File

@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
patchPhase = ''sed -e '/curl\/types\.h/d' -i src/xitk/download.c'';
configureFlags = "--with-readline=${readline.dev}";
configureFlags = [ "--with-readline=${readline.dev}" ];
LIRC_CFLAGS="-I${lirc}/include";
LIRC_LIBS="-L ${lirc}/lib -llirc_client";

View File

@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
patchShebangs .
'';
configureFlags = "--localstatedir=/var";
configureFlags = [ "--localstatedir=/var" ];
installFlags = "CONTAINER_MOUNTDIR=dummy CONTAINER_FINALDIR=dummy CONTAINER_OVERLAY=dummy SESSIONDIR=dummy";
fixupPhase = ''

View File

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ intltool iconnamingutils imagemagick librsvg ];
configureFlags = "--enable-png-creation";
configureFlags = [ "--enable-png-creation" ];
postInstall = '''${gtk.out}/bin/gtk-update-icon-cache' "$out/share/icons/Tango" '';

View File

@ -18,5 +18,5 @@ stdenv.mkDerivation {
libgnomeui librsvg gnome_menus gnome-desktop gnome_panel metacity gnome-settings-daemon
libSM docbook_xml_dtd_412
];
configureFlags = "--disable-scrollkeeper";
configureFlags = [ "--disable-scrollkeeper" ];
}

View File

@ -9,7 +9,7 @@ stdenv.mkDerivation {
sha256 = "17bkng6ay37n3492lr9wpb49kms6gh554rn9gbjs27zygvvfrjsm";
};
configureFlags = "--disable-scrollkeeper";
configureFlags = [ "--disable-scrollkeeper" ];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ python libxml2Python libxslt which libX11 gtk
intltool GConf gnome-doc-utils ];

View File

@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
url = "mirror://gnome/sources/libgweather/2.30/${name}.tar.bz2";
sha256 = "0k16lpdyy8as8wgc5dqpy5b8i9i4mrl77qx8db23fgs2c533fddq";
};
configureFlags = "--with-zoneinfo-dir=${stdenv.glibc}/share/zoneinfo";
configureFlags = [ "--with-zoneinfo-dir=${stdenv.glibc}/share/zoneinfo" ];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libxml2 gtk intltool GConf libsoup libtasn1 nettle gmp ];
}

View File

@ -15,5 +15,5 @@ stdenv.mkDerivation {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ perl perlXMLParser libxml2 libxslt gettext];
configureFlags = "--with-xml-catalog=${docbook_xml_dtd_42}/xml/dtd/docbook/catalog.xml";
configureFlags = [ "--with-xml-catalog=${docbook_xml_dtd_42}/xml/dtd/docbook/catalog.xml" ];
}

View File

@ -9,7 +9,7 @@ stdenv.mkDerivation {
sha256 = "1b0qxb07wif0ds1pl8xk3fq9p874j89rf718lii4ndh7382bwf48";
};
configureFlags = "--disable-scrollkeeper";
configureFlags = [ "--disable-scrollkeeper" ];
buildInputs = [ gtk libglade libxml2 libxslt libX11 docbook_xml_dtd_412 ];
nativeBuildInputs = [ pkgconfig intltool gnome-doc-utils which ];

View File

@ -20,7 +20,7 @@ in stdenv.mkDerivation rec {
vala libsecret libxml2 libsoup nspr nss intltool db ];
nativeBuildInputs = [ pkgconfig ];
configureFlags = "--disable-fatal-warnings";
configureFlags = [ "--disable-fatal-warnings" ];
NIX_CFLAGS_COMPILE = ["-I${nss.dev}/include/nss"
"-I${dbus-glib.dev}/include/dbus-1.0" "-I${dbus.dev}/include/dbus-1.0"];

View File

@ -14,7 +14,7 @@ in stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ glib libsoup gobjectIntrospection];
configureFlags = "--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt";
configureFlags = [ "--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt" ];
passthru = {
updateScript = gnome3.updateScript {

View File

@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
mate.mate-settings-daemon
];
configureFlags = "--disable-update-mimedb";
configureFlags = [ "--disable-update-mimedb" ];
meta = with stdenv.lib; {
description = "Utilities to configure the MATE desktop";

View File

@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
mate.mate-menus
];
configureFlags = "--without-console-kit";
configureFlags = [ "--without-console-kit" ];
makeFlags = "DBUS_SESSION_SERVICE_DIR=$(out)/etc";

View File

@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
systemd
];
configureFlags = "--enable-systemd";
configureFlags = [ "--enable-systemd" ];
meta = with stdenv.lib; {
description = "System monitor for the MATE desktop";

View File

@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
prefixKey = "-prefix ";
configureFlags = "-ocamlfind ${ocamlPackages.findlib}/bin/ocamlfind ";
configureFlags = [ "-ocamlfind ${ocamlPackages.findlib}/bin/ocamlfind" ];
buildInputs = [ which perl jdk openssl coreutils zlib ncurses
makeWrapper gcc binutils gnumake nodejs

View File

@ -20,7 +20,11 @@ stdenv.mkDerivation {
hardeningDisable = [ "format" ];
configureFlags = "--with-world --enable-gmp --enable-shared";
configureFlags = [
"--with-world"
"--enable-gmp"
"--enable-shared"
];
buildFlags = "world";

View File

@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
sed -e 's@/usr/bin/file@${file}/bin/file@g' -i configure
'';
configureFlags = "--with-openssl=${openssl.dev}";
configureFlags = [ "--with-openssl=${openssl.dev}" ];
preConfigure = ''
export PGHEADER="${postgresql}/include/libpq-fe.h";

View File

@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
buildInputs = [ readline gmp zlib ];
configureFlags = "--enable-tabling=yes";
configureFlags = [ "--enable-tabling=yes" ];
NIX_CFLAGS_COMPILE = [ "-fpermissive" ];

View File

@ -11,7 +11,7 @@ stdenv.mkDerivation {
buildInputs = [ coq ];
propagatedBuildInputs = [ ssreflect ];
configureFlags = "--libdir=$out/lib/coq/${coq.coq-version}/user-contrib/Coquelicot";
configureFlags = [ "--libdir=$out/lib/coq/${coq.coq-version}/user-contrib/Coquelicot" ];
buildPhase = "./remake";
installPhase = "./remake install";

View File

@ -67,15 +67,15 @@ stdenv.mkDerivation rec {
substituteInPlace modules/bindings/glibc/linux.lisp --replace "(def-c-type __swblk_t)" ""
'';
configureFlags = "builddir"
+ stdenv.lib.optionalString (!dllSupport) " --without-dynamic-modules"
+ stdenv.lib.optionalString (readline != null) " --with-readline"
configureFlags = [ "builddir" ]
++ stdenv.lib.optional (!dllSupport) "--without-dynamic-modules"
++ stdenv.lib.optional (readline != null) "--with-readline"
# --with-dynamic-ffi can only exist with --with-ffcall - foreign.d does not compile otherwise
+ stdenv.lib.optionalString (ffcallAvailable && (libffi != null)) " --with-dynamic-ffi"
+ stdenv.lib.optionalString ffcallAvailable " --with-ffcall"
+ stdenv.lib.optionalString (!ffcallAvailable) " --without-ffcall"
+ stdenv.lib.concatMapStrings (x: " --with-module=" + x) withModules
+ stdenv.lib.optionalString threadSupport " --with-threads=POSIX_THREADS";
++ stdenv.lib.optional (ffcallAvailable && (libffi != null)) "--with-dynamic-ffi"
++ stdenv.lib.optional ffcallAvailable "--with-ffcall"
++ stdenv.lib.optional (!ffcallAvailable) "--without-ffcall"
++ builtins.map (x: "--with-module=" + x) withModules
++ stdenv.lib.optional threadSupport "--with-threads=POSIX_THREADS";
preBuild = ''
sed -e '/avcall.h/a\#include "config.h"' -i src/foreign.d

View File

@ -62,15 +62,15 @@ stdenv.mkDerivation rec {
substituteInPlace modules/bindings/glibc/linux.lisp --replace "(def-c-type __swblk_t)" ""
'';
configureFlags = "builddir"
+ stdenv.lib.optionalString (!dllSupport) " --without-dynamic-modules"
+ stdenv.lib.optionalString (readline != null) " --with-readline"
configureFlags = [ "builddir" ]
++ stdenv.lib.optional (!dllSupport) "--without-dynamic-modules"
++ stdenv.lib.optional (readline != null) "--with-readline"
# --with-dynamic-ffi can only exist with --with-ffcall - foreign.d does not compile otherwise
+ stdenv.lib.optionalString (ffcallAvailable && (libffi != null)) " --with-dynamic-ffi"
+ stdenv.lib.optionalString ffcallAvailable " --with-ffcall"
+ stdenv.lib.optionalString (!ffcallAvailable) " --without-ffcall"
+ stdenv.lib.concatMapStrings (x: " --with-module=" + x) withModules
+ stdenv.lib.optionalString threadSupport " --with-threads=POSIX_THREADS";
++ stdenv.lib.optional (ffcallAvailable && (libffi != null)) "--with-dynamic-ffi"
++ stdenv.lib.optional ffcallAvailable "--with-ffcall"
++ stdenv.lib.optional (!ffcallAvailable) "--without-ffcall"
++ builtins.map (x: " --with-module=" + x) withModules
++ stdenv.lib.optional threadSupport "--with-threads=POSIX_THREADS";
preBuild = ''
sed -e '/avcall.h/a\#include "config.h"' -i src/foreign.d

View File

@ -25,7 +25,7 @@ stdenv.mkDerivation {
buildInputs = [ ncurses ];
configureFlags = "--without-x --with-ncurses=${ncurses.dev}";
configureFlags = [ "--without-x" "--with-ncurses=${ncurses.dev}" ];
postInstall = ''
mkdir -p $dev/bin

View File

@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
sh autogen.sh
'';
configureFlags = "--x-includes=${libX11.dev}/include --x-libraries=${libX11.out}/lib --enable-examples=no";
configureFlags = [ "--x-includes=${libX11.dev}/include" "--x-libraries=${libX11.out}/lib" "--enable-examples=no" ];
# libtool --tag=CXX --mode=link g++ -g -O2 libexamples.la ../src/platform/X11/libaggplatformX11.la ../src/libagg.la -o alpha_mask2 alpha_mask2.o
# libtool: error: cannot find the library 'libexamples.la'

View File

@ -9,8 +9,8 @@ stdenv.mkDerivation rec {
rev = "10bc615ce5999caf4723444b2b1219b74781d8a4";
sha256 = "1xb40x3hv9nh76aizhskj5gdhalgn7r95a7zji2nn4ih3lmh40hl";
};
buildInputs = [mpir gmp mpfr flint];
configureFlags = "--with-gmp=${gmp} --with-mpir=${mpir} --with-mpfr=${mpfr} --with-flint=${flint}";
buildInputs = [ mpir gmp mpfr flint ];
configureFlags = [ "--with-gmp=${gmp}" "--with-mpir=${mpir}" "--with-mpfr=${mpfr}" "--with-flint=${flint}" ];
meta = {
inherit version;
description = ''A library for arbitrary-precision interval arithmetic'';

View File

@ -6,8 +6,8 @@ stdenv.mkDerivation {
url = mirror://sourceforge/beecrypt/beecrypt-4.2.1.tar.gz;
sha256 = "0pf5k1c4nsj77jfq5ip0ra1gzx2q47xaa0s008fnn6hd11b1yvr8";
};
buildInputs = [m4];
configureFlags = "--disable-optimized --enable-static";
buildInputs = [ m4 ];
configureFlags = [ "--disable-optimized" "--enable-static" ];
meta = {
platforms = stdenv.lib.platforms.linux;

View File

@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
buildInputs = [ bison ];
patches = [ ./gcc-4.3.3-fixes.patch ];
configureFlags = "CFLAGS=-O3 CXXFLAGS=-O3";
configureFlags = [ "CFLAGS=-O3" "CXXFLAGS=-O3" ];
doCheck = true;
meta = {

View File

@ -10,7 +10,14 @@ stdenv.mkDerivation rec {
PYTHON_SITE = "$(out)/site-packages";
configureFlags = "--with-python=${python}/bin/python --disable-apache --disable-perl --disable-ruby --disable-java --disable-csharp";
configureFlags = [
"--with-python=${python}/bin/python"
"--disable-apache"
"--disable-perl"
"--disable-ruby"
"--disable-java"
"--disable-csharp"
];
preInstall = ''
mkdir -p $out

View File

@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
patches = [ ./fix-ppl-version.patch ];
configureFlags = "--with-ppl=${ppl}";
configureFlags = [ "--with-ppl=${ppl}" ];
preAutoreconf = ''
touch NEWS ChangeLog AUTHORS

View File

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "format" ];
configureFlags = "--without-python";
configureFlags = [ "--without-python" ];
prePatch = ''
sed -i -e '/$(LDCONFIG)/d' common/include/lib.mak.in

View File

@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ dbus glib expat ];
configureFlags = "--disable-ecore";
configureFlags = [ "--disable-ecore" ];
meta = with stdenv.lib; {
homepage = http://dbus-cplusplus.sourceforge.net;

View File

@ -9,7 +9,11 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ givaro_3_7 openblas gmpxx];
configureFlags = "--with-blas=-lopenblas --with-gmp=${gmpxx.dev} --with-givaro=${givaro_3_7}";
configureFlags = [
"--with-blas=-lopenblas"
"--with-gmp=${gmpxx.dev}"
"--with-givaro=${givaro_3_7}"
];
meta = {
inherit version;
description = ''Finite Field Linear Algebra Subroutines'';

View File

@ -14,7 +14,11 @@ stdenv.mkDerivation (rec {
# `_GNU_SOURCE' is needed, e.g., to get `struct ucred' from
# <sys/socket.h> with Glibc 2.9.
configureFlags = "--disable-debug --with-python=${python} CPPFLAGS=-D_GNU_SOURCE";
configureFlags = [
"--disable-debug"
"--with-python=${python}"
"CPPFLAGS=-D_GNU_SOURCE"
];
patches = [ ./deadlock.patch ]
++ map fetchurl (import ./debian-patches.nix)

View File

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "format" ];
# needs fonts otherwise don't know how to pass them
configureFlags = "--disable-docs";
configureFlags = [ "--disable-docs" ];
enableParallelBuilding = true;

View File

@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
})];
# needs fonts otherwise don't know how to pass them
configureFlags = "--disable-docs";
configureFlags = [ "--disable-docs" ];
buildInputs = [ babl libpng cairo libjpeg librsvg pango gtk2 bzip2 intltool libintl ]
++ stdenv.lib.optional stdenv.isDarwin OpenGL;

View File

@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
buildInputs = [ libidn kerberos ];
configureFlags = "--with-gssapi-impl=mit";
configureFlags = [ "--with-gssapi-impl=mit" ];
doCheck = true;

View File

@ -36,9 +36,9 @@ let
sed -e 's/LDFLAGSICUDT=-nodefaultlibs -nostdlib/LDFLAGSICUDT=/' -i config/mh-linux
'';
configureFlags = "--disable-debug" +
stdenv.lib.optionalString (stdenv.isFreeBSD || stdenv.isDarwin) " --enable-rpath" +
stdenv.lib.optionalString (buildPlatform != hostPlatform) " --with-cross-build=${nativeBuildRoot}";
configureFlags = [ "--disable-debug" ]
++ stdenv.lib.optional (stdenv.isFreeBSD || stdenv.isDarwin) "--enable-rpath"
++ stdenv.lib.optional (buildPlatform != hostPlatform) "--with-cross-build=${nativeBuildRoot}";
enableParallelBuilding = true;

View File

@ -7,10 +7,11 @@ stdenv.mkDerivation {
sha256 = "0ggjxyvgp4pxc0b88v40xj9daz90518ydnycw7qax011gxpr12d3";
};
configureFlags = "
--disable-shm
--x-includes=${libX11.dev}/include
--x-libraries=${libX11.out}/lib";
configureFlags = [
"--disable-shm"
"--x-includes=${libX11.dev}/include"
"--x-libraries=${libX11.out}/lib"
];
buildInputs = [libjpeg libXext libX11 xextproto libtiff libungif libpng];

View File

@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
propagatedBuildInputs = [ libjpeg ];
configureFlags = "--enable-shared";
configureFlags = [ "--enable-shared" ];
outputs = [ "bin" "dev" "out" "man" ];

View File

@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ glib zlib libpng cmake gnumake3 ];
configureFlags = "-v";
configureFlags = [ "-v" ];
meta = with stdenv.lib; {
platforms = platforms.linux;

View File

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
cat configure.in | ${bsdbuild}/bin/mkconfigure > configure
'';
configureFlags = "--with-agar=${libagar}";
configureFlags = [ "--with-agar=${libagar}" ];
buildInputs = [ perl bsdbuild libagar libjpeg libpng openssl ];

View File

@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
++ lib.optional stdenv.isLinux libcap
++ lib.optional withAlsa alsaLib;
configureFlags = "--disable-oss";
configureFlags = [ "--disable-oss" ];
patchFlags = "-p0";
patches = stdenv.lib.optional stdenv.isDarwin

View File

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ boost libxml2 curl ];
configureFlags = "--without-man --with-boost=${boost.dev} --disable-werror --disable-tests";
configureFlags = [ "--without-man" "--with-boost=${boost.dev}" "--disable-werror" "--disable-tests" ];
# Cppcheck cannot find all the include files (use --check-config for details)
doCheck = false;

View File

@ -27,10 +27,12 @@ stdenv.mkDerivation rec {
] ++ stdenv.lib.optionals gtkSupport [ glib gtk3 ]
++ stdenv.lib.optionals videoSupport [ ffmpeg libmpeg2 ];
configureFlags = "--disable-ltdl-install "
+ "--with-ltdl-include=${libtool}/include "
+ "--with-ltdl-lib=${libtool.lib}/lib "
+ "--enable-xpdf";
configureFlags = [
"--disable-ltdl-install"
"--with-ltdl-include=${libtool}/include"
"--with-ltdl-lib=${libtool.lib}/lib"
"--enable-xpdf"
];
# Checks need to be run after "make install", otherwise plug-ins are not in
# the search path, etc.

View File

@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ libtool ];
buildInputs = [ libmad libid3tag ];
configureFlags = "--disable-pcre";
configureFlags = [ "--disable-pcre" ];
meta = with stdenv.lib; {
homepage = https://sourceforge.net/projects/mp3splt/;

View File

@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
passthru = { inherit zlib; };
configureFlags = "--enable-static";
configureFlags = [ "--enable-static" ];
postInstall = ''mv "$out/bin" "$dev/bin"'';

View File

@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
patchShebangs .
'';
configureFlags = "--enable-shared";
configureFlags = [ "--enable-shared" ];
meta = {
description = "A C++ library to access PostgreSQL databases";

View File

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libxml2 sqlite zlib proj geos libiconv ];
configureFlags = "--disable-freexl";
configureFlags = [ "--disable-freexl" ];
enableParallelBuilding = true;

View File

@ -10,9 +10,9 @@ stdenv.mkDerivation rec {
sha256 = "08mg5kmkjrmqrd8j5rkzw9vdqlvibhb1ynp6bmfxnzq5rcq1l197";
};
buildInputs = [boost icu libpng librevenge zlib cppunit];
nativeBuildInputs = [doxygen pkgconfig];
configureFlags = " --disable-werror ";
buildInputs = [ boost icu libpng librevenge zlib cppunit ];
nativeBuildInputs = [ doxygen pkgconfig ];
configureFlags = [ "--disable-werror" ];
meta = {
inherit version;

View File

@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
patches = [
];
configureFlags = "--with-ssl=openssl";
configureFlags = [ "--with-ssl=openssl" ];
propagatedBuildInputs = [ openssl libidn glib zlib ];

View File

@ -10,11 +10,18 @@ stdenv.mkDerivation rec {
buildInputs = [ octave ];
configureFlags = "--with-cxx --enable-shared --with-pic --without-guile --without-python
--without-matlab " +
stdenv.lib.optionalString (octave != null) ("--with-octave " +
"M_INSTALL_DIR=$(out)/${octave.sitePath}/m " +
"OCT_INSTALL_DIR=$(out)/${octave.sitePath}/oct ");
configureFlags = [
"--with-cxx"
"--enable-shared"
"--with-pic"
"--without-guile"
"--without-python"
"--without-matlab"
] ++ stdenv.lib.optionals (octave != null) [
"--with-octave"
"M_INSTALL_DIR=$(out)/${octave.sitePath}/m"
"OCT_INSTALL_DIR=$(out)/${octave.sitePath}/oct"
];
meta = {
homepage = http://ab-initio.mit.edu/nlopt/;

View File

@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig python ];
configureFlags = "--without-gobject CFLAGS=--std=gnu99";
configureFlags = [ "--without-gobject" "CFLAGS=--std=gnu99" ];
# Remove this patch after version 016
patches = [ ./libnl-fix.patch ];

View File

@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
cmakeFlags="$cmakeFlags -DPACKAGE_ARCHITECTURE=$(uname -m)";
'';
configureFlags = "--disable-more-warnings";
configureFlags = [ "--disable-more-warnings" ];
meta = with stdenv.lib; {
description = "Openwsman server implementation and client API with bindings";

View File

@ -12,7 +12,7 @@ in stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ perl perlXMLParser libxml2 libxslt];
configureFlags = "--with-xml-catalog=${docbook_xml_dtd_42}/xml/dtd/docbook/docbook.cat";
configureFlags = [ "--with-xml-catalog=${docbook_xml_dtd_42}/xml/dtd/docbook/docbook.cat" ];
passthru = {
updateScript = gnome3.updateScript {

View File

@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
buildInputs = [ expat zlib geos libspatialite ];
configureFlags = "--disable-freexl";
configureFlags = [ "--disable-freexl" ];
enableParallelBuilding = true;

View File

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
buildInputs = [ zlib bzip2 lzma curl ];
configureFlags = "--enable-libcurl"; # optional but strongly recommended
configureFlags = [ "--enable-libcurl" ]; # optional but strongly recommended
installFlags = "prefix=$(out)";

View File

@ -2,7 +2,7 @@
stdenv.mkDerivation {
name = "liblbfgs-1.10";
configureFlags = "--enable-sse2";
configureFlags = [ "--enable-sse2" ];
src = fetchurl {
url = https://github.com/downloads/chokkan/liblbfgs/liblbfgs-1.10.tar.gz;
sha256 = "1kv8d289rbz38wrpswx5dkhr2yh4fg4h6sszkp3fawxm09sann21";

View File

@ -10,7 +10,7 @@ stdenv.mkDerivation {
sha256 = "07p89jv9qnjqkszws9sssq93ayvwpdnkcxrvyicbm4mb8x2pdzjb";
};
configureFlags = "--with-tcl=${tcl}/lib --with-tk=${tk}/lib";
configureFlags = [ "--with-tcl=${tcl}/lib" "--with-tk=${tk}/lib" ];
postUnpack = ''sourceRoot="$sourceRoot/unix"'';

View File

@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ sqlite expat zlib proj geos libspatialite readosm ];
configureFlags = "--disable-freexl";
configureFlags = [ "--disable-freexl" ];
enableParallelBuilding = true;

View File

@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
})
];
configureFlags = "--without-conf --enable-tests=no CXXFLAGS=-Wno-unused-but-set-variable";
configureFlags = [ "--without-conf" "--enable-tests=no CXXFLAGS=-Wno-unused-but-set-variable" ];
meta = with stdenv.lib; {
description = "A software framework that allows research manipulation of Biblical texts";

View File

@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
# TODO: package boost-test, so we can run the test suite. (Currently it fails
# to find libboost_unit_test_framework.a.)
configureFlags = "--enable-tests=no";
configureFlags = [ "--enable-tests=no" ];
doCheck = false;
meta = with stdenv.lib; {

View File

@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
yasm vapoursynth fftwFloat
];
configureFlags = "--libdir=$(out)/lib/vapoursynth";
configureFlags = [ "--libdir=$(out)/lib/vapoursynth" ];
meta = with stdenv.lib; {
description = "A set of filters for motion estimation and compensation";

View File

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
sha256 = "1yhy62vkbq8j8c9zaa6yzvn75cd99kfa8n2zfdwl80x019r711ww";
};
configureFlags = "--with-scanner --disable-documentation";
configureFlags = [ "--with-scanner" "--disable-documentation" ];
nativeBuildInputs = [ pkgconfig ];

View File

@ -10,7 +10,7 @@ stdenv.mkDerivation {
url = "mirror://gnu/binutils/binutils-${version}.tar.bz2";
sha256 = "028cklfqaab24glva1ks2aqa1zxa6w6xmc8q34zs1sb7h22dxspg";
};
configureFlags = "--target=avr --enable-languages=c,c++";
configureFlags = [ "--target=avr" "--enable-languages=c,c++" ];
meta = with stdenv.lib; {
description = "the GNU Binutils for AVR microcontrollers";

Some files were not shown because too many files have changed in this diff Show More