From 3243c4f2722f1fa55f31247f8c8f16216fe8b95f Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Wed, 24 Aug 2016 19:54:30 +0300 Subject: [PATCH 01/62] treewide: Make explicit that 'dev' output of SDL is used --- pkgs/tools/video/mjpegtools/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/video/mjpegtools/default.nix b/pkgs/tools/video/mjpegtools/default.nix index 0e90a5071b75e..ebfff5dbabcd5 100644 --- a/pkgs/tools/video/mjpegtools/default.nix +++ b/pkgs/tools/video/mjpegtools/default.nix @@ -20,7 +20,7 @@ stdenv.mkDerivation rec { buildInputs = [ libdv libjpeg libpng pkgconfig ] ++ lib.optional (!withMinimal) [ gtk libX11 SDL SDL_gfx ]; - NIX_CFLAGS_COMPILE = lib.optional (!withMinimal) "-I${SDL}/include/SDL"; + NIX_CFLAGS_COMPILE = lib.optional (!withMinimal) "-I${SDL.dev}/include/SDL"; postPatch = '' sed -i -e '/ARCHFLAGS=/s:=.*:=:' configure From 5326e85f3d7b5b222ccd158f25f0f15a60b458ec Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Sun, 24 Jan 2016 00:18:38 +0200 Subject: [PATCH 02/62] stdenv.mkDerivation: Use chooseDevOutputs --- lib/attrsets.nix | 2 ++ pkgs/stdenv/generic/default.nix | 22 +++++++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/lib/attrsets.nix b/lib/attrsets.nix index f47e481c58a49..686e125f100c8 100644 --- a/lib/attrsets.nix +++ b/lib/attrsets.nix @@ -454,6 +454,8 @@ rec { getLib = getOutput "lib"; getDev = getOutput "dev"; + /* Pick the outputs of packages to place in buildInputs */ + chooseDevOutputs = drvs: builtins.map (drv: if drv.outputUnspecified or false then drv.dev or drv else drv) drvs; /*** deprecated stuff ***/ diff --git a/pkgs/stdenv/generic/default.nix b/pkgs/stdenv/generic/default.nix index cf7894fc005ba..e71c2f770b9b3 100644 --- a/pkgs/stdenv/generic/default.nix +++ b/pkgs/stdenv/generic/default.nix @@ -158,9 +158,13 @@ let outputs ++ (if separateDebugInfo then assert result.isLinux; [ "debug" ] else []); - buildInputs' = buildInputs ++ + buildInputs' = lib.chooseDevOutputs buildInputs ++ (if separateDebugInfo then [ ../../build-support/setup-hooks/separate-debug-info.sh ] else []); + nativeBuildInputs' = lib.chooseDevOutputs nativeBuildInputs; + propagatedBuildInputs' = lib.chooseDevOutputs propagatedBuildInputs; + propagatedNativeBuildInputs' = lib.chooseDevOutputs propagatedNativeBuildInputs; + in # Throw an error if trying to evaluate an non-valid derivation @@ -176,13 +180,13 @@ let "sandboxProfile" "propagatedSandboxProfile"]) // (let computedSandboxProfile = - lib.concatMap (input: input.__propagatedSandboxProfile or []) (extraBuildInputs ++ buildInputs ++ nativeBuildInputs); + lib.concatMap (input: input.__propagatedSandboxProfile or []) (extraBuildInputs ++ buildInputs' ++ nativeBuildInputs'); computedPropagatedSandboxProfile = - lib.concatMap (input: input.__propagatedSandboxProfile or []) (propagatedBuildInputs ++ propagatedNativeBuildInputs); + lib.concatMap (input: input.__propagatedSandboxProfile or []) (propagatedBuildInputs' ++ propagatedNativeBuildInputs'); computedImpureHostDeps = - lib.unique (lib.concatMap (input: input.__propagatedImpureHostDeps or []) (extraBuildInputs ++ buildInputs ++ nativeBuildInputs)); + lib.unique (lib.concatMap (input: input.__propagatedImpureHostDeps or []) (extraBuildInputs ++ buildInputs' ++ nativeBuildInputs')); computedPropagatedImpureHostDeps = - lib.unique (lib.concatMap (input: input.__propagatedImpureHostDeps or []) (propagatedBuildInputs ++ propagatedNativeBuildInputs)); + lib.unique (lib.concatMap (input: input.__propagatedImpureHostDeps or []) (propagatedBuildInputs' ++ propagatedNativeBuildInputs')); in { builder = attrs.realBuilder or shell; @@ -194,17 +198,17 @@ let # Inputs built by the cross compiler. buildInputs = if crossConfig != null then buildInputs' else []; - propagatedBuildInputs = if crossConfig != null then propagatedBuildInputs else []; + propagatedBuildInputs = if crossConfig != null then propagatedBuildInputs' else []; # Inputs built by the usual native compiler. - nativeBuildInputs = nativeBuildInputs + nativeBuildInputs = nativeBuildInputs' ++ lib.optionals (crossConfig == null) buildInputs' ++ lib.optional (result.isCygwin || (crossConfig != null && lib.hasSuffix "mingw32" crossConfig)) ../../build-support/setup-hooks/win-dll-link.sh ; - propagatedNativeBuildInputs = propagatedNativeBuildInputs ++ - (if crossConfig == null then propagatedBuildInputs else []); + propagatedNativeBuildInputs = propagatedNativeBuildInputs' ++ + (if crossConfig == null then propagatedBuildInputs' else []); } // ifDarwin { # TODO: remove lib.unique once nix has a list canonicalization primitive __sandboxProfile = From 5d55ae5d5048610f73e727aa98d1f9f88045b752 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Sun, 24 Jan 2016 05:21:45 +0200 Subject: [PATCH 03/62] stdenv/multiple-outputs.sh: Change output propagation logic Because 'dev' will most often not be the default output after my changes. --- pkgs/build-support/setup-hooks/multiple-outputs.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pkgs/build-support/setup-hooks/multiple-outputs.sh b/pkgs/build-support/setup-hooks/multiple-outputs.sh index 06d80e12f09bc..2a0ebd52355a9 100644 --- a/pkgs/build-support/setup-hooks/multiple-outputs.sh +++ b/pkgs/build-support/setup-hooks/multiple-outputs.sh @@ -160,8 +160,7 @@ _multioutDevs() { done } -# Make the first output (typically "dev") propagate other outputs needed for development. -# Take the first, because that's what one gets when putting the package into buildInputs. +# Make the "dev" propagate other outputs needed for development. # Note: with current cross-building setup, all packages are "native" if not cross-building; # however, if cross-building, the outputs are non-native. We have to choose the right file. _multioutPropagateDev() { @@ -171,13 +170,17 @@ _multioutPropagateDev() { for outputFirst in $outputs; do break done + local propagaterOutput="$outputDev" + if [ -z "$propagaterOutput" ]; then + propagaterOutput="$outputFirst" + fi # Default value: propagate binaries, includes and libraries if [ -z "${propagatedBuildOutputs+1}" ]; then local po_dirty="$outputBin $outputInclude $outputLib" set +o pipefail propagatedBuildOutputs=`echo "$po_dirty" \ - | tr -s ' ' '\n' | grep -v -F "$outputFirst" \ + | tr -s ' ' '\n' | grep -v -F "$propagaterOutput" \ | sort -u | tr '\n' ' ' ` set -o pipefail fi @@ -187,7 +190,6 @@ _multioutPropagateDev() { return fi - mkdir -p "${!outputFirst}"/nix-support local propagatedBuildInputsFile if [ -z "$crossConfig" ]; then propagatedBuildInputsFile=propagated-native-build-inputs @@ -195,8 +197,9 @@ _multioutPropagateDev() { propagatedBuildInputsFile=propagated-build-inputs fi + mkdir -p "${!propagaterOutput}"/nix-support for output in $propagatedBuildOutputs; do - echo -n " ${!output}" >> "${!outputFirst}"/nix-support/$propagatedBuildInputsFile + echo -n " ${!output}" >> "${!propagaterOutput}"/nix-support/$propagatedBuildInputsFile done } From a17216af4c82dbeb33030355664d96875558f7ac Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Mon, 29 Aug 2016 03:30:01 +0300 Subject: [PATCH 04/62] treewide: Shuffle outputs Make either 'bin' or 'out' the first output. --- pkgs/applications/audio/flac/default.nix | 2 +- .../graphics/ImageMagick/default.nix | 2 +- pkgs/applications/misc/djvulibre/default.nix | 2 +- pkgs/applications/misc/mupdf/default.nix | 2 +- .../version-management/subversion/default.nix | 2 +- .../gnome-2/platform/GConf/default.nix | 2 +- .../gnome-2/platform/ORBit2/default.nix | 2 +- .../gnome-2/platform/gnome-vfs/default.nix | 2 +- .../gnome-2/platform/libbonobo/default.nix | 2 +- .../gnome-2/platform/libglade/default.nix | 2 +- .../gnome-2/platform/libgnome/default.nix | 2 +- .../platform/libgnomecanvas/default.nix | 2 +- .../gnome-3/3.20/core/libcroco/default.nix | 2 +- pkgs/desktops/xfce/core/exo.nix | 2 +- pkgs/desktops/xfce/core/garcon.nix | 2 +- pkgs/desktops/xfce/core/libxfce4ui.nix | 2 +- pkgs/desktops/xfce/core/libxfce4util.nix | 2 +- pkgs/desktops/xfce/core/libxfcegui4.nix | 2 +- pkgs/desktops/xfce/core/tumbler.nix | 2 +- pkgs/desktops/xfce/core/xfce4-panel.nix | 2 +- pkgs/desktops/xfce/core/xfconf.nix | 2 +- pkgs/development/compilers/orc/default.nix | 2 +- pkgs/development/compilers/terra/default.nix | 2 +- pkgs/development/compilers/tinycc/default.nix | 2 +- .../interpreters/spidermonkey/17.0.nix | 2 +- .../interpreters/spidermonkey/24.2.nix | 2 +- pkgs/development/libraries/SDL/default.nix | 2 +- pkgs/development/libraries/aalib/default.nix | 2 +- pkgs/development/libraries/acl/default.nix | 2 +- .../libraries/apr-util/default.nix | 2 +- pkgs/development/libraries/apr/default.nix | 2 +- .../libraries/at-spi2-core/default.nix | 2 +- pkgs/development/libraries/atk/default.nix | 2 +- pkgs/development/libraries/attr/default.nix | 2 +- .../libraries/boehm-gc/default.nix | 2 +- pkgs/development/libraries/boost/generic.nix | 2 +- pkgs/development/libraries/cairo/default.nix | 2 +- .../libraries/cyrus-sasl/default.nix | 2 +- .../libraries/dbus-glib/default.nix | 2 +- pkgs/development/libraries/dbus/default.nix | 2 +- pkgs/development/libraries/epoxy/default.nix | 2 +- pkgs/development/libraries/exiv2/default.nix | 2 +- pkgs/development/libraries/expat/default.nix | 2 +- pkgs/development/libraries/ffmpeg/generic.nix | 2 +- pkgs/development/libraries/fftw/default.nix | 2 +- .../development/libraries/fontconfig/2.10.nix | 2 +- .../libraries/fontconfig/default.nix | 2 +- .../libraries/freetype/default.nix | 2 +- pkgs/development/libraries/gd/default.nix | 2 +- .../libraries/gdk-pixbuf/default.nix | 2 +- .../libraries/glib-networking/default.nix | 2 +- pkgs/development/libraries/glib/default.nix | 2 +- pkgs/development/libraries/glibc/common.nix | 2 +- pkgs/development/libraries/glibmm/default.nix | 2 +- pkgs/development/libraries/gmime/default.nix | 2 +- pkgs/development/libraries/gmp/6.x.nix | 2 +- pkgs/development/libraries/gnutls/generic.nix | 2 +- .../gobject-introspection/default.nix | 2 +- pkgs/development/libraries/gpgme/default.nix | 2 +- .../libraries/gstreamer/bad/default.nix | 2 +- .../libraries/gstreamer/base/default.nix | 2 +- .../libraries/gstreamer/core/default.nix | 2 +- .../libraries/gstreamer/ges/default.nix | 2 +- .../libraries/gstreamer/gnonlin/default.nix | 2 +- .../libraries/gstreamer/good/default.nix | 2 +- .../gstreamer/gstreamermm/default.nix | 2 +- .../libraries/gstreamer/libav/default.nix | 2 +- .../libraries/gstreamer/python/default.nix | 2 +- .../gstreamer/qt-gstreamer/default.nix | 2 +- .../libraries/gstreamer/ugly/default.nix | 2 +- .../libraries/gstreamer/vaapi/default.nix | 2 +- .../libraries/gstreamer/validate/default.nix | 2 +- pkgs/development/libraries/gtk+/2.x.nix | 2 +- pkgs/development/libraries/gtk+/3.x.nix | 2 +- .../libraries/harfbuzz/default.nix | 2 +- .../libraries/hunspell/default.nix | 2 +- pkgs/development/libraries/icu/default.nix | 2 +- pkgs/development/libraries/jasper/default.nix | 2 +- pkgs/development/libraries/json-c/default.nix | 2 +- pkgs/development/libraries/lcms/default.nix | 2 +- pkgs/development/libraries/lcms2/default.nix | 2 +- pkgs/development/libraries/libao/default.nix | 2 +- .../libraries/libassuan/default.nix | 2 +- pkgs/development/libraries/libav/default.nix | 2 +- .../development/libraries/libcaca/default.nix | 2 +- pkgs/development/libraries/libdrm/default.nix | 2 +- .../development/libraries/libdynd/default.nix | 2 +- .../libraries/libevent/default.nix | 2 +- pkgs/development/libraries/libffi/default.nix | 2 +- .../libraries/libgcrypt/default.nix | 2 +- .../libraries/libgnome-keyring/default.nix | 2 +- .../libraries/libgpg-error/default.nix | 2 +- pkgs/development/libraries/libidn/default.nix | 2 +- .../libraries/libinput/default.nix | 2 +- .../libraries/libjpeg-drop/default.nix | 2 +- .../libraries/libjpeg-turbo/default.nix | 2 +- .../development/libraries/libjpeg/default.nix | 2 +- .../development/libraries/libmbim/default.nix | 2 +- .../libraries/libmicrohttpd/default.nix | 2 +- pkgs/development/libraries/libmng/default.nix | 2 +- .../libraries/libmp3splt/default.nix | 2 +- pkgs/development/libraries/libmtp/default.nix | 2 +- pkgs/development/libraries/libogg/default.nix | 2 +- pkgs/development/libraries/liboil/default.nix | 2 +- .../development/libraries/libopus/default.nix | 2 +- pkgs/development/libraries/libpng/12.nix | 2 +- pkgs/development/libraries/libpng/default.nix | 2 +- .../libraries/libproxy/default.nix | 2 +- pkgs/development/libraries/libqmi/default.nix | 2 +- pkgs/development/libraries/libressl/2.3.nix | 2 +- pkgs/development/libraries/libressl/2.4.nix | 2 +- .../development/libraries/librsvg/default.nix | 2 +- .../libraries/libsamplerate/default.nix | 2 +- .../libraries/libsndfile/default.nix | 2 +- .../libraries/libsodium/default.nix | 2 +- .../development/libraries/libsoup/default.nix | 2 +- pkgs/development/libraries/libssh/default.nix | 2 +- .../development/libraries/libssh2/default.nix | 2 +- .../libraries/libtasn1/default.nix | 2 +- .../libraries/libtheora/default.nix | 2 +- .../development/libraries/libtiff/default.nix | 2 +- .../libraries/libunwind/default.nix | 2 +- pkgs/development/libraries/libusb/default.nix | 2 +- .../development/libraries/libusb1/default.nix | 2 +- pkgs/development/libraries/libva/default.nix | 2 +- .../libraries/libvdpau/default.nix | 2 +- .../libraries/libvorbis/default.nix | 2 +- pkgs/development/libraries/libvpx/default.nix | 2 +- pkgs/development/libraries/libvpx/git.nix | 2 +- pkgs/development/libraries/libwnck/3.x.nix | 2 +- .../development/libraries/libwnck/default.nix | 2 +- .../libraries/libxkbcommon/default.nix | 2 +- .../libraries/libxklavier/default.nix | 2 +- .../development/libraries/libxml2/default.nix | 2 +- .../development/libraries/libxslt/default.nix | 2 +- pkgs/development/libraries/libzip/default.nix | 2 +- pkgs/development/libraries/mapnik/default.nix | 2 +- pkgs/development/libraries/mesa/default.nix | 2 +- pkgs/development/libraries/ming/default.nix | 2 +- pkgs/development/libraries/mpfr/default.nix | 2 +- .../development/libraries/ncurses/default.nix | 2 +- pkgs/development/libraries/nettle/generic.nix | 2 +- .../development/libraries/nghttp2/default.nix | 2 +- pkgs/development/libraries/nspr/default.nix | 2 +- pkgs/development/libraries/nss/default.nix | 2 +- .../libraries/openjpeg/generic.nix | 2 +- .../libraries/openldap/default.nix | 2 +- pkgs/development/libraries/openssl/chacha.nix | 2 +- .../development/libraries/openssl/default.nix | 2 +- .../libraries/osm-gps-map/default.nix | 2 +- .../development/libraries/p11-kit/default.nix | 2 +- pkgs/development/libraries/pango/default.nix | 2 +- pkgs/development/libraries/pcre/default.nix | 2 +- .../libraries/polkit-qt-1/qt-5.nix | 2 +- pkgs/development/libraries/polkit/default.nix | 2 +- .../development/libraries/poppler/default.nix | 2 +- .../libraries/qt-5/5.5/qtbase/default.nix | 2 +- .../libraries/qt-5/5.6/qtbase/default.nix | 2 +- .../libraries/qt-5/5.7/qtbase/default.nix | 2 +- pkgs/development/libraries/readline/6.3.nix | 2 +- .../libraries/schroedinger/default.nix | 2 +- pkgs/development/libraries/slang/default.nix | 2 +- pkgs/development/libraries/speex/default.nix | 2 +- .../libraries/speexdsp/default.nix | 2 +- pkgs/development/libraries/sqlite/default.nix | 2 +- .../development/libraries/wolfssl/default.nix | 2 +- .../libraries/xcb-util-cursor/HEAD.nix | 2 +- pkgs/development/libraries/zlib/default.nix | 2 +- .../tools/misc/autogen/default.nix | 2 +- pkgs/misc/cups/default.nix | 2 +- pkgs/os-specific/linux/alsa-lib/default.nix | 2 +- pkgs/os-specific/linux/bluez/bluez5.nix | 2 +- pkgs/os-specific/linux/libcap/default.nix | 2 +- pkgs/os-specific/linux/libnl/default.nix | 2 +- pkgs/os-specific/linux/systemd/libudev.nix | 2 +- pkgs/os-specific/linux/v4l-utils/default.nix | 2 +- pkgs/servers/computing/slurm/default.nix | 2 +- pkgs/servers/dns/bind/default.nix | 2 +- pkgs/servers/http/apache-httpd/2.2.nix | 2 +- pkgs/servers/http/apache-httpd/2.4.nix | 2 +- pkgs/servers/pulseaudio/default.nix | 2 +- pkgs/servers/sql/mariadb/default.nix | 2 +- pkgs/servers/x11/xorg/overrides.nix | 72 +++++++++---------- pkgs/tools/compression/bzip2/default.nix | 2 +- pkgs/tools/compression/xz/default.nix | 2 +- pkgs/tools/filesystems/xfsprogs/default.nix | 2 +- pkgs/tools/graphics/pfstools/default.nix | 2 +- pkgs/tools/graphics/pstoedit/default.nix | 2 +- pkgs/tools/networking/curl/default.nix | 2 +- pkgs/tools/package-management/nix/default.nix | 2 +- pkgs/tools/security/tcpcrypt/default.nix | 2 +- pkgs/tools/system/awstats/default.nix | 2 +- 192 files changed, 227 insertions(+), 227 deletions(-) diff --git a/pkgs/applications/audio/flac/default.nix b/pkgs/applications/audio/flac/default.nix index 80e4e49fb1830..e571758fabb34 100644 --- a/pkgs/applications/audio/flac/default.nix +++ b/pkgs/applications/audio/flac/default.nix @@ -12,7 +12,7 @@ stdenv.mkDerivation rec { #doCheck = true; # takes lots of time - outputs = [ "dev" "out" "bin" "doc" ]; + outputs = [ "bin" "dev" "out" "doc" ]; meta = with stdenv.lib; { homepage = http://xiph.org/flac/; diff --git a/pkgs/applications/graphics/ImageMagick/default.nix b/pkgs/applications/graphics/ImageMagick/default.nix index 793940a88784a..6d507c5d227a6 100644 --- a/pkgs/applications/graphics/ImageMagick/default.nix +++ b/pkgs/applications/graphics/ImageMagick/default.nix @@ -43,7 +43,7 @@ stdenv.mkDerivation rec { patches = [ ./imagetragick.patch ] ++ cfg.patches; - outputs = [ "dev" "out" "doc" ]; # bin/ isn't really big + outputs = [ "out" "dev" "doc" ]; # bin/ isn't really big outputMan = "out"; # it's tiny enableParallelBuilding = true; diff --git a/pkgs/applications/misc/djvulibre/default.nix b/pkgs/applications/misc/djvulibre/default.nix index 910b24358b484..093382e13e6a2 100644 --- a/pkgs/applications/misc/djvulibre/default.nix +++ b/pkgs/applications/misc/djvulibre/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "0psh3zl9dj4n4r3lx25390nx34xz0bg0ql48zdskhq354ljni5p6"; }; - outputs = [ "dev" "out" "bin" ]; + outputs = [ "bin" "dev" "out" ]; buildInputs = [ libjpeg libtiff librsvg ] ++ libintlOrEmpty; diff --git a/pkgs/applications/misc/mupdf/default.nix b/pkgs/applications/misc/mupdf/default.nix index e6a5156067592..ac5fb50859948 100644 --- a/pkgs/applications/misc/mupdf/default.nix +++ b/pkgs/applications/misc/mupdf/default.nix @@ -30,7 +30,7 @@ stdenv.mkDerivation rec { makeFlags = [ "prefix=$(out)" ]; nativeBuildInputs = [ pkgconfig ]; buildInputs = [ zlib libX11 libXcursor libXext harfbuzz mesa libXrandr libXinerama freetype libjpeg jbig2dec openjpeg ]; - outputs = [ "out" "bin" "doc" ]; + outputs = [ "bin" "out" "doc" ]; preConfigure = '' # Don't remove mujs because upstream version is incompatible diff --git a/pkgs/applications/version-management/subversion/default.nix b/pkgs/applications/version-management/subversion/default.nix index fcd95a1acfa50..223a10fb983cc 100644 --- a/pkgs/applications/version-management/subversion/default.nix +++ b/pkgs/applications/version-management/subversion/default.nix @@ -27,7 +27,7 @@ let }; # Can't do separate $lib and $bin, as libs reference bins - outputs = [ "dev" "out" "man" ]; + outputs = [ "out" "dev" "man" ]; buildInputs = [ zlib apr aprutil sqlite ] ++ stdenv.lib.optional httpSupport serf diff --git a/pkgs/desktops/gnome-2/platform/GConf/default.nix b/pkgs/desktops/gnome-2/platform/GConf/default.nix index 30f92e4e054e2..b848296d5f0fe 100644 --- a/pkgs/desktops/gnome-2/platform/GConf/default.nix +++ b/pkgs/desktops/gnome-2/platform/GConf/default.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation { sha256 = "09ch709cb9fniwc4221xgkq0jf0x0lxs814sqig8p2dcll0llvzk"; }; - outputs = [ "dev" "out" "doc" ]; + outputs = [ "out" "dev" "doc" ]; buildInputs = [ ORBit2 dbus_libs dbus_glib libxml2 ] # polkit requires pam, which requires shadow.h, which is not available on diff --git a/pkgs/desktops/gnome-2/platform/ORBit2/default.nix b/pkgs/desktops/gnome-2/platform/ORBit2/default.nix index 27233f4993cd9..b8a41a529b051 100644 --- a/pkgs/desktops/gnome-2/platform/ORBit2/default.nix +++ b/pkgs/desktops/gnome-2/platform/ORBit2/default.nix @@ -12,7 +12,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig ]; propagatedBuildInputs = [ glib libIDL ] ++ libintlOrEmpty; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; preBuild = '' sed 's/-DG_DISABLE_DEPRECATED//' -i linc2/src/Makefile diff --git a/pkgs/desktops/gnome-2/platform/gnome-vfs/default.nix b/pkgs/desktops/gnome-2/platform/gnome-vfs/default.nix index 340c14e914f60..76c2f8c0d4095 100644 --- a/pkgs/desktops/gnome-2/platform/gnome-vfs/default.nix +++ b/pkgs/desktops/gnome-2/platform/gnome-vfs/default.nix @@ -10,7 +10,7 @@ stdenv.mkDerivation rec { sha256 = "1ajg8jb8k3snxc7rrgczlh8daxkjidmcv3zr9w809sq4p2sn9pk2"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; buildInputs = [ pkgconfig libxml2 bzip2 openssl samba dbus_glib fam cdparanoia diff --git a/pkgs/desktops/gnome-2/platform/libbonobo/default.nix b/pkgs/desktops/gnome-2/platform/libbonobo/default.nix index af1960af36ac3..d93ef73ca986d 100644 --- a/pkgs/desktops/gnome-2/platform/libbonobo/default.nix +++ b/pkgs/desktops/gnome-2/platform/libbonobo/default.nix @@ -10,7 +10,7 @@ stdenv.mkDerivation rec { sha256 = "0swp4kk6x7hy1rvd1f9jba31lvfc6qvafkvbpg9h0r34fzrd8q4i"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; preConfigure = # still using stuff deprecated in new glib versions "sed 's/-DG_DISABLE_DEPRECATED//g' -i configure activation-server/Makefile.in"; diff --git a/pkgs/desktops/gnome-2/platform/libglade/default.nix b/pkgs/desktops/gnome-2/platform/libglade/default.nix index ce1da95762ff9..a20c419fe0fbc 100644 --- a/pkgs/desktops/gnome-2/platform/libglade/default.nix +++ b/pkgs/desktops/gnome-2/platform/libglade/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation { sha256 = "1v2x2s04jry4gpabws92i0wq2ghd47yr5n9nhgnkd7c38xv1wdk4"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; buildInputs = [ pkgconfig gtk python gettext ]; diff --git a/pkgs/desktops/gnome-2/platform/libgnome/default.nix b/pkgs/desktops/gnome-2/platform/libgnome/default.nix index d0a4d1787c6cb..1bffa6211dca0 100644 --- a/pkgs/desktops/gnome-2/platform/libgnome/default.nix +++ b/pkgs/desktops/gnome-2/platform/libgnome/default.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { sha256 = "197pnq8y0knqjhm2fg4j6hbqqm3qfzfnd0irhwxpk1b4hqb3kimj"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; patches = [ ./new-glib.patch ]; diff --git a/pkgs/desktops/gnome-2/platform/libgnomecanvas/default.nix b/pkgs/desktops/gnome-2/platform/libgnomecanvas/default.nix index 5b5e7af5431a5..2be8c29e4931a 100644 --- a/pkgs/desktops/gnome-2/platform/libgnomecanvas/default.nix +++ b/pkgs/desktops/gnome-2/platform/libgnomecanvas/default.nix @@ -9,7 +9,7 @@ stdenv.mkDerivation rec { sha256 = "0h6xvswbqspdifnyh5pm2pqq55yp3kn6yrswq7ay9z49hkh7i6w5"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; buildInputs = [ libglade ]; nativeBuildInputs = [ pkgconfig intltool ]; diff --git a/pkgs/desktops/gnome-3/3.20/core/libcroco/default.nix b/pkgs/desktops/gnome-3/3.20/core/libcroco/default.nix index 563a18e510f13..a4c46ef85d4c9 100644 --- a/pkgs/desktops/gnome-3/3.20/core/libcroco/default.nix +++ b/pkgs/desktops/gnome-3/3.20/core/libcroco/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "0mm0wldbi40am5qn0nv7psisbg01k42rwzjxl3gv11l5jj554aqk"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; outputBin = "dev"; configureFlags = stdenv.lib.optional stdenv.isDarwin "--disable-Bsymbolic"; diff --git a/pkgs/desktops/xfce/core/exo.nix b/pkgs/desktops/xfce/core/exo.nix index 4d3f09105433c..8b1797e334169 100644 --- a/pkgs/desktops/xfce/core/exo.nix +++ b/pkgs/desktops/xfce/core/exo.nix @@ -12,7 +12,7 @@ stdenv.mkDerivation rec { }; name = "${p_name}-${ver_maj}.${ver_min}"; - outputs = [ "dev" "out" "docdev" ]; + outputs = [ "out" "dev" "docdev" ]; # lib/xfce4/exo-1/exo-compose-mail-1 is a perl script :-/ nativeBuildInputs = [ pkgconfig intltool ]; diff --git a/pkgs/desktops/xfce/core/garcon.nix b/pkgs/desktops/xfce/core/garcon.nix index 4fffc9e1ec9f8..67c92dae5e880 100644 --- a/pkgs/desktops/xfce/core/garcon.nix +++ b/pkgs/desktops/xfce/core/garcon.nix @@ -12,7 +12,7 @@ stdenv.mkDerivation rec { sha256 = "0wm9pjbwq53s3n3nwvsyf0q8lbmhiy2ln3bn5ncihr9vf5cwhzbq"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; buildInputs = [ pkgconfig intltool glib libxfce4util gtk libxfce4ui ]; diff --git a/pkgs/desktops/xfce/core/libxfce4ui.nix b/pkgs/desktops/xfce/core/libxfce4ui.nix index 09b400cfceb87..bb9babd6e190f 100644 --- a/pkgs/desktops/xfce/core/libxfce4ui.nix +++ b/pkgs/desktops/xfce/core/libxfce4ui.nix @@ -16,7 +16,7 @@ stdenv.mkDerivation rec { sha256 = "3d619811bfbe7478bb984c16543d980cadd08586365a7bc25e59e3ca6384ff43"; }; - outputs = [ "dev" "out" "docdev" ]; + outputs = [ "out" "dev" "docdev" ]; nativeBuildInputs = [ pkgconfig intltool ]; diff --git a/pkgs/desktops/xfce/core/libxfce4util.nix b/pkgs/desktops/xfce/core/libxfce4util.nix index cab904f551070..1ee8929ec4cbb 100644 --- a/pkgs/desktops/xfce/core/libxfce4util.nix +++ b/pkgs/desktops/xfce/core/libxfce4util.nix @@ -12,7 +12,7 @@ stdenv.mkDerivation rec { sha256 = "07c8r3xwx5is298zk77m3r784gmr5y4mh8bbca5zdjqk5vxdwsw7"; }; - outputs = [ "dev" "out" "docdev" ]; + outputs = [ "out" "dev" "docdev" ]; buildInputs = [ pkgconfig glib intltool ]; diff --git a/pkgs/desktops/xfce/core/libxfcegui4.nix b/pkgs/desktops/xfce/core/libxfcegui4.nix index bab89e7d9ec59..0182a7ffd4e62 100644 --- a/pkgs/desktops/xfce/core/libxfcegui4.nix +++ b/pkgs/desktops/xfce/core/libxfcegui4.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { sha256 = "0cs5im0ib0cmr1lhr5765yliqjfyxvk4kwy8h1l8bn3mj6bzk0ib"; }; - outputs = [ "dev" "out" "docdev" ]; + outputs = [ "out" "dev" "docdev" ]; #TODO: gladeui # By default, libxfcegui4 tries to install into libglade's prefix. diff --git a/pkgs/desktops/xfce/core/tumbler.nix b/pkgs/desktops/xfce/core/tumbler.nix index 132003d3fc920..21744897cdbfb 100644 --- a/pkgs/desktops/xfce/core/tumbler.nix +++ b/pkgs/desktops/xfce/core/tumbler.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { sha256 = "0wvip28gm2w061hn84zp2q4dv947ihylrppahn4cjspzff935zfh"; }; - outputs = [ "dev" "out" "docdev" ]; + outputs = [ "out" "dev" "docdev" ]; buildInputs = [ pkgconfig intltool dbus_glib gdk_pixbuf curl freetype diff --git a/pkgs/desktops/xfce/core/xfce4-panel.nix b/pkgs/desktops/xfce/core/xfce4-panel.nix index 816bbc05735f2..be9b592cf72ef 100644 --- a/pkgs/desktops/xfce/core/xfce4-panel.nix +++ b/pkgs/desktops/xfce/core/xfce4-panel.nix @@ -20,7 +20,7 @@ stdenv.mkDerivation rec { patches = [ ./xfce4-panel-datadir.patch ]; patchFlags = "-p1"; - outputs = [ "dev" "out" "docdev" ]; + outputs = [ "out" "dev" "docdev" ]; buildInputs = [ pkgconfig intltool gtk libxfce4util exo libwnck diff --git a/pkgs/desktops/xfce/core/xfconf.nix b/pkgs/desktops/xfce/core/xfconf.nix index 13902fa4428c7..6817c0e49cc1d 100644 --- a/pkgs/desktops/xfce/core/xfconf.nix +++ b/pkgs/desktops/xfce/core/xfconf.nix @@ -12,7 +12,7 @@ stdenv.mkDerivation rec { sha256 = "0mmi0g30aln3x98y5p507g17pipq0dj0bwypshan8cq5hkmfl44r"; }; - outputs = [ "dev" "out" "docdev" ]; + outputs = [ "out" "dev" "docdev" ]; #TODO: no perl bingings yet (ExtUtils::Depends, ExtUtils::PkgConfig, Glib) buildInputs = [ pkgconfig intltool glib libxfce4util ]; diff --git a/pkgs/development/compilers/orc/default.nix b/pkgs/development/compilers/orc/default.nix index 057b51ce80c39..83a6e4482b89d 100644 --- a/pkgs/development/compilers/orc/default.nix +++ b/pkgs/development/compilers/orc/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "1lak3hyvvb0w9avzmf0a8vayb7vqhj4m709q1czlhvgjb15dbcf1"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; outputBin = "dev"; # compilation tools postInstall = '' diff --git a/pkgs/development/compilers/terra/default.nix b/pkgs/development/compilers/terra/default.nix index 5abcf42efd985..f72dd4c99569b 100644 --- a/pkgs/development/compilers/terra/default.nix +++ b/pkgs/development/compilers/terra/default.nix @@ -19,7 +19,7 @@ stdenv.mkDerivation rec { sha256 = "1c2i9ih331304bh31c5gh94fx0qa49rsn70pvczvdfhi8pmcms6g"; }; - outputs = [ "dev" "out" "bin" "static" ]; + outputs = [ "bin" "dev" "out" "static" ]; postPatch = '' substituteInPlace Makefile --replace \ diff --git a/pkgs/development/compilers/tinycc/default.nix b/pkgs/development/compilers/tinycc/default.nix index 87e09e3231f29..446db73bacc1f 100644 --- a/pkgs/development/compilers/tinycc/default.nix +++ b/pkgs/development/compilers/tinycc/default.nix @@ -20,7 +20,7 @@ stdenv.mkDerivation rec { inherit sha256; }; - outputs = [ "dev" "out" "bin" ]; + outputs = [ "bin" "dev" "out" ]; nativeBuildInputs = [ perl texinfo ]; diff --git a/pkgs/development/interpreters/spidermonkey/17.0.nix b/pkgs/development/interpreters/spidermonkey/17.0.nix index 330d8e334acc2..d9cc7775d090d 100644 --- a/pkgs/development/interpreters/spidermonkey/17.0.nix +++ b/pkgs/development/interpreters/spidermonkey/17.0.nix @@ -9,7 +9,7 @@ stdenv.mkDerivation rec { sha256 = "1fig2wf4f10v43mqx67y68z6h77sy900d1w0pz9qarrqx57rc7ij"; }; - outputs = [ "dev" "out" "lib" ]; + outputs = [ "out" "dev" "lib" ]; propagatedBuildInputs = [ nspr ]; diff --git a/pkgs/development/interpreters/spidermonkey/24.2.nix b/pkgs/development/interpreters/spidermonkey/24.2.nix index 13257a3eb338d..d207fbd10704f 100644 --- a/pkgs/development/interpreters/spidermonkey/24.2.nix +++ b/pkgs/development/interpreters/spidermonkey/24.2.nix @@ -9,7 +9,7 @@ stdenv.mkDerivation rec { sha256 = "1n1phk8r3l8icqrrap4czplnylawa0ddc2cc4cgdz46x3lrkybz6"; }; - outputs = [ "dev" "out" "lib" ]; + outputs = [ "out" "dev" "lib" ]; propagatedBuildInputs = [ nspr ]; diff --git a/pkgs/development/libraries/SDL/default.nix b/pkgs/development/libraries/SDL/default.nix index ca0bbd6a01cfc..de699e2c6ac67 100644 --- a/pkgs/development/libraries/SDL/default.nix +++ b/pkgs/development/libraries/SDL/default.nix @@ -22,7 +22,7 @@ stdenv.mkDerivation rec { sha256 = "005d993xcac8236fpvd1iawkz4wqjybkpn8dbwaliqz5jfkidlyn"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; outputBin = "dev"; # sdl-config nativeBuildInputs = [ pkgconfig ]; diff --git a/pkgs/development/libraries/aalib/default.nix b/pkgs/development/libraries/aalib/default.nix index 0d69867272102..2615cac7b90c1 100644 --- a/pkgs/development/libraries/aalib/default.nix +++ b/pkgs/development/libraries/aalib/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation { sha256 = "1vkh19gb76agvh4h87ysbrgy82hrw88lnsvhynjf4vng629dmpgv"; }; - outputs = [ "dev" "out" "bin" "doc" ]; + outputs = [ "bin" "dev" "out" "doc" ]; setOutputFlags = false; # Doesn't support all the flags patches = stdenv.lib.optionals stdenv.isDarwin [ ./darwin.patch ]; diff --git a/pkgs/development/libraries/acl/default.nix b/pkgs/development/libraries/acl/default.nix index 29b31a8b492c2..b29a12e6f412a 100644 --- a/pkgs/development/libraries/acl/default.nix +++ b/pkgs/development/libraries/acl/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "08qd9s3wfhv0ajswsylnfwr5h0d7j9d4rgip855nrh400nxp940p"; }; - outputs = [ "dev" "out" "bin" "doc" ]; + outputs = [ "bin" "dev" "out" "doc" ]; nativeBuildInputs = [ gettext ]; buildInputs = [ attr ]; diff --git a/pkgs/development/libraries/apr-util/default.nix b/pkgs/development/libraries/apr-util/default.nix index b0d75d37e08f0..81e8a8a52f9f3 100644 --- a/pkgs/development/libraries/apr-util/default.nix +++ b/pkgs/development/libraries/apr-util/default.nix @@ -22,7 +22,7 @@ stdenv.mkDerivation rec { patches = optional stdenv.isFreeBSD ./include-static-dependencies.patch; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; outputBin = "dev"; buildInputs = optional stdenv.isFreeBSD autoreconfHook; diff --git a/pkgs/development/libraries/apr/default.nix b/pkgs/development/libraries/apr/default.nix index c6e505f43d231..329cd77ad267b 100644 --- a/pkgs/development/libraries/apr/default.nix +++ b/pkgs/development/libraries/apr/default.nix @@ -10,7 +10,7 @@ stdenv.mkDerivation rec { patches = stdenv.lib.optionals stdenv.isDarwin [ ./is-this-a-compiler-bug.patch ]; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; outputBin = "dev"; preConfigure = diff --git a/pkgs/development/libraries/at-spi2-core/default.nix b/pkgs/development/libraries/at-spi2-core/default.nix index 20e18747e67b1..52459f8537478 100644 --- a/pkgs/development/libraries/at-spi2-core/default.nix +++ b/pkgs/development/libraries/at-spi2-core/default.nix @@ -12,7 +12,7 @@ stdenv.mkDerivation rec { sha256 = "88a4de9d43139f13cca531b47b901bc1b56e0ab06ba899126644abd4ac16a143"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; buildInputs = [ python pkgconfig popt intltool dbus_glib diff --git a/pkgs/development/libraries/atk/default.nix b/pkgs/development/libraries/atk/default.nix index d75fd23530137..34d6f23699f7e 100644 --- a/pkgs/development/libraries/atk/default.nix +++ b/pkgs/development/libraries/atk/default.nix @@ -14,7 +14,7 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; buildInputs = libintlOrEmpty; diff --git a/pkgs/development/libraries/attr/default.nix b/pkgs/development/libraries/attr/default.nix index 2bb5b2d258070..7cab14a8e10c2 100644 --- a/pkgs/development/libraries/attr/default.nix +++ b/pkgs/development/libraries/attr/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "0nd8y0m6awc9ahv0ciiwf8gy54c8d3j51pw9xg7f7cn579jjyxr5"; }; - outputs = [ "dev" "out" "bin" "doc" ]; + outputs = [ "bin" "dev" "out" "doc" ]; nativeBuildInputs = [ gettext ]; diff --git a/pkgs/development/libraries/boehm-gc/default.nix b/pkgs/development/libraries/boehm-gc/default.nix index 4839bedd8bb06..b0eec4e130b6b 100644 --- a/pkgs/development/libraries/boehm-gc/default.nix +++ b/pkgs/development/libraries/boehm-gc/default.nix @@ -9,7 +9,7 @@ stdenv.mkDerivation rec { }; patches = if stdenv.isCygwin then [ ./cygwin.patch ] else null; - outputs = [ "dev" "out" "doc" ]; + outputs = [ "out" "dev" "doc" ]; configureFlags = [ "--enable-cplusplus" ] diff --git a/pkgs/development/libraries/boost/generic.nix b/pkgs/development/libraries/boost/generic.nix index f2da2624755ff..6adcce45d8086 100644 --- a/pkgs/development/libraries/boost/generic.nix +++ b/pkgs/development/libraries/boost/generic.nix @@ -162,7 +162,7 @@ stdenv.mkDerivation { postFixup = fixup; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; setOutputFlags = false; crossAttrs = rec { diff --git a/pkgs/development/libraries/cairo/default.nix b/pkgs/development/libraries/cairo/default.nix index 1f38f69eb0cee..b5a57adbe0e73 100644 --- a/pkgs/development/libraries/cairo/default.nix +++ b/pkgs/development/libraries/cairo/default.nix @@ -30,7 +30,7 @@ stdenv.mkDerivation rec { patches="$patches $(echo $infinality/*_cairo-iu/*.patch)" ''; - outputs = [ "dev" "out" "docdev" ]; + outputs = [ "out" "dev" "docdev" ]; outputBin = "dev"; # very small nativeBuildInputs = [ diff --git a/pkgs/development/libraries/cyrus-sasl/default.nix b/pkgs/development/libraries/cyrus-sasl/default.nix index 9573358a22f5d..b283ca2420190 100644 --- a/pkgs/development/libraries/cyrus-sasl/default.nix +++ b/pkgs/development/libraries/cyrus-sasl/default.nix @@ -9,7 +9,7 @@ stdenv.mkDerivation rec { sha256 = "1hvvbcsg21nlncbgs0cgn3iwlnb3vannzwsp6rwvnn9ba4v53g4g"; }; - outputs = [ "dev" "bin" "out" "man" "docdev" ]; + outputs = [ "bin" "dev" "out" "man" "docdev" ]; buildInputs = [ openssl db gettext kerberos ] diff --git a/pkgs/development/libraries/dbus-glib/default.nix b/pkgs/development/libraries/dbus-glib/default.nix index 3ee1edf519cdd..dc5a977821060 100644 --- a/pkgs/development/libraries/dbus-glib/default.nix +++ b/pkgs/development/libraries/dbus-glib/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "0in0i6v68ixcy0ip28i84hdczf10ykq9x682qgcvls6gdmq552dk"; }; - outputs = [ "dev" "out" "docdev" ]; + outputs = [ "out" "dev" "docdev" ]; outputBin = "dev"; nativeBuildInputs = [ pkgconfig gettext ]; diff --git a/pkgs/development/libraries/dbus/default.nix b/pkgs/development/libraries/dbus/default.nix index dd86ca540815a..4e6fa238bfbb2 100644 --- a/pkgs/development/libraries/dbus/default.nix +++ b/pkgs/development/libraries/dbus/default.nix @@ -32,7 +32,7 @@ self = stdenv.mkDerivation { --replace 'DBUS_DAEMONDIR"/dbus-daemon"' '"/run/current-system/sw/bin/dbus-daemon"' ''; - outputs = [ "dev" "out" "lib" "doc" ]; + outputs = [ "out" "dev" "lib" "doc" ]; nativeBuildInputs = [ pkgconfig ]; propagatedBuildInputs = [ expat ]; diff --git a/pkgs/development/libraries/epoxy/default.nix b/pkgs/development/libraries/epoxy/default.nix index 009624096605f..18ce05af07a8f 100644 --- a/pkgs/development/libraries/epoxy/default.nix +++ b/pkgs/development/libraries/epoxy/default.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { sha256 = "0dfkd4xbp7v5gwsf6qwaraz54yzizf3lj5ymyc0msjn0adq3j5yl"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; nativeBuildInputs = [ autoreconfHook pkgconfig utilmacros python ]; buildInputs = [ mesa libX11 ]; diff --git a/pkgs/development/libraries/exiv2/default.nix b/pkgs/development/libraries/exiv2/default.nix index af17c9ae0f0fe..a11be14df1090 100644 --- a/pkgs/development/libraries/exiv2/default.nix +++ b/pkgs/development/libraries/exiv2/default.nix @@ -9,7 +9,7 @@ stdenv.mkDerivation rec { }; postPatch = "patchShebangs ./src/svn_version.sh"; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; nativeBuildInputs = [ gettext ]; propagatedBuildInputs = [ zlib expat ]; diff --git a/pkgs/development/libraries/expat/default.nix b/pkgs/development/libraries/expat/default.nix index be5772798b4c8..1001afff0d48e 100644 --- a/pkgs/development/libraries/expat/default.nix +++ b/pkgs/development/libraries/expat/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "1zq4lnwjlw8s9mmachwfvfjf2x3lk24jm41746ykhdcvs7r0zrfr"; }; - outputs = [ "dev" "out" ]; # TODO: fix referrers + outputs = [ "out" "dev" ]; # TODO: fix referrers outputBin = "dev"; configureFlags = stdenv.lib.optional stdenv.isFreeBSD "--with-pic"; diff --git a/pkgs/development/libraries/ffmpeg/generic.nix b/pkgs/development/libraries/ffmpeg/generic.nix index 33ee2f80a6ed9..f6c40fa5dd008 100644 --- a/pkgs/development/libraries/ffmpeg/generic.nix +++ b/pkgs/development/libraries/ffmpeg/generic.nix @@ -72,7 +72,7 @@ stdenv.mkDerivation rec { postPatch = ''patchShebangs .''; inherit patches; - outputs = [ "dev" "out" "bin" ] + outputs = [ "bin" "dev" "out" ] ++ optional (reqMin "1.0") "doc" ; # just dev-doc setOutputFlags = false; # doesn't accept all and stores configureFlags in libs! diff --git a/pkgs/development/libraries/fftw/default.nix b/pkgs/development/libraries/fftw/default.nix index 6e92f2bd38452..e6c55ed157558 100644 --- a/pkgs/development/libraries/fftw/default.nix +++ b/pkgs/development/libraries/fftw/default.nix @@ -14,7 +14,7 @@ stdenv.mkDerivation rec { sha256 = "1kwbx92ps0r7s2mqy7lxbxanslxdzj7dp7r7gmdkzv1j8yqf3kwf"; }; - outputs = [ "dev" "out" "doc" ]; # it's dev-doc only + outputs = [ "out" "dev" "doc" ]; # it's dev-doc only outputBin = "dev"; # fftw-wisdom configureFlags = diff --git a/pkgs/development/libraries/fontconfig/2.10.nix b/pkgs/development/libraries/fontconfig/2.10.nix index fea9efde1cfd2..2705339adbfb1 100644 --- a/pkgs/development/libraries/fontconfig/2.10.nix +++ b/pkgs/development/libraries/fontconfig/2.10.nix @@ -16,7 +16,7 @@ stdenv.mkDerivation rec { } ; - outputs = [ "dev" "lib" "bin" "out" ]; # $out contains all the config + outputs = [ "bin" "dev" "lib" "out" ]; # $out contains all the config propagatedBuildInputs = [ freetype ]; buildInputs = [ pkgconfig expat ]; diff --git a/pkgs/development/libraries/fontconfig/default.nix b/pkgs/development/libraries/fontconfig/default.nix index 74048afe731e5..fa418af56016c 100644 --- a/pkgs/development/libraries/fontconfig/default.nix +++ b/pkgs/development/libraries/fontconfig/default.nix @@ -36,7 +36,7 @@ stdenv.mkDerivation rec { }) ]; - outputs = [ "dev" "lib" "bin" "out" ]; # $out contains all the config + outputs = [ "bin" "dev" "lib" "out" ]; # $out contains all the config propagatedBuildInputs = [ freetype ]; buildInputs = [ pkgconfig expat ]; diff --git a/pkgs/development/libraries/freetype/default.nix b/pkgs/development/libraries/freetype/default.nix index 8ef51172f9484..adf48df2494ec 100644 --- a/pkgs/development/libraries/freetype/default.nix +++ b/pkgs/development/libraries/freetype/default.nix @@ -51,7 +51,7 @@ stdenv.mkDerivation rec { patches="$patches $(ls ${infinality}/*_freetype2-iu/*-infinality-*.patch)" ''; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; propagatedBuildInputs = [ zlib bzip2 libpng ]; # needed when linking against freetype # dependence on harfbuzz is looser than the reverse dependence diff --git a/pkgs/development/libraries/gd/default.nix b/pkgs/development/libraries/gd/default.nix index 06da5d4264ded..724888b3b8246 100644 --- a/pkgs/development/libraries/gd/default.nix +++ b/pkgs/development/libraries/gd/default.nix @@ -29,7 +29,7 @@ stdenv.mkDerivation rec { buildInputs = [ zlib fontconfig freetype ]; propagatedBuildInputs = [ libpng libjpeg libwebp libtiff libXpm ]; - outputs = [ "dev" "out" "bin" ]; + outputs = [ "bin" "dev" "out" ]; postFixup = ''moveToOutput "bin/gdlib-config" $dev''; diff --git a/pkgs/development/libraries/gdk-pixbuf/default.nix b/pkgs/development/libraries/gdk-pixbuf/default.nix index 1487d92dada00..fc03b7d7a2d64 100644 --- a/pkgs/development/libraries/gdk-pixbuf/default.nix +++ b/pkgs/development/libraries/gdk-pixbuf/default.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { sha256 = "0yc8indbl3hf18z6x6kjg59xp9sngm1d8vmz4c7bs6g27qw5npnm"; }; - outputs = [ "dev" "out" "docdev" ]; + outputs = [ "out" "dev" "docdev" ]; outputBin = "dev"; setupHook = ./setup-hook.sh; diff --git a/pkgs/development/libraries/glib-networking/default.nix b/pkgs/development/libraries/glib-networking/default.nix index fc4707aedb75b..5c7b3123cb6fa 100644 --- a/pkgs/development/libraries/glib-networking/default.nix +++ b/pkgs/development/libraries/glib-networking/default.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { sha256 = "1cchmi08jpjypgmm9i7xzh5qfg2q5k61kry9ns8mhw3z44a440ym"; }; - outputs = [ "dev" "out" ]; # to deal with propagatedBuildInputs + outputs = [ "out" "dev" ]; # to deal with propagatedBuildInputs configureFlags = "--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt"; diff --git a/pkgs/development/libraries/glib/default.nix b/pkgs/development/libraries/glib/default.nix index e82b4385a9c5b..1d8d1ea08aadd 100644 --- a/pkgs/development/libraries/glib/default.nix +++ b/pkgs/development/libraries/glib/default.nix @@ -53,7 +53,7 @@ stdenv.mkDerivation rec { patches = optional stdenv.isDarwin ./darwin-compilation.patch ++ optional doCheck ./skip-timer-test.patch; - outputs = [ "dev" "out" "docdev" ]; + outputs = [ "out" "dev" "docdev" ]; outputBin = "dev"; setupHook = ./setup-hook.sh; diff --git a/pkgs/development/libraries/glibc/common.nix b/pkgs/development/libraries/glibc/common.nix index 3ee9d2289acdd..e079721271bcd 100644 --- a/pkgs/development/libraries/glibc/common.nix +++ b/pkgs/development/libraries/glibc/common.nix @@ -110,7 +110,7 @@ stdenv.mkDerivation ({ installFlags = [ "sysconfdir=$(out)/etc" ]; - outputs = [ "dev" "out" "bin" "static" ]; + outputs = [ "bin" "dev" "out" "static" ]; buildInputs = lib.optionals (cross != null) [ gccCross ] ++ lib.optionals withGd [ gd libpng ]; diff --git a/pkgs/development/libraries/glibmm/default.nix b/pkgs/development/libraries/glibmm/default.nix index e96665dbccb4f..ba26a9a58515e 100644 --- a/pkgs/development/libraries/glibmm/default.nix +++ b/pkgs/development/libraries/glibmm/default.nix @@ -12,7 +12,7 @@ stdenv.mkDerivation rec { sha256 = "1pvw2mrm03p51p03179rb6fk9p42iykkwj1jcdv7jr265xymy8nw"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; nativeBuildInputs = [ pkgconfig gnum4 ]; propagatedBuildInputs = [ glib libsigcxx ]; diff --git a/pkgs/development/libraries/gmime/default.nix b/pkgs/development/libraries/gmime/default.nix index c9e78a9d56c0b..4239b4458b8fe 100644 --- a/pkgs/development/libraries/gmime/default.nix +++ b/pkgs/development/libraries/gmime/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "0rfzbgsh8ira5p76kdghygl5i3fvmmx4wbw5rp7f8ajc4vxp18g0"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; nativeBuildInputs = [ pkgconfig ]; propagatedBuildInputs = [ glib zlib libgpgerror ]; diff --git a/pkgs/development/libraries/gmp/6.x.nix b/pkgs/development/libraries/gmp/6.x.nix index 32009406a7381..f40885c860a63 100644 --- a/pkgs/development/libraries/gmp/6.x.nix +++ b/pkgs/development/libraries/gmp/6.x.nix @@ -13,7 +13,7 @@ let self = stdenv.mkDerivation rec { #outputs TODO: split $cxx due to libstdc++ dependency; maybe port to gmp5; # maybe let ghc use a version with *.so shared with rest of nixpkgs and *.a added # - see #5855 for related discussion - outputs = [ "dev" "out" "info" ]; + outputs = [ "out" "dev" "info" ]; passthru.static = self.out; nativeBuildInputs = [ m4 ]; diff --git a/pkgs/development/libraries/gnutls/generic.nix b/pkgs/development/libraries/gnutls/generic.nix index 8d3ef3f4c777c..f13e1fdc81cdf 100644 --- a/pkgs/development/libraries/gnutls/generic.nix +++ b/pkgs/development/libraries/gnutls/generic.nix @@ -17,7 +17,7 @@ stdenv.mkDerivation { inherit src patches; - outputs = [ "dev" "out" "bin" "man" "docdev" ]; + outputs = [ "bin" "dev" "out" "man" "docdev" ]; outputInfo = "docdev"; postPatch = lib.optionalString (lib.versionAtLeast version "3.4") '' diff --git a/pkgs/development/libraries/gobject-introspection/default.nix b/pkgs/development/libraries/gobject-introspection/default.nix index 0b48ef076b1f2..57c42ee21efeb 100644 --- a/pkgs/development/libraries/gobject-introspection/default.nix +++ b/pkgs/development/libraries/gobject-introspection/default.nix @@ -19,7 +19,7 @@ stdenv.mkDerivation rec { sha256 = "0xsqwxhfqzr79av89mg766kxpb2i41bd0vwspk01xjdzrnn5l9zs"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; outputBin = "dev"; outputMan = "dev"; # tiny pages diff --git a/pkgs/development/libraries/gpgme/default.nix b/pkgs/development/libraries/gpgme/default.nix index c60311423233f..53acdfed3ba2b 100644 --- a/pkgs/development/libraries/gpgme/default.nix +++ b/pkgs/development/libraries/gpgme/default.nix @@ -16,7 +16,7 @@ stdenv.mkDerivation rec { sha256 = "17892sclz3yg45wbyqqrzzpq3l0icbnfl28f101b3062g8cy97dh"; }; - outputs = [ "dev" "out" "info" ]; + outputs = [ "out" "dev" "info" ]; outputBin = "dev"; # gpgme-config; not so sure about gpgme-tool propagatedBuildInputs = [ libgpgerror glib libassuan pth ]; diff --git a/pkgs/development/libraries/gstreamer/bad/default.nix b/pkgs/development/libraries/gstreamer/bad/default.nix index ffe21d4379220..de421df127f7c 100644 --- a/pkgs/development/libraries/gstreamer/bad/default.nix +++ b/pkgs/development/libraries/gstreamer/bad/default.nix @@ -34,7 +34,7 @@ stdenv.mkDerivation rec { sha256 = "d7995317530c8773ec088f94d9320909d41da61996b801ebacce9a56af493f97"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; nativeBuildInputs = [ pkgconfig python ]; diff --git a/pkgs/development/libraries/gstreamer/base/default.nix b/pkgs/development/libraries/gstreamer/base/default.nix index 76f2662ec43c7..00aa893bd33eb 100644 --- a/pkgs/development/libraries/gstreamer/base/default.nix +++ b/pkgs/development/libraries/gstreamer/base/default.nix @@ -18,7 +18,7 @@ stdenv.mkDerivation rec { sha256 = "9d7109c8fb0a5dec8edb17b0053c59a46aba7ddf48dc48ea822ebbbd4339d38d"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; nativeBuildInputs = [ pkgconfig python gobjectIntrospection diff --git a/pkgs/development/libraries/gstreamer/core/default.nix b/pkgs/development/libraries/gstreamer/core/default.nix index 43aec752054f0..da15755355d39 100644 --- a/pkgs/development/libraries/gstreamer/core/default.nix +++ b/pkgs/development/libraries/gstreamer/core/default.nix @@ -18,7 +18,7 @@ stdenv.mkDerivation rec { sha256 = "9dbebe079c2ab2004ef7f2649fa317cabea1feb4fb5605c24d40744b90918341"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; outputBin = "dev"; nativeBuildInputs = [ diff --git a/pkgs/development/libraries/gstreamer/ges/default.nix b/pkgs/development/libraries/gstreamer/ges/default.nix index 836bcb6ce6685..5f60b9c03a311 100644 --- a/pkgs/development/libraries/gstreamer/ges/default.nix +++ b/pkgs/development/libraries/gstreamer/ges/default.nix @@ -17,7 +17,7 @@ stdenv.mkDerivation rec { sha256 = "a1d57ff9461407cca1f6e7a9f31a5bdb73f73f33c488a3e3318b27e10a4332ae"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; nativeBuildInputs = [ pkgconfig python gobjectIntrospection flex perl ]; diff --git a/pkgs/development/libraries/gstreamer/gnonlin/default.nix b/pkgs/development/libraries/gstreamer/gnonlin/default.nix index db29413476f68..90d4ec458a934 100644 --- a/pkgs/development/libraries/gstreamer/gnonlin/default.nix +++ b/pkgs/development/libraries/gstreamer/gnonlin/default.nix @@ -22,7 +22,7 @@ stdenv.mkDerivation rec { sha256 = "0zv60rq2h736a6fivd3a3wp59dj1jar7b2vwzykahvl168b7wrid"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; nativeBuildInputs = [ pkgconfig ]; diff --git a/pkgs/development/libraries/gstreamer/good/default.nix b/pkgs/development/libraries/gstreamer/good/default.nix index 1bd80cfa1c7bf..cf96eacd31819 100644 --- a/pkgs/development/libraries/gstreamer/good/default.nix +++ b/pkgs/development/libraries/gstreamer/good/default.nix @@ -29,7 +29,7 @@ stdenv.mkDerivation rec { sha256 = "8d7549118a3b7a009ece6bb38a05b66709c551d32d2adfd89eded4d1d7a23944"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; nativeBuildInputs = [ pkgconfig python ]; diff --git a/pkgs/development/libraries/gstreamer/gstreamermm/default.nix b/pkgs/development/libraries/gstreamer/gstreamermm/default.nix index 9b7db6d47324e..176e19000e910 100644 --- a/pkgs/development/libraries/gstreamer/gstreamermm/default.nix +++ b/pkgs/development/libraries/gstreamer/gstreamermm/default.nix @@ -12,7 +12,7 @@ stdenv.mkDerivation rec { sha256 = "0bj6and9b26d32bq90l8nx5wqh2ikkh8dm7qwxyxfdvmrzhixhgi"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; nativeBuildInputs = [ pkgconfig file ]; diff --git a/pkgs/development/libraries/gstreamer/libav/default.nix b/pkgs/development/libraries/gstreamer/libav/default.nix index 312a8a1d394f9..788aacf03ec62 100644 --- a/pkgs/development/libraries/gstreamer/libav/default.nix +++ b/pkgs/development/libraries/gstreamer/libav/default.nix @@ -22,7 +22,7 @@ stdenv.mkDerivation rec { sha256 = "b5f3c7a27b39b5f5c2f0bfd546b0c655020faf6b38d27b64b346c43e5ebf687a"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; configureFlags = stdenv.lib.optionalString withSystemLibav "--with-system-libav"; diff --git a/pkgs/development/libraries/gstreamer/python/default.nix b/pkgs/development/libraries/gstreamer/python/default.nix index 53e094f7ce753..842dd0df0fc7a 100644 --- a/pkgs/development/libraries/gstreamer/python/default.nix +++ b/pkgs/development/libraries/gstreamer/python/default.nix @@ -16,7 +16,7 @@ stdenv.mkDerivation rec { patches = [ ./different-path-with-pygobject.patch ]; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; nativeBuildInputs = [ pkgconfig python ]; diff --git a/pkgs/development/libraries/gstreamer/qt-gstreamer/default.nix b/pkgs/development/libraries/gstreamer/qt-gstreamer/default.nix index 675fdf322e875..72068bb1f7bcb 100644 --- a/pkgs/development/libraries/gstreamer/qt-gstreamer/default.nix +++ b/pkgs/development/libraries/gstreamer/qt-gstreamer/default.nix @@ -17,7 +17,7 @@ stdenv.mkDerivation rec { }) ]; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; buildInputs = [ gst_all_1.gstreamer gst_all_1.gst-plugins-base glib qt4 ]; propagatedBuildInputs = [ boost ]; diff --git a/pkgs/development/libraries/gstreamer/ugly/default.nix b/pkgs/development/libraries/gstreamer/ugly/default.nix index 65490c7db244b..ab6e1f9f4f179 100644 --- a/pkgs/development/libraries/gstreamer/ugly/default.nix +++ b/pkgs/development/libraries/gstreamer/ugly/default.nix @@ -25,7 +25,7 @@ stdenv.mkDerivation rec { sha256 = "9c5b33a2a98fc1d6d6c99a1b536b1fb2de45f53cc8bf8ab85a8b8141fed1a8ac"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; nativeBuildInputs = [ pkgconfig python ]; diff --git a/pkgs/development/libraries/gstreamer/vaapi/default.nix b/pkgs/development/libraries/gstreamer/vaapi/default.nix index 18394193706a9..9972468f1b7fa 100644 --- a/pkgs/development/libraries/gstreamer/vaapi/default.nix +++ b/pkgs/development/libraries/gstreamer/vaapi/default.nix @@ -12,7 +12,7 @@ stdenv.mkDerivation rec { sha256 = "14jal2g5mf8r59w8420ixl3kg50vcmy56446ncwd0xrizd6yms5b"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; nativeBuildInputs = with stdenv.lib; [ pkgconfig bzip2 ]; diff --git a/pkgs/development/libraries/gstreamer/validate/default.nix b/pkgs/development/libraries/gstreamer/validate/default.nix index a837a94eac7ab..2de3955ab06a4 100644 --- a/pkgs/development/libraries/gstreamer/validate/default.nix +++ b/pkgs/development/libraries/gstreamer/validate/default.nix @@ -17,7 +17,7 @@ stdenv.mkDerivation rec { sha256 = "33c5b585c5ca1659fe6c09fdf02e45d8132c0d386b405bf527b14ab481a0bafe"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; nativeBuildInputs = [ pkgconfig gobjectIntrospection diff --git a/pkgs/development/libraries/gtk+/2.x.nix b/pkgs/development/libraries/gtk+/2.x.nix index faaff415f5f8c..f0ff4ec0336fe 100644 --- a/pkgs/development/libraries/gtk+/2.x.nix +++ b/pkgs/development/libraries/gtk+/2.x.nix @@ -15,7 +15,7 @@ stdenv.mkDerivation rec { sha256 = "0d15cec3b6d55c60eac205b1f3ba81a1ed4eadd9d0f8e7c508bc7065d0c4ca50"; }; - outputs = [ "dev" "out" "docdev" ]; + outputs = [ "out" "dev" "docdev" ]; outputBin = "dev"; enableParallelBuilding = true; diff --git a/pkgs/development/libraries/gtk+/3.x.nix b/pkgs/development/libraries/gtk+/3.x.nix index 249f2651517fd..1ac006b21617b 100644 --- a/pkgs/development/libraries/gtk+/3.x.nix +++ b/pkgs/development/libraries/gtk+/3.x.nix @@ -24,7 +24,7 @@ stdenv.mkDerivation rec { sha256 = "05xcwvy68p7f4hdhi4bgdm3aycvqqr4pr5kkkr8ba91l5yx0k9l3"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; outputBin = "dev"; nativeBuildInputs = [ pkgconfig gettext gobjectIntrospection perl ]; diff --git a/pkgs/development/libraries/harfbuzz/default.nix b/pkgs/development/libraries/harfbuzz/default.nix index 131dbbfd09cf2..d1c41c9ea8088 100644 --- a/pkgs/development/libraries/harfbuzz/default.nix +++ b/pkgs/development/libraries/harfbuzz/default.nix @@ -17,7 +17,7 @@ stdenv.mkDerivation { sha256 = "09lh8x6qj0cd950whgaqqi3c4pqbl6z7aw9ddm73i14bw056185v"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; outputBin = "dev"; configureFlags = [ diff --git a/pkgs/development/libraries/hunspell/default.nix b/pkgs/development/libraries/hunspell/default.nix index d48c598dd92d7..c33434d202f58 100644 --- a/pkgs/development/libraries/hunspell/default.nix +++ b/pkgs/development/libraries/hunspell/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "0v14ff9s37vkh45diaddndcrj0hmn67arh8xh8k79q9c1vgc1cm7"; }; - outputs = [ "dev" "out" "bin" "man" ]; + outputs = [ "bin" "dev" "out" "man" ]; buildInputs = [ ncurses readline ]; configureFlags = [ "--with-ui" "--with-readline" ]; diff --git a/pkgs/development/libraries/icu/default.nix b/pkgs/development/libraries/icu/default.nix index 2f7c42c72b7c3..a7bf4af99fb35 100644 --- a/pkgs/development/libraries/icu/default.nix +++ b/pkgs/development/libraries/icu/default.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation ({ sha256 = "10cmkqigxh9f73y7q3p991q6j8pph0mrydgj11w1x6wlcp5ng37z"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; outputBin = "dev"; makeFlags = stdenv.lib.optionalString stdenv.isDarwin diff --git a/pkgs/development/libraries/jasper/default.nix b/pkgs/development/libraries/jasper/default.nix index 2dca5fa22406b..586cd9ed43f6a 100644 --- a/pkgs/development/libraries/jasper/default.nix +++ b/pkgs/development/libraries/jasper/default.nix @@ -24,7 +24,7 @@ stdenv.mkDerivation rec { configureFlags = "--enable-shared"; - outputs = [ "dev" "out" "man" "bin" ]; + outputs = [ "bin" "dev" "out" "man" ]; enableParallelBuilding = true; diff --git a/pkgs/development/libraries/json-c/default.nix b/pkgs/development/libraries/json-c/default.nix index d5e0694e0516f..da12b732d00a4 100644 --- a/pkgs/development/libraries/json-c/default.nix +++ b/pkgs/development/libraries/json-c/default.nix @@ -9,7 +9,7 @@ stdenv.mkDerivation rec { patches = [ ./unused-variable.patch ]; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; nativeBuildInputs = [ autoreconfHook ]; # won't configure without it, no idea why diff --git a/pkgs/development/libraries/lcms/default.nix b/pkgs/development/libraries/lcms/default.nix index 4a0852f6a0641..1decde64e972a 100644 --- a/pkgs/development/libraries/lcms/default.nix +++ b/pkgs/development/libraries/lcms/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation { sha256 = "1abkf8iphwyfs3z305z3qczm3z1i9idc1lz4gvfg92jnkz5k5bl0"; }; - outputs = [ "dev" "out" "bin" "man" ]; + outputs = [ "bin" "dev" "out" "man" ]; meta = { description = "Color management engine"; diff --git a/pkgs/development/libraries/lcms2/default.nix b/pkgs/development/libraries/lcms2/default.nix index 7dea029491aa7..f4923a4e6bd11 100644 --- a/pkgs/development/libraries/lcms2/default.nix +++ b/pkgs/development/libraries/lcms2/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "0lvaglcjsvnyglgj3cb3pjc22nq8fml1vlx5dmmmw66ywx526925"; }; - outputs = [ "dev" "out" "bin" ]; + outputs = [ "bin" "dev" "out" ]; propagatedBuildInputs = [ libtiff libjpeg zlib ]; diff --git a/pkgs/development/libraries/libao/default.nix b/pkgs/development/libraries/libao/default.nix index b2404d4ef7f35..f7261e1173899 100644 --- a/pkgs/development/libraries/libao/default.nix +++ b/pkgs/development/libraries/libao/default.nix @@ -10,7 +10,7 @@ stdenv.mkDerivation rec { sha256 = "1bwwv1g9lchaq6qmhvj1pp3hnyqr64ydd4j38x94pmprs4d27b83"; }; - outputs = [ "dev" "out" "doc" ]; + outputs = [ "out" "dev" "doc" ]; buildInputs = [ pkgconfig ] ++ diff --git a/pkgs/development/libraries/libassuan/default.nix b/pkgs/development/libraries/libassuan/default.nix index 43cfd316b5caf..bad2a060cdca7 100644 --- a/pkgs/development/libraries/libassuan/default.nix +++ b/pkgs/development/libraries/libassuan/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "0w9bmasln4z8mn16s1is55a06w3nv8jbyal496z5jvr5vcxkm112"; }; - outputs = [ "dev" "out" "info" ]; + outputs = [ "out" "dev" "info" ]; outputBin = "dev"; # libassuan-config buildInputs = [ libgpgerror pth ]; diff --git a/pkgs/development/libraries/libav/default.nix b/pkgs/development/libraries/libav/default.nix index e3aec98a8dbea..b3836435e6155 100644 --- a/pkgs/development/libraries/libav/default.nix +++ b/pkgs/development/libraries/libav/default.nix @@ -85,7 +85,7 @@ let enableParallelBuilding = true; - outputs = [ "dev" "out" "bin" ]; + outputs = [ "bin" "dev" "out" ]; setOutputFlags = false; # alltools to build smaller tools, incl. aviocat, ismindex, qt-faststart, etc. diff --git a/pkgs/development/libraries/libcaca/default.nix b/pkgs/development/libraries/libcaca/default.nix index ad93ebd3a4647..ee76b79ced8c2 100644 --- a/pkgs/development/libraries/libcaca/default.nix +++ b/pkgs/development/libraries/libcaca/default.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { sha256 = "1x3j6yfyxl52adgnabycr0n38j9hx2j74la0hz0n8cnh9ry4d2qj"; }; - outputs = [ "dev" "bin" "out" "man" ]; + outputs = [ "bin" "dev" "out" "man" ]; configureFlags = "--disable-x11 --disable-imlib2 --disable-doc"; diff --git a/pkgs/development/libraries/libdrm/default.nix b/pkgs/development/libraries/libdrm/default.nix index 13a7cfe0fb9f9..3d54a24b9f35e 100644 --- a/pkgs/development/libraries/libdrm/default.nix +++ b/pkgs/development/libraries/libdrm/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "b17d4b39ed97ca0e4cffa0db06ff609e617bac94646ec38e8e0579d530540e7b"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; nativeBuildInputs = [ pkgconfig ]; buildInputs = [ libpthreadstubs libpciaccess ] diff --git a/pkgs/development/libraries/libdynd/default.nix b/pkgs/development/libraries/libdynd/default.nix index 119c92d690de0..8deec094866c8 100644 --- a/pkgs/development/libraries/libdynd/default.nix +++ b/pkgs/development/libraries/libdynd/default.nix @@ -17,7 +17,7 @@ stdenv.mkDerivation { buildInputs = [ cmake ]; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; outputDoc = "dev"; meta = with stdenv.lib; { diff --git a/pkgs/development/libraries/libevent/default.nix b/pkgs/development/libraries/libevent/default.nix index b0b537ddb175f..f273a511aafc0 100644 --- a/pkgs/development/libraries/libevent/default.nix +++ b/pkgs/development/libraries/libevent/default.nix @@ -10,7 +10,7 @@ stdenv.mkDerivation { }; postPatch = "patchShebangs event_rpcgen.py"; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; outputBin = "dev"; nativeBuildInputs = [ autoreconfHook ]; diff --git a/pkgs/development/libraries/libffi/default.nix b/pkgs/development/libraries/libffi/default.nix index 962f716c120a7..b203f6346476b 100644 --- a/pkgs/development/libraries/libffi/default.nix +++ b/pkgs/development/libraries/libffi/default.nix @@ -10,7 +10,7 @@ stdenv.mkDerivation rec { patches = stdenv.lib.optional stdenv.isCygwin ./3.2.1-cygwin.patch; - outputs = [ "dev" "out" "doc" ]; + outputs = [ "out" "dev" "doc" ]; buildInputs = stdenv.lib.optional doCheck dejagnu; diff --git a/pkgs/development/libraries/libgcrypt/default.nix b/pkgs/development/libraries/libgcrypt/default.nix index 237a7ff0094f2..8b7f48967e033 100644 --- a/pkgs/development/libraries/libgcrypt/default.nix +++ b/pkgs/development/libraries/libgcrypt/default.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { sha256 = "0wbh6fq5zi9wg2xcfvfpwh7dv52jihivx1vm4h91c2kx0w8n3b6x"; }; - outputs = [ "dev" "out" "info" ]; + outputs = [ "out" "dev" "info" ]; outputBin = "dev"; buildInputs = diff --git a/pkgs/development/libraries/libgnome-keyring/default.nix b/pkgs/development/libraries/libgnome-keyring/default.nix index 95de491866858..b2a0021d53b56 100644 --- a/pkgs/development/libraries/libgnome-keyring/default.nix +++ b/pkgs/development/libraries/libgnome-keyring/default.nix @@ -9,7 +9,7 @@ stdenv.mkDerivation { sha256 = "030gka96kzqg1r19b4xrmac89hf1xj1kr5p461yvbzfxh46qqf2n"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; propagatedBuildInputs = [ glib dbus_libs libgcrypt ]; nativeBuildInputs = [ pkgconfig intltool ]; diff --git a/pkgs/development/libraries/libgpg-error/default.nix b/pkgs/development/libraries/libgpg-error/default.nix index 1238fc760883d..d81a59a5c621e 100644 --- a/pkgs/development/libraries/libgpg-error/default.nix +++ b/pkgs/development/libraries/libgpg-error/default.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { postPatch = "sed '/BUILD_TIMESTAMP=/s/=.*/=1970-01-01T00:01+0000/' -i ./configure"; - outputs = [ "dev" "out" "info" ]; + outputs = [ "out" "dev" "info" ]; outputBin = "dev"; # deps want just the lib, most likely # If architecture-dependent MO files aren't available, they're generated diff --git a/pkgs/development/libraries/libidn/default.nix b/pkgs/development/libraries/libidn/default.nix index 52b74c54d99fb..f8cf554c1ba1a 100644 --- a/pkgs/development/libraries/libidn/default.nix +++ b/pkgs/development/libraries/libidn/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "068fjg2arlppjqqpzd714n1lf6gxkpac9v5yyvp1qwmv6nvam9s4"; }; - outputs = [ "dev" "out" "bin" "info" "docdev" ]; + outputs = [ "bin" "dev" "out" "info" "docdev" ]; doCheck = ! stdenv.isDarwin; diff --git a/pkgs/development/libraries/libinput/default.nix b/pkgs/development/libraries/libinput/default.nix index 0efee5b94f7fa..afc8a44397d84 100644 --- a/pkgs/development/libraries/libinput/default.nix +++ b/pkgs/development/libraries/libinput/default.nix @@ -23,7 +23,7 @@ stdenv.mkDerivation rec { sha256 = "1kmiv1mcrxniigdcs65w23897mczsx0hasxc6p13hjk58zzfvj1h"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; configureFlags = [ (mkFlag documentationSupport "documentation") diff --git a/pkgs/development/libraries/libjpeg-drop/default.nix b/pkgs/development/libraries/libjpeg-drop/default.nix index ed1b5f5bdb0e6..0f2c9dce28a22 100644 --- a/pkgs/development/libraries/libjpeg-drop/default.nix +++ b/pkgs/development/libraries/libjpeg-drop/default.nix @@ -26,7 +26,7 @@ stdenv.mkDerivation rec { configureFlags = [] ++ optional static [ "--enable-static" "--disable-shared" ]; - outputs = [ "dev" "out" "man" "bin" ]; + outputs = [ "bin" "dev" "out" "man" ]; meta = { homepage = http://jpegclub.org/jpegtran/; diff --git a/pkgs/development/libraries/libjpeg-turbo/default.nix b/pkgs/development/libraries/libjpeg-turbo/default.nix index 7d8de0b40af26..0bbdcae3af100 100644 --- a/pkgs/development/libraries/libjpeg-turbo/default.nix +++ b/pkgs/development/libraries/libjpeg-turbo/default.nix @@ -12,7 +12,7 @@ stdenv.mkDerivation rec { stdenv.lib.optional (stdenv.cross.libc or null == "msvcrt") ./mingw-boolean.patch; - outputs = [ "dev" "out" "doc" "bin" ]; + outputs = [ "bin" "dev" "out" "doc" ]; nativeBuildInputs = [ nasm ]; diff --git a/pkgs/development/libraries/libjpeg/default.nix b/pkgs/development/libraries/libjpeg/default.nix index 1529daa77bf0d..8b0a4ec98edad 100644 --- a/pkgs/development/libraries/libjpeg/default.nix +++ b/pkgs/development/libraries/libjpeg/default.nix @@ -12,7 +12,7 @@ stdenv.mkDerivation { configureFlags = optional static "--enable-static --disable-shared"; - outputs = [ "dev" "out" "man" "bin" ]; + outputs = [ "bin" "dev" "out" "man" ]; meta = { homepage = http://www.ijg.org/; diff --git a/pkgs/development/libraries/libmbim/default.nix b/pkgs/development/libraries/libmbim/default.nix index 8baf4a77c362e..aa5d858d82cf8 100644 --- a/pkgs/development/libraries/libmbim/default.nix +++ b/pkgs/development/libraries/libmbim/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "0abv0h9c3kbw4bq1b9270sg189jcjj3x3wa91bj836ynwg9m34wl"; }; - outputs = [ "dev" "out" "doc" ]; + outputs = [ "out" "dev" "doc" ]; preConfigure = '' patchShebangs . diff --git a/pkgs/development/libraries/libmicrohttpd/default.nix b/pkgs/development/libraries/libmicrohttpd/default.nix index af1be85f592b8..4465feb63ed88 100644 --- a/pkgs/development/libraries/libmicrohttpd/default.nix +++ b/pkgs/development/libraries/libmicrohttpd/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "1mzbqr6sqisppz88mh73bbh5sw57g8l87qvhcjdx5pmbd183idni"; }; - outputs = [ "dev" "out" "docdev" ]; + outputs = [ "out" "dev" "docdev" ]; buildInputs = [ libgcrypt curl gnutls pkgconfig ]; preCheck = '' diff --git a/pkgs/development/libraries/libmng/default.nix b/pkgs/development/libraries/libmng/default.nix index 931db8bdf4226..120ee0bcc5ae4 100644 --- a/pkgs/development/libraries/libmng/default.nix +++ b/pkgs/development/libraries/libmng/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "0l5wa3b9rr4zl49zbbjpapqyccqjwzkzw1ph3p4pk9p5h73h9317"; }; - outputs = [ "dev" "out" "docdev" ]; + outputs = [ "out" "dev" "docdev" ]; outputMan= "docdev"; propagatedBuildInputs = [ zlib libpng libjpeg lcms2 ]; diff --git a/pkgs/development/libraries/libmp3splt/default.nix b/pkgs/development/libraries/libmp3splt/default.nix index 08882291d1f77..54cef0c4f5c38 100644 --- a/pkgs/development/libraries/libmp3splt/default.nix +++ b/pkgs/development/libraries/libmp3splt/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "1p1mn2hsmj5cp40fnc8g1yfvk72p8pjxi866gjdkgjsqrr7xdvih"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; nativeBuildInputs = [ libtool ]; buildInputs = [ libmad libid3tag ]; diff --git a/pkgs/development/libraries/libmtp/default.nix b/pkgs/development/libraries/libmtp/default.nix index bdf1da498493b..361966379c0b1 100644 --- a/pkgs/development/libraries/libmtp/default.nix +++ b/pkgs/development/libraries/libmtp/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "1sc768q2cixwanlwrz95mp389iaadl4s95486caavxx4g7znvn8m"; }; - outputs = [ "dev" "bin" "out" ]; + outputs = [ "bin" "dev" "out" ]; propagatedBuildInputs = [ libusb1 ]; buildInputs = [ pkgconfig ]; diff --git a/pkgs/development/libraries/libogg/default.nix b/pkgs/development/libraries/libogg/default.nix index 1aa4b8ad04532..15f58135040d3 100644 --- a/pkgs/development/libraries/libogg/default.nix +++ b/pkgs/development/libraries/libogg/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "16z74q422jmprhyvy7c9x909li8cqzmvzyr8cgbm52xcsp6pqs1z"; }; - outputs = [ "dev" "out" "doc" ]; + outputs = [ "out" "dev" "doc" ]; meta = with stdenv.lib; { homepage = http://xiph.org/ogg/; diff --git a/pkgs/development/libraries/liboil/default.nix b/pkgs/development/libraries/liboil/default.nix index 754e308ac15ba..6910a733c45d0 100644 --- a/pkgs/development/libraries/liboil/default.nix +++ b/pkgs/development/libraries/liboil/default.nix @@ -10,7 +10,7 @@ stdenv.mkDerivation rec { patches = [ ./x86_64-cpuid.patch ]; - outputs = [ "dev" "out" "docdev" ]; + outputs = [ "out" "dev" "docdev" ]; outputBin = "dev"; # oil-bugreport nativeBuildInputs = [ pkgconfig ]; diff --git a/pkgs/development/libraries/libopus/default.nix b/pkgs/development/libraries/libopus/default.nix index 20101fe6fe31e..07a95887ab408 100644 --- a/pkgs/development/libraries/libopus/default.nix +++ b/pkgs/development/libraries/libopus/default.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { sha256 = "1z87x5c5x951lhnm70iqr2gqn15wns5cqsw8nnkvl48jwdw00a8f"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; configureFlags = stdenv.lib.optional fixedPoint "--enable-fixed-point" ++ stdenv.lib.optional withCustomModes "--enable-custom-modes"; diff --git a/pkgs/development/libraries/libpng/12.nix b/pkgs/development/libraries/libpng/12.nix index e181d680eff91..8e17c44fa636e 100644 --- a/pkgs/development/libraries/libpng/12.nix +++ b/pkgs/development/libraries/libpng/12.nix @@ -10,7 +10,7 @@ stdenv.mkDerivation rec { sha256 = "1ghd03p353x0vi4dk83n1nlldg11w7vqdk3f99rkgfb82ic59ki4"; }; - outputs = [ "dev" "out" "man" ]; + outputs = [ "out" "dev" "man" ]; propagatedBuildInputs = [ zlib ]; diff --git a/pkgs/development/libraries/libpng/default.nix b/pkgs/development/libraries/libpng/default.nix index 9c4a1b13e0181..ea6e1e50035d0 100644 --- a/pkgs/development/libraries/libpng/default.nix +++ b/pkgs/development/libraries/libpng/default.nix @@ -20,7 +20,7 @@ in stdenv.mkDerivation rec { }; postPatch = whenPatched "gunzip < ${patch_src} | patch -Np1"; - outputs = [ "dev" "out" "man" ]; + outputs = [ "out" "dev" "man" ]; outputBin = "dev"; propagatedBuildInputs = [ zlib ]; diff --git a/pkgs/development/libraries/libproxy/default.nix b/pkgs/development/libraries/libproxy/default.nix index 76452af0c4751..4c9733c6a5e5d 100644 --- a/pkgs/development/libraries/libproxy/default.nix +++ b/pkgs/development/libraries/libproxy/default.nix @@ -7,7 +7,7 @@ stdenv.mkDerivation rec { sha256 = "0jw6454gxjykmbnbh544axi8hzz9gmm4jz1y5gw1hdqnakg36gyw"; }; - outputs = [ "dev" "out" ]; # to deal with propagatedBuildInputs + outputs = [ "out" "dev" ]; # to deal with propagatedBuildInputs nativeBuildInputs = [ pkgconfig cmake ]; propagatedBuildInputs = [ zlib ] diff --git a/pkgs/development/libraries/libqmi/default.nix b/pkgs/development/libraries/libqmi/default.nix index 82768cd350dd9..9086fdc017c6b 100644 --- a/pkgs/development/libraries/libqmi/default.nix +++ b/pkgs/development/libraries/libqmi/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "101ppan2q1h4pyp2zbn9b8sdwy2c7fk9rp91yykxz3afrvzbymq8"; }; - outputs = [ "dev" "out" "docdev" ]; + outputs = [ "out" "dev" "docdev" ]; preBuild = '' patchShebangs . diff --git a/pkgs/development/libraries/libressl/2.3.nix b/pkgs/development/libraries/libressl/2.3.nix index fed460a134bed..6009a44dcd211 100644 --- a/pkgs/development/libraries/libressl/2.3.nix +++ b/pkgs/development/libraries/libressl/2.3.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - outputs = [ "dev" "out" "man" "bin" ]; + outputs = [ "bin" "dev" "out" "man" ]; meta = with stdenv.lib; { description = "Free TLS/SSL implementation"; diff --git a/pkgs/development/libraries/libressl/2.4.nix b/pkgs/development/libraries/libressl/2.4.nix index 332102658f9a2..43f9244d7a809 100644 --- a/pkgs/development/libraries/libressl/2.4.nix +++ b/pkgs/development/libraries/libressl/2.4.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - outputs = [ "dev" "out" "man" "bin" ]; + outputs = [ "bin" "dev" "out" "man" ]; meta = with stdenv.lib; { description = "Free TLS/SSL implementation"; diff --git a/pkgs/development/libraries/librsvg/default.nix b/pkgs/development/libraries/librsvg/default.nix index d6a527ea3153c..7a0112e15cabc 100644 --- a/pkgs/development/libraries/librsvg/default.nix +++ b/pkgs/development/libraries/librsvg/default.nix @@ -15,7 +15,7 @@ stdenv.mkDerivation rec { NIX_LDFLAGS = if stdenv.isDarwin then "-lintl" else null; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; buildInputs = [ libxml2 libgsf bzip2 libcroco pango libintlOrEmpty ] ++ stdenv.lib.optional enableIntrospection [ gobjectIntrospection ]; diff --git a/pkgs/development/libraries/libsamplerate/default.nix b/pkgs/development/libraries/libsamplerate/default.nix index 771e31f7b79b7..d7cb741a042a2 100644 --- a/pkgs/development/libraries/libsamplerate/default.nix +++ b/pkgs/development/libraries/libsamplerate/default.nix @@ -19,7 +19,7 @@ in stdenv.mkDerivation rec { #--disable-fftw disable usage of FFTW #--disable-cpu-clip disable tricky cpu specific clipper - outputs = [ "dev" "bin" "out" ]; + outputs = [ "bin" "dev" "out" ]; postConfigure = optionalString stdenv.isDarwin '' # need headers from the Carbon.framework in /System/Library/Frameworks to diff --git a/pkgs/development/libraries/libsndfile/default.nix b/pkgs/development/libraries/libsndfile/default.nix index 85d30fdd79b66..73bf9e4da74e3 100644 --- a/pkgs/development/libraries/libsndfile/default.nix +++ b/pkgs/development/libraries/libsndfile/default.nix @@ -15,7 +15,7 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - outputs = [ "dev" "out" "bin" "doc" ]; + outputs = [ "bin" "dev" "out" "doc" ]; # need headers from the Carbon.framework in /System/Library/Frameworks to # compile this on darwin -- not sure how to handle diff --git a/pkgs/development/libraries/libsodium/default.nix b/pkgs/development/libraries/libsodium/default.nix index e8b3bc1cebc9b..b0bef6149d55d 100644 --- a/pkgs/development/libraries/libsodium/default.nix +++ b/pkgs/development/libraries/libsodium/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "1gn45g956lyz8l6iq187yc6l627vyivyp8qc5dkr6dnhdnlqddvi"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; enableParallelBuilding = true; diff --git a/pkgs/development/libraries/libsoup/default.nix b/pkgs/development/libraries/libsoup/default.nix index 05026a06c613d..66cc072079992 100644 --- a/pkgs/development/libraries/libsoup/default.nix +++ b/pkgs/development/libraries/libsoup/default.nix @@ -22,7 +22,7 @@ stdenv.mkDerivation { substituteInPlace libsoup/Makefile.in --replace "\$(DESTDIR)\$(vapidir)" "\$(DESTDIR)\$(girdir)/../vala/vapi" ''; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; buildInputs = libintlOrEmpty ++ [ intltool python sqlite ] ++ stdenv.lib.optionals valaSupport [ vala_0_23 ]; diff --git a/pkgs/development/libraries/libssh/default.nix b/pkgs/development/libraries/libssh/default.nix index adfd11d9b197c..0c1c92a0f6fde 100644 --- a/pkgs/development/libraries/libssh/default.nix +++ b/pkgs/development/libraries/libssh/default.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { sed -i 's,nacl/,sodium/,g' ./include/libssh/curve25519.h src/curve25519.c ''; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; buildInputs = [ zlib openssl libsodium ]; diff --git a/pkgs/development/libraries/libssh2/default.nix b/pkgs/development/libraries/libssh2/default.nix index 855e57c0550ae..f910d27d6c4c0 100644 --- a/pkgs/development/libraries/libssh2/default.nix +++ b/pkgs/development/libraries/libssh2/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "116mh112w48vv9k3f15ggp5kxw5sj4b88dzb5j69llsh7ba1ymp4"; }; - outputs = [ "dev" "out" "docdev" ]; + outputs = [ "out" "dev" "docdev" ]; buildInputs = [ openssl zlib ]; diff --git a/pkgs/development/libraries/libtasn1/default.nix b/pkgs/development/libraries/libtasn1/default.nix index f8e7908314f9d..b028b1643da2f 100644 --- a/pkgs/development/libraries/libtasn1/default.nix +++ b/pkgs/development/libraries/libtasn1/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "04y5m29pqmvkfdbppmsdifyx89v8xclxzklpfc7a1fkr9p4jz07s"; }; - outputs = [ "dev" "out" "docdev" ]; + outputs = [ "out" "dev" "docdev" ]; outputBin = "dev"; buildInputs = [ perl texinfo ]; diff --git a/pkgs/development/libraries/libtheora/default.nix b/pkgs/development/libraries/libtheora/default.nix index 129dface2d938..e8f78d8083489 100644 --- a/pkgs/development/libraries/libtheora/default.nix +++ b/pkgs/development/libraries/libtheora/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "0swiaj8987n995rc7hw0asvpwhhzpjiws8kr3s6r44bqqib2k5a0"; }; - outputs = [ "dev" "out" "docdev" ]; + outputs = [ "out" "dev" "docdev" ]; outputDoc = "docdev"; nativeBuildInputs = [ pkgconfig ]; diff --git a/pkgs/development/libraries/libtiff/default.nix b/pkgs/development/libraries/libtiff/default.nix index a506279c2a4af..373405432c8e3 100644 --- a/pkgs/development/libraries/libtiff/default.nix +++ b/pkgs/development/libraries/libtiff/default.nix @@ -14,7 +14,7 @@ stdenv.mkDerivation rec { sha256 = "136nf1rj9dp5jgv1p7z4dk0xy3wki1w0vfjbk82f645m0w4samsd"; }; - outputs = [ "dev" "out" "bin" "doc" ]; + outputs = [ "bin" "dev" "out" "doc" ]; nativeBuildInputs = [ pkgconfig ]; diff --git a/pkgs/development/libraries/libunwind/default.nix b/pkgs/development/libraries/libunwind/default.nix index 7eea905f64af4..6ed29a8abc3fe 100644 --- a/pkgs/development/libraries/libunwind/default.nix +++ b/pkgs/development/libraries/libunwind/default.nix @@ -20,7 +20,7 @@ stdenv.mkDerivation rec { sed -i -e '/LIBLZMA/s:-lzma:-llzma:' configure ''; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; propagatedBuildInputs = [ xz ]; diff --git a/pkgs/development/libraries/libusb/default.nix b/pkgs/development/libraries/libusb/default.nix index d5f08537e5be2..1fd3cb39bbff8 100644 --- a/pkgs/development/libraries/libusb/default.nix +++ b/pkgs/development/libraries/libusb/default.nix @@ -3,7 +3,7 @@ stdenv.mkDerivation { name = "libusb-compat-0.1.5"; - outputs = [ "dev" "out" ]; # get rid of propagating systemd closure + outputs = [ "out" "dev" ]; # get rid of propagating systemd closure outputBin = "dev"; nativeBuildInputs = [ pkgconfig ]; diff --git a/pkgs/development/libraries/libusb1/default.nix b/pkgs/development/libraries/libusb1/default.nix index fe920bba411fd..93846c00d074d 100644 --- a/pkgs/development/libraries/libusb1/default.nix +++ b/pkgs/development/libraries/libusb1/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "0h38p9rxfpg9vkrbyb120i1diq57qcln82h5fr7hvy82c20jql3c"; }; - outputs = [ "dev" "out" ]; # get rid of propagating systemd closure + outputs = [ "out" "dev" ]; # get rid of propagating systemd closure buildInputs = [ pkgconfig ]; propagatedBuildInputs = diff --git a/pkgs/development/libraries/libva/default.nix b/pkgs/development/libraries/libva/default.nix index 44db602f1ebac..425eef001859a 100644 --- a/pkgs/development/libraries/libva/default.nix +++ b/pkgs/development/libraries/libva/default.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { sha256 = "0py9igf4kicj7ji22bjawkpd6my013qpg0s4ir2np9l1rk5vr2d6"; }; - outputs = [ "dev" "out" "bin" ]; + outputs = [ "bin" "dev" "out" ]; nativeBuildInputs = [ pkgconfig ]; diff --git a/pkgs/development/libraries/libvdpau/default.nix b/pkgs/development/libraries/libvdpau/default.nix index 3337a89dd1cec..79863f40dffbd 100644 --- a/pkgs/development/libraries/libvdpau/default.nix +++ b/pkgs/development/libraries/libvdpau/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "857a01932609225b9a3a5bf222b85e39b55c08787d0ad427dbd9ec033d58d736"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; buildInputs = with xorg; [ pkgconfig dri2proto libXext ]; diff --git a/pkgs/development/libraries/libvorbis/default.nix b/pkgs/development/libraries/libvorbis/default.nix index 0022799c88fe4..682fcca98a365 100644 --- a/pkgs/development/libraries/libvorbis/default.nix +++ b/pkgs/development/libraries/libvorbis/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "1lg1n3a6r41492r7in0fpvzc7909mc5ir9z0gd3qh2pz4yalmyal"; }; - outputs = [ "dev" "out" "doc" ]; + outputs = [ "out" "dev" "doc" ]; nativeBuildInputs = [ pkgconfig ]; diff --git a/pkgs/development/libraries/libvpx/default.nix b/pkgs/development/libraries/libvpx/default.nix index 278679698c63b..7d37393d43338 100644 --- a/pkgs/development/libraries/libvpx/default.nix +++ b/pkgs/development/libraries/libvpx/default.nix @@ -70,7 +70,7 @@ stdenv.mkDerivation rec { patchPhase = ''patchShebangs .''; - outputs = [ "dev" "out" "bin" ]; + outputs = [ "bin" "dev" "out" ]; setOutputFlags = false; configureFlags = [ diff --git a/pkgs/development/libraries/libvpx/git.nix b/pkgs/development/libraries/libvpx/git.nix index 1893d73401a8c..1dafd4a124dc9 100644 --- a/pkgs/development/libraries/libvpx/git.nix +++ b/pkgs/development/libraries/libvpx/git.nix @@ -73,7 +73,7 @@ stdenv.mkDerivation rec { patchPhase = ''patchShebangs .''; - outputs = [ "dev" "out" "bin" ]; + outputs = [ "bin" "dev" "out" ]; setOutputFlags = false; configureFlags = [ diff --git a/pkgs/development/libraries/libwnck/3.x.nix b/pkgs/development/libraries/libwnck/3.x.nix index 20502e297bf8a..1fd8e9b43461a 100644 --- a/pkgs/development/libraries/libwnck/3.x.nix +++ b/pkgs/development/libraries/libwnck/3.x.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation { sha256 = "d48ac9c7f50c0d563097f63d07bcc83744c7d92a1b4ef65e5faeab32b5ccb723"; }; - outputs = [ "dev" "out" "docdev" ]; + outputs = [ "out" "dev" "docdev" ]; outputBin = "dev"; patches = [ ./install_introspection_to_prefix.patch ]; diff --git a/pkgs/development/libraries/libwnck/default.nix b/pkgs/development/libraries/libwnck/default.nix index bb5258120494d..8cc1978133fa1 100644 --- a/pkgs/development/libraries/libwnck/default.nix +++ b/pkgs/development/libraries/libwnck/default.nix @@ -12,7 +12,7 @@ stdenv.mkDerivation rec { sha256 = "17isfjvrzgj5znld2a7zsk9vd39q9wnsysnw5jr8iz410z935xw3"; }; - outputs = [ "dev" "out" "docdev" ]; + outputs = [ "out" "dev" "docdev" ]; outputBin = "dev"; buildInputs = [ pkgconfig gtk intltool xorg.libX11 xorg.libXres ]; diff --git a/pkgs/development/libraries/libxkbcommon/default.nix b/pkgs/development/libraries/libxkbcommon/default.nix index 205ebc85a121e..173e1814aeab2 100644 --- a/pkgs/development/libraries/libxkbcommon/default.nix +++ b/pkgs/development/libraries/libxkbcommon/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "0q47xa1szlxwgvwmhv4b7xwawnykz1hnc431d84nj8dlh2q8f22v"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; buildInputs = [ pkgconfig yacc flex xkeyboard_config libxcb ]; diff --git a/pkgs/development/libraries/libxklavier/default.nix b/pkgs/development/libraries/libxklavier/default.nix index 46fe515faafaa..ce00c950a9a88 100644 --- a/pkgs/development/libraries/libxklavier/default.nix +++ b/pkgs/development/libraries/libxklavier/default.nix @@ -12,7 +12,7 @@ stdenv.mkDerivation rec { sha256 = "016lpdv35z0qsw1cprdc2k5qzkdi5waj6qmr0a2q6ljn9g2kpv7b"; }; - outputs = [ "dev" "out" "docdev" ]; + outputs = [ "out" "dev" "docdev" ]; # TODO: enable xmodmap support, needs xmodmap DB propagatedBuildInputs = with xorg; [ libX11 libXi xkeyboard_config libxml2 libICE glib libxkbfile isocodes ]; diff --git a/pkgs/development/libraries/libxml2/default.nix b/pkgs/development/libraries/libxml2/default.nix index 45ce1b5559250..ab3654cb626b6 100644 --- a/pkgs/development/libraries/libxml2/default.nix +++ b/pkgs/development/libraries/libxml2/default.nix @@ -17,7 +17,7 @@ stdenv.mkDerivation rec { sha256 = "0i7a0nhxwkxx6dkm8917qn0bsfn1av6ghg2f4dxanxi4bn4b1jjn"; }; - outputs = [ "dev" "out" "bin" "doc" ] + outputs = [ "bin" "dev" "out" "doc" ] ++ lib.optional supportPython "py"; propagatedBuildOutputs = "out bin" + lib.optionalString supportPython " py"; diff --git a/pkgs/development/libraries/libxslt/default.nix b/pkgs/development/libraries/libxslt/default.nix index c76f282460476..f1b69447fac5d 100644 --- a/pkgs/development/libraries/libxslt/default.nix +++ b/pkgs/development/libraries/libxslt/default.nix @@ -23,7 +23,7 @@ stdenv.mkDerivation rec { }) ]; - outputs = [ "dev" "out" "bin" "doc" ]; + outputs = [ "bin" "dev" "out" "doc" ]; buildInputs = [ libxml2 ]; diff --git a/pkgs/development/libraries/libzip/default.nix b/pkgs/development/libraries/libzip/default.nix index 714745c432eb5..d1f2e633a0c5d 100644 --- a/pkgs/development/libraries/libzip/default.nix +++ b/pkgs/development/libraries/libzip/default.nix @@ -9,7 +9,7 @@ stdenv.mkDerivation rec { sha256 = "08b26qbfxq6z5xf36y1d8insm5valv83dhj933iag6man04prb2r"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; nativeBuildInputs = [ perl ]; propagatedBuildInputs = [ zlib ]; diff --git a/pkgs/development/libraries/mapnik/default.nix b/pkgs/development/libraries/mapnik/default.nix index 122fb710e7393..de8cc1e49cc28 100644 --- a/pkgs/development/libraries/mapnik/default.nix +++ b/pkgs/development/libraries/mapnik/default.nix @@ -12,7 +12,7 @@ stdenv.mkDerivation rec { sha256 = "0fda6syrfb81930sf7rgw1qmpnik8k1ngrjkh43ywd3s37nbqh1n"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; nativeBuildInputs = [ python scons ]; diff --git a/pkgs/development/libraries/mesa/default.nix b/pkgs/development/libraries/mesa/default.nix index 8f037d239d040..ee6b441d2b063 100644 --- a/pkgs/development/libraries/mesa/default.nix +++ b/pkgs/development/libraries/mesa/default.nix @@ -62,7 +62,7 @@ stdenv.mkDerivation { --replace _EGL_DRIVER_SEARCH_DIR '"${driverLink}"' ''; - outputs = [ "dev" "out" "drivers" "osmesa" ]; + outputs = [ "out" "dev" "drivers" "osmesa" ]; # TODO: Figure out how to enable opencl without having a runtime dependency on clang configureFlags = [ diff --git a/pkgs/development/libraries/ming/default.nix b/pkgs/development/libraries/ming/default.nix index ba512ec5d8cb7..e9777fe5635eb 100644 --- a/pkgs/development/libraries/ming/default.nix +++ b/pkgs/development/libraries/ming/default.nix @@ -18,7 +18,7 @@ stdenv.mkDerivation rec { # We don't currently build the Python, Perl, PHP, etc. bindings. # Perl is needed for the test suite, though. - outputs = [ "dev" "out" "bin" ]; + outputs = [ "bin" "dev" "out" ]; nativeBuildInputs = [ autoreconfHook flex bison perl ]; buildInputs = [ freetype zlib libpng giflib ]; diff --git a/pkgs/development/libraries/mpfr/default.nix b/pkgs/development/libraries/mpfr/default.nix index 882e0ec4faaf7..8dbe150e2cb38 100644 --- a/pkgs/development/libraries/mpfr/default.nix +++ b/pkgs/development/libraries/mpfr/default.nix @@ -10,7 +10,7 @@ stdenv.mkDerivation rec { patches = [ ./upstream.patch ]; - outputs = [ "dev" "out" "doc" ]; + outputs = [ "out" "dev" "doc" ]; # mpfr.h requires gmp.h propagatedBuildInputs = [ gmp ]; diff --git a/pkgs/development/libraries/ncurses/default.nix b/pkgs/development/libraries/ncurses/default.nix index c1037a81c85ed..3eff1f3d5bbdc 100644 --- a/pkgs/development/libraries/ncurses/default.nix +++ b/pkgs/development/libraries/ncurses/default.nix @@ -22,7 +22,7 @@ stdenv.mkDerivation rec { patches = [ ./clang.patch ] ++ lib.optional (abiVersion == "5" && stdenv.cc.isGNU) ./gcc-5.patch; - outputs = [ "dev" "out" "man" ]; + outputs = [ "out" "dev" "man" ]; setOutputFlags = false; # some aren't supported configureFlags = [ diff --git a/pkgs/development/libraries/nettle/generic.nix b/pkgs/development/libraries/nettle/generic.nix index 1bfb739712f40..9633dacd68f24 100644 --- a/pkgs/development/libraries/nettle/generic.nix +++ b/pkgs/development/libraries/nettle/generic.nix @@ -9,7 +9,7 @@ stdenv.mkDerivation (rec { inherit src; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; outputBin = "dev"; buildInputs = [ gnum4 ]; diff --git a/pkgs/development/libraries/nghttp2/default.nix b/pkgs/development/libraries/nghttp2/default.nix index b690a55bb9285..2eff4b3b5a41d 100644 --- a/pkgs/development/libraries/nghttp2/default.nix +++ b/pkgs/development/libraries/nghttp2/default.nix @@ -21,7 +21,7 @@ stdenv.mkDerivation rec { substituteInPlace configure --replace "malloc_stats_print" "je_malloc_stats_print" '' else null; - outputs = [ "dev" "out" "lib" ]; + outputs = [ "out" "dev" "lib" ]; nativeBuildInputs = [ pkgconfig ]; buildInputs = [ openssl libev zlib ]; diff --git a/pkgs/development/libraries/nspr/default.nix b/pkgs/development/libraries/nspr/default.nix index e8ba9c7ec54fc..30339cfdae9b9 100644 --- a/pkgs/development/libraries/nspr/default.nix +++ b/pkgs/development/libraries/nspr/default.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation { sha256 = "1pk98bmc5xzbl62q5wf2d6mryf0v95z6rsmxz27nclwiaqg0mcg0"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; outputBin = "dev"; preConfigure = '' diff --git a/pkgs/development/libraries/nss/default.nix b/pkgs/development/libraries/nss/default.nix index 008494818e54b..8417953838059 100644 --- a/pkgs/development/libraries/nss/default.nix +++ b/pkgs/development/libraries/nss/default.nix @@ -44,7 +44,7 @@ in stdenv.mkDerivation rec { INSTALL_TARGET ''; - outputs = [ "dev" "out" "tools" ]; + outputs = [ "out" "dev" "tools" ]; preConfigure = "cd nss"; diff --git a/pkgs/development/libraries/openjpeg/generic.nix b/pkgs/development/libraries/openjpeg/generic.nix index b01ff527d8cd9..03b6faed2679d 100644 --- a/pkgs/development/libraries/openjpeg/generic.nix +++ b/pkgs/development/libraries/openjpeg/generic.nix @@ -31,7 +31,7 @@ stdenv.mkDerivation rec { inherit sha256; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; cmakeFlags = [ "-DCMAKE_INSTALL_NAME_DIR=\${CMAKE_INSTALL_PREFIX}/lib" diff --git a/pkgs/development/libraries/openldap/default.nix b/pkgs/development/libraries/openldap/default.nix index 00b4139dc7cb6..23342d326fea1 100644 --- a/pkgs/development/libraries/openldap/default.nix +++ b/pkgs/development/libraries/openldap/default.nix @@ -9,7 +9,7 @@ stdenv.mkDerivation rec { }; # TODO: separate "out" and "bin" - outputs = [ "dev" "out" "man" "docdev" ]; + outputs = [ "out" "dev" "man" "docdev" ]; buildInputs = [ openssl cyrus_sasl db groff ]; diff --git a/pkgs/development/libraries/openssl/chacha.nix b/pkgs/development/libraries/openssl/chacha.nix index 8187fcedabf16..91cd8c6bcac6b 100644 --- a/pkgs/development/libraries/openssl/chacha.nix +++ b/pkgs/development/libraries/openssl/chacha.nix @@ -14,7 +14,7 @@ stdenv.mkDerivation rec { sha256 = "1030rs4bdaysxbq0mmck1dn6g5adspzkwsrnhvv16b4ig0r4ncgj"; }; - outputs = [ "dev" "out" "man" "bin" ]; + outputs = [ "bin" "dev" "out" "man" ]; setOutputFlags = false; nativeBuildInputs = [ perl zlib ]; diff --git a/pkgs/development/libraries/openssl/default.nix b/pkgs/development/libraries/openssl/default.nix index 0c32bf0343874..c023965c0f63f 100644 --- a/pkgs/development/libraries/openssl/default.nix +++ b/pkgs/development/libraries/openssl/default.nix @@ -24,7 +24,7 @@ let (versionOlder version "1.0.2" && (stdenv.isDarwin || (stdenv ? cross && stdenv.cross.libc == "libSystem"))) ./darwin-arch.patch; - outputs = [ "dev" "out" "man" "bin" ]; + outputs = [ "bin" "dev" "out" "man" ]; setOutputFlags = false; nativeBuildInputs = [ perl ]; diff --git a/pkgs/development/libraries/osm-gps-map/default.nix b/pkgs/development/libraries/osm-gps-map/default.nix index 7dc8b8c6112d1..63c882076b9d7 100644 --- a/pkgs/development/libraries/osm-gps-map/default.nix +++ b/pkgs/development/libraries/osm-gps-map/default.nix @@ -9,7 +9,7 @@ stdenv.mkDerivation rec { sha256 = "0fal3mqcf3yypir4f7njz0dm5wr7lqwpimjx28wz9imh48cqx9n9"; }; - outputs = [ "dev" "out" "doc" ]; + outputs = [ "out" "dev" "doc" ]; nativeBuildInputs = [ pkgconfig ]; diff --git a/pkgs/development/libraries/p11-kit/default.nix b/pkgs/development/libraries/p11-kit/default.nix index e08e7c06815e6..6ba99948f7c61 100644 --- a/pkgs/development/libraries/p11-kit/default.nix +++ b/pkgs/development/libraries/p11-kit/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "1w7szm190phlkg7qx05ychlj2dbvkgkhx9gw6dx4d5rw62l6wwms"; }; - outputs = [ "dev" "out" "docdev" ]; + outputs = [ "out" "dev" "docdev" ]; outputBin = "dev"; buildInputs = [ pkgconfig libffi libtasn1 libiconv ]; diff --git a/pkgs/development/libraries/pango/default.nix b/pkgs/development/libraries/pango/default.nix index 105bfa1627bee..7ad2e4a240902 100644 --- a/pkgs/development/libraries/pango/default.nix +++ b/pkgs/development/libraries/pango/default.nix @@ -16,7 +16,7 @@ stdenv.mkDerivation rec { sha256 = "e27af54172c72b3ac6be53c9a4c67053e16c905e02addcf3a603ceb2005c1a40"; }; - outputs = [ "dev" "out" "bin" "docdev" ]; + outputs = [ "bin" "dev" "out" "docdev" ]; buildInputs = [ gobjectIntrospection ]; nativeBuildInputs = [ pkgconfig ]; diff --git a/pkgs/development/libraries/pcre/default.nix b/pkgs/development/libraries/pcre/default.nix index 7b43845d23f74..7e2bec80c3ca8 100644 --- a/pkgs/development/libraries/pcre/default.nix +++ b/pkgs/development/libraries/pcre/default.nix @@ -24,7 +24,7 @@ in stdenv.mkDerivation rec { ./CVE-2016-1283.patch ]; - outputs = [ "dev" "out" "bin" "doc" "man" ]; + outputs = [ "bin" "dev" "out" "doc" "man" ]; configureFlags = [ "--enable-jit" diff --git a/pkgs/development/libraries/polkit-qt-1/qt-5.nix b/pkgs/development/libraries/polkit-qt-1/qt-5.nix index 3c69c71d017fe..f6cbf7e972b33 100644 --- a/pkgs/development/libraries/polkit-qt-1/qt-5.nix +++ b/pkgs/development/libraries/polkit-qt-1/qt-5.nix @@ -5,7 +5,7 @@ with stdenv.lib; stdenv.mkDerivation { name = "polkit-qt-1-qt5-0.112.0"; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; src = fetchurl { url = "mirror://kde/stable/apps/KDE4.x/admin/polkit-qt-1-0.112.0.tar.bz2"; diff --git a/pkgs/development/libraries/polkit/default.nix b/pkgs/development/libraries/polkit/default.nix index 5744460008fd0..ab1943b859099 100644 --- a/pkgs/development/libraries/polkit/default.nix +++ b/pkgs/development/libraries/polkit/default.nix @@ -22,7 +22,7 @@ stdenv.mkDerivation rec { sha256 = "109w86kfqrgz83g9ivggplmgc77rz8kx8646izvm2jb57h4rbh71"; }; - outputs = [ "dev" "out" "bin" ]; # small man pages in $bin + outputs = [ "bin" "dev" "out" ]; # small man pages in $bin buildInputs = [ pkgconfig glib expat pam intltool spidermonkey gobjectIntrospection ] diff --git a/pkgs/development/libraries/poppler/default.nix b/pkgs/development/libraries/poppler/default.nix index 207b7a2ffab11..be38d0cd47e61 100644 --- a/pkgs/development/libraries/poppler/default.nix +++ b/pkgs/development/libraries/poppler/default.nix @@ -19,7 +19,7 @@ stdenv.mkDerivation rec { inherit sha256; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; buildInputs = [ libiconv ] ++ libintlOrEmpty ++ lib.optional withData poppler_data; diff --git a/pkgs/development/libraries/qt-5/5.5/qtbase/default.nix b/pkgs/development/libraries/qt-5/5.5/qtbase/default.nix index 43eb71ede18f3..b80b8a1e7611e 100644 --- a/pkgs/development/libraries/qt-5/5.5/qtbase/default.nix +++ b/pkgs/development/libraries/qt-5/5.5/qtbase/default.nix @@ -46,7 +46,7 @@ stdenv.mkDerivation { sourceRoot = "qt-everywhere-opensource-src-${version}"; - outputs = [ "dev" "out" "gtk" ]; + outputs = [ "out" "dev" "gtk" ]; postUnpack = '' mv qtbase-opensource-src-${version} ./qt-everywhere-opensource-src-${version}/qtbase diff --git a/pkgs/development/libraries/qt-5/5.6/qtbase/default.nix b/pkgs/development/libraries/qt-5/5.6/qtbase/default.nix index 6c52b29b35ec4..2f414efc3142a 100644 --- a/pkgs/development/libraries/qt-5/5.6/qtbase/default.nix +++ b/pkgs/development/libraries/qt-5/5.6/qtbase/default.nix @@ -31,7 +31,7 @@ stdenv.mkDerivation { name = "qtbase-${srcs.qtbase.version}"; inherit (srcs.qtbase) src version; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; patches = copyPathsToStore (lib.readPathsFromFile ./. ./series) diff --git a/pkgs/development/libraries/qt-5/5.7/qtbase/default.nix b/pkgs/development/libraries/qt-5/5.7/qtbase/default.nix index f9d56612375cc..a31452e6d9bb9 100644 --- a/pkgs/development/libraries/qt-5/5.7/qtbase/default.nix +++ b/pkgs/development/libraries/qt-5/5.7/qtbase/default.nix @@ -31,7 +31,7 @@ stdenv.mkDerivation { name = "qtbase-${version}"; inherit src version; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; patches = copyPathsToStore (lib.readPathsFromFile ./. ./series) diff --git a/pkgs/development/libraries/readline/6.3.nix b/pkgs/development/libraries/readline/6.3.nix index 11d4271b168b6..80cc7e923b834 100644 --- a/pkgs/development/libraries/readline/6.3.nix +++ b/pkgs/development/libraries/readline/6.3.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "0hzxr9jxqqx5sxsv9vmlxdnvlr9vi4ih1avjb869hbs6p5qn1fjn"; }; - outputs = [ "dev" "out" "doc" ]; + outputs = [ "out" "dev" "doc" ]; propagatedBuildInputs = [ncurses]; diff --git a/pkgs/development/libraries/schroedinger/default.nix b/pkgs/development/libraries/schroedinger/default.nix index 2df7d05189425..49c8ac013c2ab 100644 --- a/pkgs/development/libraries/schroedinger/default.nix +++ b/pkgs/development/libraries/schroedinger/default.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation { sha256 = "04prr667l4sn4zx256v1z36a0nnkxfdqyln48rbwlamr6l3jlmqy"; }; - outputs = [ "dev" "out" "docdev" ]; + outputs = [ "out" "dev" "docdev" ]; nativeBuildInputs = [ pkgconfig ]; buildInputs = [ orc ]; diff --git a/pkgs/development/libraries/slang/default.nix b/pkgs/development/libraries/slang/default.nix index df2b5db89a742..a55173a62b3c2 100644 --- a/pkgs/development/libraries/slang/default.nix +++ b/pkgs/development/libraries/slang/default.nix @@ -7,7 +7,7 @@ stdenv.mkDerivation rec { sha256 = "0aqd2cjabj6nhd4r3dc4vhqif2bf3dmqnrn2gj0xm4gqyfd177jy"; }; - outputs = [ "dev" "out" "doc" ]; + outputs = [ "out" "dev" "doc" ]; # Fix some wrong hardcoded paths preConfigure = '' diff --git a/pkgs/development/libraries/speex/default.nix b/pkgs/development/libraries/speex/default.nix index ce313e3516860..199c0d007344b 100644 --- a/pkgs/development/libraries/speex/default.nix +++ b/pkgs/development/libraries/speex/default.nix @@ -12,7 +12,7 @@ stdenv.mkDerivation rec { sed -i '/AC_CONFIG_MACRO_DIR/i PKG_PROG_PKG_CONFIG' configure.ac ''; - outputs = [ "dev" "out" "doc" ]; + outputs = [ "out" "dev" "doc" ]; nativeBuildInputs = [ autoreconfHook pkgconfig ]; buildInputs = [ fftw speexdsp ]; diff --git a/pkgs/development/libraries/speexdsp/default.nix b/pkgs/development/libraries/speexdsp/default.nix index e31c793a7d7a7..dc87c939278d5 100644 --- a/pkgs/development/libraries/speexdsp/default.nix +++ b/pkgs/development/libraries/speexdsp/default.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { patches = [ ./build-fix.patch ]; postPatch = "sed '3i#include ' -i ./include/speex/speexdsp_config_types.h.in"; - outputs = [ "dev" "out" "doc" ]; + outputs = [ "out" "dev" "doc" ]; nativeBuildInputs = [ autoreconfHook pkgconfig ]; buildInputs = [ fftw ]; diff --git a/pkgs/development/libraries/sqlite/default.nix b/pkgs/development/libraries/sqlite/default.nix index c834c47ba9476..38eb1a06284f3 100644 --- a/pkgs/development/libraries/sqlite/default.nix +++ b/pkgs/development/libraries/sqlite/default.nix @@ -10,7 +10,7 @@ stdenv.mkDerivation { sha256 = "19j73j44akqgc6m82wm98yvnmm3mfzmfqr8mp3n7n080d53q4wdw"; }; - outputs = [ "dev" "out" "bin" ]; + outputs = [ "bin" "dev" "out" ]; buildInputs = lib.optionals interactive [ readline ncurses ]; diff --git a/pkgs/development/libraries/wolfssl/default.nix b/pkgs/development/libraries/wolfssl/default.nix index ca883cc79e736..7ddd56541aa20 100644 --- a/pkgs/development/libraries/wolfssl/default.nix +++ b/pkgs/development/libraries/wolfssl/default.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { sha256 = "0b1a9rmzpzjblj0gsrzas2aljivd0gfimcsj8gjl80ng25zgmaxr"; }; - outputs = [ "dev" "out" "doc" "lib" ]; + outputs = [ "out" "dev" "doc" "lib" ]; nativeBuildInputs = [ autoreconfHook ]; diff --git a/pkgs/development/libraries/xcb-util-cursor/HEAD.nix b/pkgs/development/libraries/xcb-util-cursor/HEAD.nix index 1b6d07bfc3416..af1a3b4e095ea 100644 --- a/pkgs/development/libraries/xcb-util-cursor/HEAD.nix +++ b/pkgs/development/libraries/xcb-util-cursor/HEAD.nix @@ -18,7 +18,7 @@ stdenv.mkDerivation rec { platforms = platforms.linux ++ platforms.darwin; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; buildInputs = [ autoconf diff --git a/pkgs/development/libraries/zlib/default.nix b/pkgs/development/libraries/zlib/default.nix index 77f576239a976..e61001e7d6dbc 100644 --- a/pkgs/development/libraries/zlib/default.nix +++ b/pkgs/development/libraries/zlib/default.nix @@ -20,7 +20,7 @@ stdenv.mkDerivation rec { --replace 'ARFLAGS="-o"' 'ARFLAGS="-r"' ''; - outputs = [ "dev" "out" "static" ]; + outputs = [ "out" "dev" "static" ]; setOutputFlags = false; outputDoc = "dev"; # single tiny man3 page diff --git a/pkgs/development/tools/misc/autogen/default.nix b/pkgs/development/tools/misc/autogen/default.nix index 8170fc46f3402..251387e7bd51a 100644 --- a/pkgs/development/tools/misc/autogen/default.nix +++ b/pkgs/development/tools/misc/autogen/default.nix @@ -9,7 +9,7 @@ stdenv.mkDerivation rec { sha256 = "01d4m8ckww12sy50vgyxlnz83z9dxqpyqp153cscncc9w6jq19d7"; }; - outputs = [ "dev" "bin" "lib" "out" "man" "info" ]; + outputs = [ "bin" "dev" "lib" "out" "man" "info" ]; nativeBuildInputs = [ which pkgconfig perl ]; buildInputs = [ guile libxml2 ]; diff --git a/pkgs/misc/cups/default.nix b/pkgs/misc/cups/default.nix index 6c71703777771..38a22a01d955f 100644 --- a/pkgs/misc/cups/default.nix +++ b/pkgs/misc/cups/default.nix @@ -19,7 +19,7 @@ stdenv.mkDerivation rec { }; # FIXME: the cups libraries contains some $out/share strings so can't be split. - outputs = [ "dev" "out" "man" ]; # TODO: above + outputs = [ "out" "dev" "man" ]; # TODO: above buildInputs = [ pkgconfig zlib libjpeg libpng libtiff libusb gnutls libpaper ] ++ optionals stdenv.isLinux [ avahi pam dbus systemd acl ] diff --git a/pkgs/os-specific/linux/alsa-lib/default.nix b/pkgs/os-specific/linux/alsa-lib/default.nix index 985d04299dbde..a839158d0cfd8 100644 --- a/pkgs/os-specific/linux/alsa-lib/default.nix +++ b/pkgs/os-specific/linux/alsa-lib/default.nix @@ -25,7 +25,7 @@ stdenv.mkDerivation rec { sed -i -e 's/u_int\([0-9]*\)_t/uint\1_t/g' include/pcm.h ''; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; crossAttrs = { patchPhase = '' diff --git a/pkgs/os-specific/linux/bluez/bluez5.nix b/pkgs/os-specific/linux/bluez/bluez5.nix index c08a04ae5f53e..22b6f5d6354c2 100644 --- a/pkgs/os-specific/linux/bluez/bluez5.nix +++ b/pkgs/os-specific/linux/bluez/bluez5.nix @@ -23,7 +23,7 @@ stdenv.mkDerivation rec { # gstreamer gst_plugins_base ]; - outputs = [ "dev" "out" "test" ]; + outputs = [ "out" "dev" "test" ]; patches = [ ./bluez-5.37-obexd_without_systemd-1.patch ]; diff --git a/pkgs/os-specific/linux/libcap/default.nix b/pkgs/os-specific/linux/libcap/default.nix index 13d2fb7f5c5a4..088d2ae234c22 100644 --- a/pkgs/os-specific/linux/libcap/default.nix +++ b/pkgs/os-specific/linux/libcap/default.nix @@ -10,7 +10,7 @@ stdenv.mkDerivation rec { sha256 = "0qjiqc5pknaal57453nxcbz3mn1r4hkyywam41wfcglq3v2qlg39"; }; - outputs = [ "dev" "lib" "doc" "out" ] + outputs = [ "out" "dev" "lib" "doc" ] ++ stdenv.lib.optional (pam != null) "pam"; nativeBuildInputs = [ perl ]; diff --git a/pkgs/os-specific/linux/libnl/default.nix b/pkgs/os-specific/linux/libnl/default.nix index 7e6fd1d19909e..481d134b46103 100644 --- a/pkgs/os-specific/linux/libnl/default.nix +++ b/pkgs/os-specific/linux/libnl/default.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation { owner = "thom311"; }; - outputs = [ "dev" "bin" "out" "man" ]; + outputs = [ "bin" "dev" "out" "man" ]; nativeBuildInputs = [ autoreconfHook bison flex pkgconfig ]; diff --git a/pkgs/os-specific/linux/systemd/libudev.nix b/pkgs/os-specific/linux/systemd/libudev.nix index a22ff806a0e79..401e1ba68050d 100644 --- a/pkgs/os-specific/linux/systemd/libudev.nix +++ b/pkgs/os-specific/linux/systemd/libudev.nix @@ -4,7 +4,7 @@ stdenv.mkDerivation { name = "libudev-${systemd.version}"; unpackPhase = ":"; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; installPhase = '' mkdir -p "$out/lib" "$dev/lib/pkgconfig" "$dev/include" cp -P "${systemd}"/lib/libudev.* "$out/lib/" diff --git a/pkgs/os-specific/linux/v4l-utils/default.nix b/pkgs/os-specific/linux/v4l-utils/default.nix index dbb3e60c33576..11a9808392aad 100644 --- a/pkgs/os-specific/linux/v4l-utils/default.nix +++ b/pkgs/os-specific/linux/v4l-utils/default.nix @@ -23,7 +23,7 @@ stdenv.mkDerivation rec { sha256 = "1h1nhg5cmmzlbipak526nk4bm6d0yb217mll75f3rpg7kz1cqiv1"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; configureFlags = [ "--enable-libv4l" diff --git a/pkgs/servers/computing/slurm/default.nix b/pkgs/servers/computing/slurm/default.nix index 5d65e707fd584..6ae8e410bf211 100644 --- a/pkgs/servers/computing/slurm/default.nix +++ b/pkgs/servers/computing/slurm/default.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { sha256 = "05si1cn7zivggan25brsqfdw0ilvrlnhj96pwv16dh6vfkggzjr1"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; nativeBuildInputs = [ pkgconfig ]; buildInputs = [ diff --git a/pkgs/servers/dns/bind/default.nix b/pkgs/servers/dns/bind/default.nix index bb0928fa1ee39..8663c26322376 100644 --- a/pkgs/servers/dns/bind/default.nix +++ b/pkgs/servers/dns/bind/default.nix @@ -10,7 +10,7 @@ stdenv.mkDerivation rec { sha256 = "0mmhzi4483mkak47wj255a36g3v0yilxwfwlbckr1hssinri5m7q"; }; - outputs = [ "dev" "bin" "out" "man" ]; + outputs = [ "bin" "dev" "out" "man" ]; patches = [ ./dont-keep-configure-flags.patch ./remove-mkdir-var.patch ] ++ stdenv.lib.optional stdenv.isDarwin ./darwin-openssl-linking-fix.patch; diff --git a/pkgs/servers/http/apache-httpd/2.2.nix b/pkgs/servers/http/apache-httpd/2.2.nix index 0bde9baa4bf27..8cab241f85c0f 100644 --- a/pkgs/servers/http/apache-httpd/2.2.nix +++ b/pkgs/servers/http/apache-httpd/2.2.nix @@ -21,7 +21,7 @@ stdenv.mkDerivation rec { }; # FIXME: -dev depends on -doc - outputs = [ "dev" "out" "doc" ]; + outputs = [ "out" "dev" "doc" ]; setOutputFlags = false; # it would move $out/modules, etc. propagatedBuildInputs = [ apr ]; # otherwise mod_* fail to find includes often diff --git a/pkgs/servers/http/apache-httpd/2.4.nix b/pkgs/servers/http/apache-httpd/2.4.nix index f73ca2add068c..5e87164c1b147 100644 --- a/pkgs/servers/http/apache-httpd/2.4.nix +++ b/pkgs/servers/http/apache-httpd/2.4.nix @@ -25,7 +25,7 @@ stdenv.mkDerivation rec { }; # FIXME: -dev depends on -doc - outputs = [ "dev" "out" "doc" ]; + outputs = [ "out" "dev" "doc" ]; setOutputFlags = false; # it would move $out/modules, etc. buildInputs = [perl] ++ diff --git a/pkgs/servers/pulseaudio/default.nix b/pkgs/servers/pulseaudio/default.nix index b6ac7f9475b16..efa5d71a76f15 100644 --- a/pkgs/servers/pulseaudio/default.nix +++ b/pkgs/servers/pulseaudio/default.nix @@ -43,7 +43,7 @@ stdenv.mkDerivation rec { patches = [ ./caps-fix.patch ]; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; nativeBuildInputs = [ pkgconfig intltool autoreconfHook ]; diff --git a/pkgs/servers/sql/mariadb/default.nix b/pkgs/servers/sql/mariadb/default.nix index 97b7a90892a7d..699520a2df555 100644 --- a/pkgs/servers/sql/mariadb/default.nix +++ b/pkgs/servers/sql/mariadb/default.nix @@ -87,7 +87,7 @@ common = rec { # attributes common to both builds client = stdenv.mkDerivation (common // { name = "mariadb-client-${common.version}"; - outputs = [ "dev" "out" "bin" ]; + outputs = [ "bin" "dev" "out" ]; propagatedBuildInputs = [ openssl zlib ]; # required from mariadb.pc diff --git a/pkgs/servers/x11/xorg/overrides.nix b/pkgs/servers/x11/xorg/overrides.nix index 10b0b3ce2ad6e..fab4380ced6d7 100644 --- a/pkgs/servers/x11/xorg/overrides.nix +++ b/pkgs/servers/x11/xorg/overrides.nix @@ -73,7 +73,7 @@ in libxcb = attrs : attrs // { nativeBuildInputs = [ args.python ]; configureFlags = "--enable-xkb --enable-xinput"; - outputs = [ "dev" "out" "doc" ]; + outputs = [ "out" "dev" "doc" ]; }; xcbproto = attrs : attrs // { @@ -81,7 +81,7 @@ in }; libX11 = attrs: attrs // { - outputs = [ "dev" "out" "man" ]; + outputs = [ "out" "dev" "man" ]; preConfigure = setMalloc0ReturnsNullCrossCompiling + '' sed 's,^as_dummy.*,as_dummy="\$PATH",' -i configure ''; @@ -101,15 +101,15 @@ in }; libXau = attrs: attrs // { - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; }; libXdmcp = attrs: attrs // { - outputs = [ "dev" "out" "doc" ]; + outputs = [ "out" "dev" "doc" ]; }; libXfont = attrs: attrs // { - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; propagatedBuildInputs = [ args.freetype ]; # propagate link reqs. like bzip2 # prevents "misaligned_stack_error_entering_dyld_stub_binder" configureFlags = lib.optionals isDarwin [ @@ -118,7 +118,7 @@ in }; libXxf86vm = attrs: attrs // { - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; preConfigure = setMalloc0ReturnsNullCrossCompiling; }; @@ -131,7 +131,7 @@ in ''; propagatedBuildInputs = [ xorg.libSM ]; CPP = stdenv.lib.optionalString stdenv.isDarwin "clang -E -"; - outputs = [ "dev" "out" "docdev" ]; + outputs = [ "out" "dev" "docdev" ]; }; # See https://bugs.freedesktop.org/show_bug.cgi?id=47792 @@ -145,29 +145,29 @@ in }; libICE = attrs: attrs // { - outputs = [ "dev" "out" "doc" ]; + outputs = [ "out" "dev" "doc" ]; }; libXcomposite = attrs: attrs // { - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; propagatedBuildInputs = [ xorg.libXfixes ]; }; libXaw = attrs: attrs // { - outputs = [ "dev" "out" "docdev" ]; + outputs = [ "out" "dev" "docdev" ]; propagatedBuildInputs = [ xorg.libXmu ]; }; libXcursor = attrs: attrs // { - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; }; libXdamage = attrs: attrs // { - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; }; libXft = attrs: attrs // { - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; propagatedBuildInputs = [ xorg.libXrender args.freetype args.fontconfig ]; preConfigure = setMalloc0ReturnsNullCrossCompiling; # the include files need ft2build.h, and Requires.private isn't enough for us @@ -177,59 +177,59 @@ in }; libXext = attrs: attrs // { - outputs = [ "dev" "out" "doc" ]; + outputs = [ "out" "dev" "doc" ]; propagatedBuildInputs = [ xorg.xproto xorg.libXau ]; preConfigure = setMalloc0ReturnsNullCrossCompiling; }; libXfixes = attrs: attrs // { - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; }; libXi = attrs: attrs // { - outputs = [ "dev" "out" "doc" ]; + outputs = [ "out" "dev" "doc" ]; }; libXinerama = attrs: attrs // { - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; }; libXmu = attrs: attrs // { - outputs = [ "dev" "out" "doc" ]; + outputs = [ "out" "dev" "doc" ]; buildFlags = ''BITMAP_DEFINES=-DBITMAPDIR=\"/no-such-path\"''; }; libXrandr = attrs: attrs // { - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; preConfigure = setMalloc0ReturnsNullCrossCompiling; propagatedBuildInputs = [xorg.libXrender]; }; libSM = attrs: attrs // { - outputs = [ "dev" "out" "doc" ]; + outputs = [ "out" "dev" "doc" ]; propagatedBuildInputs = [ xorg.libICE ]; }; libXrender = attrs: attrs // { - outputs = [ "dev" "out" "doc" ]; + outputs = [ "out" "dev" "doc" ]; preConfigure = setMalloc0ReturnsNullCrossCompiling; }; libXres = attrs: attrs // { - outputs = [ "dev" "out" "docdev" ]; + outputs = [ "out" "dev" "docdev" ]; }; libXv = attrs: attrs // { - outputs = [ "dev" "out" "docdev" ]; + outputs = [ "out" "dev" "docdev" ]; }; libXvMC = attrs: attrs // { - outputs = [ "dev" "out" "doc" ]; + outputs = [ "out" "dev" "doc" ]; buildInputs = attrs.buildInputs ++ [xorg.renderproto]; }; libXpm = attrs: attrs // { - outputs = [ "dev" "out" "bin" ]; # tiny man in $bin + outputs = [ "bin" "dev" "out" ]; # tiny man in $bin patchPhase = "sed -i '/USE_GETTEXT_TRUE/d' sxpm/Makefile.in cxpm/Makefile.in"; }; @@ -237,11 +237,11 @@ in // { buildInputs = with xorg; attrs.buildInputs ++ [ libXext libXfixes libXrandr ]; }; libxkbfile = attrs: attrs // { - outputs = [ "dev" "out" ]; # mainly to avoid propagation + outputs = [ "out" "dev" ]; # mainly to avoid propagation }; libxshmfence = attrs: attrs // { - outputs = [ "dev" "out" ]; # mainly to avoid propagation + outputs = [ "out" "dev" ]; # mainly to avoid propagation }; libpciaccess = attrs: attrs // { @@ -265,32 +265,32 @@ in }; xcbutil = attrs: attrs // { - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; }; xcbutilcursor = attrs: attrs // { - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; meta = attrs.meta // { maintainers = [ stdenv.lib.maintainers.lovek323 ]; }; }; xcbutilimage = attrs: attrs // { - outputs = [ "dev" "out" ]; # mainly to get rid of propagating others + outputs = [ "out" "dev" ]; # mainly to get rid of propagating others }; xcbutilkeysyms = attrs: attrs // { - outputs = [ "dev" "out" ]; # mainly to get rid of propagating others + outputs = [ "out" "dev" ]; # mainly to get rid of propagating others }; xcbutilrenderutil = attrs: attrs // { - outputs = [ "dev" "out" ]; # mainly to get rid of propagating others + outputs = [ "out" "dev" ]; # mainly to get rid of propagating others }; xcbutilwm = attrs: attrs // { - outputs = [ "dev" "out" ]; # mainly to get rid of propagating others + outputs = [ "out" "dev" ]; # mainly to get rid of propagating others }; xf86inputevdev = attrs: attrs // { - outputs = [ "dev" "out" ]; # to get rid of xorgserver.dev; man is tiny + outputs = [ "out" "dev" ]; # to get rid of xorgserver.dev; man is tiny preBuild = "sed -e '/motion_history_proc/d; /history_size/d;' -i src/*.c"; installFlags = "sdkdir=\${out}/include/xorg"; buildInputs = attrs.buildInputs ++ [ args.mtdev args.libevdev ]; @@ -310,7 +310,7 @@ in }; xf86inputsynaptics = attrs: attrs // { - outputs = [ "dev" "out" ]; # *.pc pulls xorgserver.dev + outputs = [ "out" "dev" ]; # *.pc pulls xorgserver.dev buildInputs = attrs.buildInputs ++ [args.mtdev args.libevdev]; installFlags = "sdkdir=\${out}/include/xorg configdir=\${out}/share/X11/xorg.conf.d"; }; @@ -420,7 +420,7 @@ in in if (!isDarwin) then { - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; buildInputs = [ makeWrapper ] ++ commonBuildInputs; propagatedBuildInputs = [ libpciaccess args.epoxy ] ++ commonPropagatedBuildInputs ++ lib.optionals stdenv.isLinux [ args.udev diff --git a/pkgs/tools/compression/bzip2/default.nix b/pkgs/tools/compression/bzip2/default.nix index d12169a0fd9a3..cabd412fe65d3 100644 --- a/pkgs/tools/compression/bzip2/default.nix +++ b/pkgs/tools/compression/bzip2/default.nix @@ -24,7 +24,7 @@ stdenv.mkDerivation rec { sed -i -e '//s|\\|/|' bzip2.c ''; - outputs = [ "dev" "bin" "out" "man" ]; + outputs = [ "bin" "dev" "out" "man" ]; configureFlags = stdenv.lib.optionals linkStatic [ "--enable-static" "--disable-shared" ]; diff --git a/pkgs/tools/compression/xz/default.nix b/pkgs/tools/compression/xz/default.nix index 64571e24d9a30..3092bd840c4f7 100644 --- a/pkgs/tools/compression/xz/default.nix +++ b/pkgs/tools/compression/xz/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "1da071wyx921pyx3zkxlnbpp14p6km98pnp66mg1arwi9dxgbxbg"; }; - outputs = [ "dev" "out" "bin" "man" "doc" ]; + outputs = [ "bin" "dev" "out" "man" "doc" ]; doCheck = true; diff --git a/pkgs/tools/filesystems/xfsprogs/default.nix b/pkgs/tools/filesystems/xfsprogs/default.nix index 96e7931f14c8e..ed41470f60017 100644 --- a/pkgs/tools/filesystems/xfsprogs/default.nix +++ b/pkgs/tools/filesystems/xfsprogs/default.nix @@ -27,7 +27,7 @@ stdenv.mkDerivation rec { propagatedBuildInputs = [ libuuid ]; buildInputs = [ gettext readline ]; - outputs = [ "dev" "out" "bin" ]; # TODO: review xfs + outputs = [ "bin" "dev" "out" ]; # TODO: review xfs preConfigure = '' NIX_LDFLAGS="$(echo $NIX_LDFLAGS | sed "s,$out,$lib,g")" diff --git a/pkgs/tools/graphics/pfstools/default.nix b/pkgs/tools/graphics/pfstools/default.nix index 90072373124e7..076f20c95c427 100644 --- a/pkgs/tools/graphics/pfstools/default.nix +++ b/pkgs/tools/graphics/pfstools/default.nix @@ -9,7 +9,7 @@ stdenv.mkDerivation rec { sha256 = "1fyc2c7jzr7k797c2dqyyvapzc3szxwcp48r382yxz2yq558xgd9"; }; - outputs = [ "dev" "out" "doc"]; + outputs = [ "out" "dev" "doc"]; cmakeFlags = '' -DWITH_MATLAB=false diff --git a/pkgs/tools/graphics/pstoedit/default.nix b/pkgs/tools/graphics/pstoedit/default.nix index 094d9deadbf1b..93fc901aacfd3 100644 --- a/pkgs/tools/graphics/pstoedit/default.nix +++ b/pkgs/tools/graphics/pstoedit/default.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { sha256 = "130kz0ghsrggdn70kygrmsy3n533hwd948q69vyvqz44yw9n3f06"; }; - outputs = [ "dev" "out" ]; + outputs = [ "out" "dev" ]; nativeBuildInputs = [ pkgconfig ]; buildInputs = [ zlib ghostscript imagemagick plotutils gd libjpeg libwebp ]; diff --git a/pkgs/tools/networking/curl/default.nix b/pkgs/tools/networking/curl/default.nix index 5e7010def5413..e5c1326ba56dc 100644 --- a/pkgs/tools/networking/curl/default.nix +++ b/pkgs/tools/networking/curl/default.nix @@ -25,7 +25,7 @@ stdenv.mkDerivation rec { sha256 = "0mjidq4q0hikhis2d35kzkhx6xfcgl875mk5ph5d98fa9kswa4iw"; }; - outputs = [ "dev" "out" "bin" "man" "docdev" ]; + outputs = [ "bin" "dev" "out" "man" "docdev" ]; nativeBuildInputs = [ pkgconfig perl ]; diff --git a/pkgs/tools/package-management/nix/default.nix b/pkgs/tools/package-management/nix/default.nix index bf3f8aed712b9..0efb208ad0dd8 100644 --- a/pkgs/tools/package-management/nix/default.nix +++ b/pkgs/tools/package-management/nix/default.nix @@ -9,7 +9,7 @@ let common = { name, src }: stdenv.mkDerivation rec { inherit name src; - outputs = [ "dev" "out" "man" "doc" ]; + outputs = [ "out" "dev" "man" "doc" ]; nativeBuildInputs = [ perl pkgconfig ]; diff --git a/pkgs/tools/security/tcpcrypt/default.nix b/pkgs/tools/security/tcpcrypt/default.nix index 48eefcb0f187e..222b861f937cc 100644 --- a/pkgs/tools/security/tcpcrypt/default.nix +++ b/pkgs/tools/security/tcpcrypt/default.nix @@ -18,7 +18,7 @@ stdenv.mkDerivation rec { postUnpack = ''mkdir -vp $sourceRoot/m4''; - outputs = [ "dev" "out" "bin" ]; + outputs = [ "bin" "dev" "out" ]; nativeBuildInputs = [ autoreconfHook ]; buildInputs = [ openssl ] ++ optionals stdenv.isLinux [ libcap libpcap libnfnetlink libnetfilter_conntrack libnetfilter_queue ]; diff --git a/pkgs/tools/system/awstats/default.nix b/pkgs/tools/system/awstats/default.nix index 2883a364548d8..ecf31d6c9d6e8 100644 --- a/pkgs/tools/system/awstats/default.nix +++ b/pkgs/tools/system/awstats/default.nix @@ -14,7 +14,7 @@ perlPackages.buildPerlPackage rec { --replace /usr/share/awstats/ "$out/wwwroot/cgi-bin/" ''; - outputs = [ "out" "bin" "doc" ]; # bin just links the user-run executable + outputs = [ "bin" "out" "doc" ]; # bin just links the user-run executable propagatedBuildOutputs = [ ]; # otherwise out propagates bin -> cycle buildInputs = with perlPackages; [ ]; # plugins will need some From e065baafba77424066e959758681bbcc62c335f7 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Sun, 24 Jan 2016 04:28:59 +0200 Subject: [PATCH 05/62] glibc: Make one exception for output order Usages like '${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2' are much more common than the bin output. --- pkgs/development/libraries/glibc/common.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/glibc/common.nix b/pkgs/development/libraries/glibc/common.nix index e079721271bcd..15c455b7afb8f 100644 --- a/pkgs/development/libraries/glibc/common.nix +++ b/pkgs/development/libraries/glibc/common.nix @@ -110,7 +110,7 @@ stdenv.mkDerivation ({ installFlags = [ "sysconfdir=$(out)/etc" ]; - outputs = [ "bin" "dev" "out" "static" ]; + outputs = [ "out" "bin" "dev" "static" ]; buildInputs = lib.optionals (cross != null) [ gccCross ] ++ lib.optionals withGd [ gd libpng ]; From 0e26cf84fc612aa0911f8d64179fb01f5c167cf2 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Sat, 16 Apr 2016 21:27:04 +0300 Subject: [PATCH 06/62] kernel: Remove propagatedBuildOutputs Not needed after the shuffle. --- pkgs/os-specific/linux/kernel/manual-config.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/kernel/manual-config.nix b/pkgs/os-specific/linux/kernel/manual-config.nix index f4693417e205b..4ab688c26af3d 100644 --- a/pkgs/os-specific/linux/kernel/manual-config.nix +++ b/pkgs/os-specific/linux/kernel/manual-config.nix @@ -74,7 +74,7 @@ let installsFirmware = (config.isEnabled "FW_LOADER") && (isModular || (config.isDisabled "FIRMWARE_IN_KERNEL")); - in (optionalAttrs isModular { outputs = [ "out" "dev" ]; propagatedBuildOutputs = ""; }) // { + in (optionalAttrs isModular { outputs = [ "out" "dev" ]; }) // { passthru = { inherit version modDirVersion config kernelPatches configfile; }; From ba6d94e6a54b758e8eff6d94a3b04707058e0862 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Sun, 17 Apr 2016 04:52:43 +0300 Subject: [PATCH 07/62] ruby: dev -> devEnv Otherwise conflicts with the convention of `dev` output. --- pkgs/development/interpreters/ruby/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/interpreters/ruby/default.nix b/pkgs/development/interpreters/ruby/default.nix index 446013faafdc3..51f16360f8bf1 100644 --- a/pkgs/development/interpreters/ruby/default.nix +++ b/pkgs/development/interpreters/ruby/default.nix @@ -156,7 +156,7 @@ let baseRuby = baseruby; libPath = "lib/${rubyEngine}/${versionNoPatch}"; gemPath = "lib/${rubyEngine}/gems/${versionNoPatch}"; - dev = import ./dev.nix { + devEnv = import ./dev.nix { inherit buildEnv bundler bundix; ruby = self; }; From 8ed3d6a7e5da26f5a4d89e9bcb138504ab031935 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Sun, 17 Apr 2016 06:25:09 +0300 Subject: [PATCH 08/62] cmake 2.8: Fix build with shuffled outputs --- pkgs/development/tools/build-managers/cmake/2.8.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/tools/build-managers/cmake/2.8.nix b/pkgs/development/tools/build-managers/cmake/2.8.nix index 885e10b465ae4..3191d8293ef2f 100644 --- a/pkgs/development/tools/build-managers/cmake/2.8.nix +++ b/pkgs/development/tools/build-managers/cmake/2.8.nix @@ -48,7 +48,7 @@ stdenv.mkDerivation rec { propagatedBuildInputs = optional wantPS ps; CMAKE_PREFIX_PATH = concatStringsSep ":" - (concatMap (p: [ p p.out ]) buildInputs); + (concatMap (p: [ (p.dev or p) (p.out or p) ]) buildInputs); configureFlags = "--docdir=/share/doc/${name} --mandir=/share/man --system-libs" From fd4b3dcccb5a551d5424a0a7ee6000d16d72cfc0 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Sun, 17 Apr 2016 15:32:35 +0300 Subject: [PATCH 09/62] gmp{4,5}: Split into multiple outputs Keep all versions consistent so that e.g. 'gmp.dev' is always available, regardless of version. --- pkgs/development/libraries/gmp/4.3.2.nix | 11 +++++++++-- pkgs/development/libraries/gmp/5.1.x.nix | 11 ++++++++--- pkgs/development/libraries/gmp/6.x.nix | 2 +- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/pkgs/development/libraries/gmp/4.3.2.nix b/pkgs/development/libraries/gmp/4.3.2.nix index 02d24d21900bf..1cb7fd42ccec0 100644 --- a/pkgs/development/libraries/gmp/4.3.2.nix +++ b/pkgs/development/libraries/gmp/4.3.2.nix @@ -1,6 +1,6 @@ { stdenv, fetchurl, m4, cxx ? true }: -stdenv.mkDerivation rec { +let self = stdenv.mkDerivation rec { name = "gmp-4.3.2"; src = fetchurl { @@ -8,6 +8,12 @@ stdenv.mkDerivation rec { sha256 = "0x8prpqi9amfcmi7r4zrza609ai9529pjaq0h4aw51i867064qck"; }; + #outputs TODO: split $cxx due to libstdc++ dependency + # maybe let ghc use a version with *.so shared with rest of nixpkgs and *.a added + # - see #5855 for related discussion + outputs = [ "out" "dev" "info" ]; + passthru.static = self.out; + nativeBuildInputs = [ m4 ]; # Prevent the build system from using sub-architecture-specific @@ -60,4 +66,5 @@ stdenv.mkDerivation rec { maintainers = [ ]; platforms = stdenv.lib.platforms.all; }; -} +}; + in self diff --git a/pkgs/development/libraries/gmp/5.1.x.nix b/pkgs/development/libraries/gmp/5.1.x.nix index c6cbfdd89b418..b5cd936ce4f29 100644 --- a/pkgs/development/libraries/gmp/5.1.x.nix +++ b/pkgs/development/libraries/gmp/5.1.x.nix @@ -2,7 +2,7 @@ with { inherit (stdenv.lib) optional optionalString; }; -stdenv.mkDerivation rec { +let self = stdenv.mkDerivation rec { name = "gmp-5.1.3"; src = fetchurl { # we need to use bz2, others aren't in bootstrapping stdenv @@ -10,7 +10,11 @@ stdenv.mkDerivation rec { sha256 = "0q5i39pxrasgn9qdxzpfbwhh11ph80p57x6hf48m74261d97j83m"; }; - outputs = [ "out" "info" ]; + #outputs TODO: split $cxx due to libstdc++ dependency + # maybe let ghc use a version with *.so shared with rest of nixpkgs and *.a added + # - see #5855 for related discussion + outputs = [ "out" "dev" "info" ]; + passthru.static = self.out; nativeBuildInputs = [ m4 ]; @@ -76,4 +80,5 @@ stdenv.mkDerivation rec { platforms = platforms.all; maintainers = [ maintainers.peti ]; }; -} +}; + in self diff --git a/pkgs/development/libraries/gmp/6.x.nix b/pkgs/development/libraries/gmp/6.x.nix index f40885c860a63..4d12ed8a8b18a 100644 --- a/pkgs/development/libraries/gmp/6.x.nix +++ b/pkgs/development/libraries/gmp/6.x.nix @@ -10,7 +10,7 @@ let self = stdenv.mkDerivation rec { sha256 = "1mpzprdzkgfpdc1v2lf4dxlxps4x8bvmzvd8n1ri6gw9y9jrh458"; }; - #outputs TODO: split $cxx due to libstdc++ dependency; maybe port to gmp5; + #outputs TODO: split $cxx due to libstdc++ dependency # maybe let ghc use a version with *.so shared with rest of nixpkgs and *.a added # - see #5855 for related discussion outputs = [ "out" "dev" "info" ]; From 7c1607ae6579b34bd4e131f0a776c23612a04fec Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Fri, 26 Aug 2016 00:08:24 +0300 Subject: [PATCH 10/62] webkitgtk: Few last missing 'dev' references --- pkgs/development/libraries/webkitgtk/2.10.nix | 2 +- pkgs/development/libraries/webkitgtk/2.12.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/webkitgtk/2.10.nix b/pkgs/development/libraries/webkitgtk/2.10.nix index a76a19ad41d3e..e74cc6421b243 100644 --- a/pkgs/development/libraries/webkitgtk/2.10.nix +++ b/pkgs/development/libraries/webkitgtk/2.10.nix @@ -59,7 +59,7 @@ stdenv.mkDerivation rec { # XXX: WebKit2 missing include path for gst-plugins-base. # Filled: https://bugs.webkit.org/show_bug.cgi?id=148894 - NIX_CFLAGS_COMPILE = "-I${gst-plugins-base}/include/gstreamer-1.0"; + NIX_CFLAGS_COMPILE = "-I${gst-plugins-base.dev}/include/gstreamer-1.0"; nativeBuildInputs = [ cmake perl python ruby bison gperf sqlite diff --git a/pkgs/development/libraries/webkitgtk/2.12.nix b/pkgs/development/libraries/webkitgtk/2.12.nix index 05bd5ccb69c2e..3de8a9420824d 100644 --- a/pkgs/development/libraries/webkitgtk/2.12.nix +++ b/pkgs/development/libraries/webkitgtk/2.12.nix @@ -35,7 +35,7 @@ stdenv.mkDerivation rec { # XXX: WebKit2 missing include path for gst-plugins-base. # Filled: https://bugs.webkit.org/show_bug.cgi?id=148894 - NIX_CFLAGS_COMPILE = "-I${gst-plugins-base}/include/gstreamer-1.0"; + NIX_CFLAGS_COMPILE = "-I${gst-plugins-base.dev}/include/gstreamer-1.0"; nativeBuildInputs = [ cmake perl python ruby bison gperf sqlite From 55fa3b52a36d821799c77a1e019847e7f748759b Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Fri, 26 Aug 2016 00:09:16 +0300 Subject: [PATCH 11/62] php: Fix mysql reference TODO: Fix the mysql expression so this isn't needed. --- pkgs/development/interpreters/php/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/interpreters/php/default.nix b/pkgs/development/interpreters/php/default.nix index 7c1fe8f296749..9ae5865b0d7f5 100644 --- a/pkgs/development/interpreters/php/default.nix +++ b/pkgs/development/interpreters/php/default.nix @@ -108,12 +108,12 @@ let mysql = { configureFlags = ["--with-mysql"]; - buildInputs = [ mysql.lib ]; + buildInputs = [ mysql.lib.dev ]; }; mysqli = { - configureFlags = ["--with-mysqli=${mysql.lib}/bin/mysql_config"]; - buildInputs = [ mysql.lib ]; + configureFlags = ["--with-mysqli=${mysql.lib.dev}/bin/mysql_config"]; + buildInputs = [ mysql.lib.dev ]; }; mysqli_embedded = { @@ -123,8 +123,8 @@ let }; pdo_mysql = { - configureFlags = ["--with-pdo-mysql=${mysql.lib}"]; - buildInputs = [ mysql.lib ]; + configureFlags = ["--with-pdo-mysql=${mysql.lib.dev}"]; + buildInputs = [ mysql.lib.dev ]; }; bcmath = { From 040fadf345ede2abd5fff9f93889c08a1e2d4d2a Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Fri, 26 Aug 2016 22:51:54 +0300 Subject: [PATCH 12/62] glibc_multi: Fix unnoticed output shuffle --- pkgs/development/libraries/glibc/multi.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/glibc/multi.nix b/pkgs/development/libraries/glibc/multi.nix index 0d7bed99f22f0..c7c69b879fbe2 100644 --- a/pkgs/development/libraries/glibc/multi.nix +++ b/pkgs/development/libraries/glibc/multi.nix @@ -6,7 +6,7 @@ let glibc64 = glibc; in runCommand "${nameVersion.name}-multi-${nameVersion.version}" - { outputs = [ "dev" "out" "bin" ]; } # TODO: no static version here (yet) + { outputs = [ "bin" "dev" "out"]; } # TODO: no static version here (yet) '' mkdir -p "$out/lib" ln -s '${glibc64.out}'/lib/* "$out/lib" From 2f50cfe25fce59a6f90feb575361d2e5ed949b35 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Fri, 26 Aug 2016 22:52:15 +0300 Subject: [PATCH 13/62] qt5: Shuffle outputs Unnoticed by the scripts. --- pkgs/development/libraries/kde-frameworks/default.nix | 2 +- pkgs/development/libraries/qt-5/5.5/default.nix | 2 +- pkgs/development/libraries/qt-5/5.6/default.nix | 2 +- pkgs/development/libraries/qt-5/5.7/default.nix | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/kde-frameworks/default.nix b/pkgs/development/libraries/kde-frameworks/default.nix index bf27d52dceb5a..22d565d7a44dc 100644 --- a/pkgs/development/libraries/kde-frameworks/default.nix +++ b/pkgs/development/libraries/kde-frameworks/default.nix @@ -24,7 +24,7 @@ let let in stdenv.mkDerivation (args // { - outputs = args.outputs or [ "dev" "out" ]; + outputs = args.outputs or [ "out" "dev" ]; propagatedUserEnvPkgs = builtins.map lib.getBin (args.propagatedBuildInputs or []); diff --git a/pkgs/development/libraries/qt-5/5.5/default.nix b/pkgs/development/libraries/qt-5/5.5/default.nix index 27f6e66a12567..2f252a6cf28f5 100644 --- a/pkgs/development/libraries/qt-5/5.5/default.nix +++ b/pkgs/development/libraries/qt-5/5.5/default.nix @@ -46,7 +46,7 @@ let NIX_QT_SUBMODULE = args.NIX_QT_SUBMODULE or true; - outputs = args.outputs or [ "dev" "out" ]; + outputs = args.outputs or [ "out" "dev" ]; setOutputFlags = args.setOutputFlags or false; setupHook = ./setup-hook.sh; diff --git a/pkgs/development/libraries/qt-5/5.6/default.nix b/pkgs/development/libraries/qt-5/5.6/default.nix index 54624fa99b739..5926267b558ef 100644 --- a/pkgs/development/libraries/qt-5/5.6/default.nix +++ b/pkgs/development/libraries/qt-5/5.6/default.nix @@ -47,7 +47,7 @@ let NIX_QT_SUBMODULE = args.NIX_QT_SUBMODULE or true; - outputs = args.outputs or [ "dev" "out" ]; + outputs = args.outputs or [ "out" "dev" ]; setOutputFlags = args.setOutputFlags or false; setupHook = ./setup-hook.sh; diff --git a/pkgs/development/libraries/qt-5/5.7/default.nix b/pkgs/development/libraries/qt-5/5.7/default.nix index 286ef0887c7ae..927702e81d4a5 100644 --- a/pkgs/development/libraries/qt-5/5.7/default.nix +++ b/pkgs/development/libraries/qt-5/5.7/default.nix @@ -47,7 +47,7 @@ let NIX_QT_SUBMODULE = args.NIX_QT_SUBMODULE or true; - outputs = args.outputs or [ "dev" "out" ]; + outputs = args.outputs or [ "out" "dev" ]; setOutputFlags = args.setOutputFlags or false; setupHook = ./setup-hook.sh; From dcf0e8ac48ab7e043891a5544dfabc21b6af67c5 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Sun, 28 Aug 2016 00:28:02 +0300 Subject: [PATCH 14/62] kde5.plasma: Use 'dev' output of xf86inputsynaptics --- pkgs/desktops/kde-5/plasma/plasma-desktop/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/desktops/kde-5/plasma/plasma-desktop/default.nix b/pkgs/desktops/kde-5/plasma/plasma-desktop/default.nix index dc4e81ef4eaa2..e2b1acd198f91 100644 --- a/pkgs/desktops/kde-5/plasma/plasma-desktop/default.nix +++ b/pkgs/desktops/kde-5/plasma/plasma-desktop/default.nix @@ -36,6 +36,6 @@ plasmaPackage rec { NIX_CFLAGS_COMPILE = [ "-I${xorgserver.dev}/include/xorg" ]; cmakeFlags = [ "-DEvdev_INCLUDE_DIRS=${xf86inputevdev.dev}/include/xorg" - "-DSynaptics_INCLUDE_DIRS=${xf86inputsynaptics}/include/xorg" + "-DSynaptics_INCLUDE_DIRS=${xf86inputsynaptics.dev}/include/xorg" ]; } From 89833c0c72f2bfd2fae43f9be8f307f9a7522e87 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Mon, 29 Aug 2016 03:31:56 +0300 Subject: [PATCH 15/62] binutils: Shuffle outputs --- pkgs/development/tools/misc/binutils/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/tools/misc/binutils/default.nix b/pkgs/development/tools/misc/binutils/default.nix index 667a9aa88c8c6..4c32255e8755c 100644 --- a/pkgs/development/tools/misc/binutils/default.nix +++ b/pkgs/development/tools/misc/binutils/default.nix @@ -34,7 +34,7 @@ stdenv.mkDerivation rec { ./pt-pax-flags.patch ]; - outputs = (optional (cross == null) "dev") ++ [ "out" "info" ]; + outputs = [ "out" "info" ] ++ (optional (cross == null) "dev"); nativeBuildInputs = [ bison ]; buildInputs = [ zlib ]; From 69e51ebf551ea89263531d3a65b7d39f3195afa8 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Mon, 29 Aug 2016 13:56:06 +0300 Subject: [PATCH 16/62] kde-frameworks: Use chooseDevOutputs --- pkgs/development/libraries/kde-frameworks/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/kde-frameworks/default.nix b/pkgs/development/libraries/kde-frameworks/default.nix index 22d565d7a44dc..0b12e42db868f 100644 --- a/pkgs/development/libraries/kde-frameworks/default.nix +++ b/pkgs/development/libraries/kde-frameworks/default.nix @@ -70,7 +70,7 @@ let ecm = let drv = { cmake, ecmNoHooks, pkgconfig, qtbase, qttools }: makeSetupHook - { deps = [ cmake ecmNoHooks pkgconfig qtbase qttools ]; } + { deps = lib.chooseDevOutputs [ cmake ecmNoHooks pkgconfig qtbase qttools ]; } ./setup-hook.sh; in callPackage drv {}; ecmNoHooks = callPackage ./extra-cmake-modules { From 3bfb354145e91aeb681697a954a858e9dce4ecd9 Mon Sep 17 00:00:00 2001 From: Ram Kromberg Date: Mon, 22 Aug 2016 02:26:00 +0300 Subject: [PATCH 17/62] libsoup's vala: 0.23 -> 0.26 Close #17904. --- pkgs/development/libraries/libsoup/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/libsoup/default.nix b/pkgs/development/libraries/libsoup/default.nix index 05026a06c613d..708d2e0e3db31 100644 --- a/pkgs/development/libraries/libsoup/default.nix +++ b/pkgs/development/libraries/libsoup/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchurl, glib, libxml2, pkgconfig , gnomeSupport ? true, libgnome_keyring, sqlite, glib_networking, gobjectIntrospection -, valaSupport ? true, vala_0_23 +, valaSupport ? true, vala_0_32 , libintlOrEmpty , intltool, python }: let @@ -25,7 +25,7 @@ stdenv.mkDerivation { outputs = [ "dev" "out" ]; buildInputs = libintlOrEmpty ++ [ intltool python sqlite ] - ++ stdenv.lib.optionals valaSupport [ vala_0_23 ]; + ++ stdenv.lib.optionals valaSupport [ vala_0_32 ]; nativeBuildInputs = [ pkgconfig ]; propagatedBuildInputs = [ glib libxml2 gobjectIntrospection ] ++ stdenv.lib.optionals gnomeSupport [ libgnome_keyring ]; @@ -33,8 +33,7 @@ stdenv.mkDerivation { # glib_networking is a runtime dependency, not a compile-time dependency configureFlags = "--disable-tls-check" - + stdenv.lib.optionalString (!valaSupport) " --enable-vala=no" - + stdenv.lib.optionalString (valaSupport) " --enable-vala=yes" + + " --enable-vala=${if valaSupport then "yes" else "no"}" + stdenv.lib.optionalString (!gnomeSupport) " --without-gnome"; NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-lintl"; From 475124f78e4176696723f235c518e7f78331286f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Mon, 29 Aug 2016 20:21:32 +0200 Subject: [PATCH 18/62] dejavu_fonts: "symlink-split" a single font file See following commits for "why". --- pkgs/data/fonts/dejavu-fonts/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/data/fonts/dejavu-fonts/default.nix b/pkgs/data/fonts/dejavu-fonts/default.nix index f49f5c9bb0076..6d9abdad2fa4e 100644 --- a/pkgs/data/fonts/dejavu-fonts/default.nix +++ b/pkgs/data/fonts/dejavu-fonts/default.nix @@ -13,6 +13,8 @@ stdenv.mkDerivation rec { sha256 = "1xknlg2h287dx34v2n5r33bpcl4biqf0cv7nak657rjki7s0k4bk"; }; + outputs = [ "out" "minimal" ]; + buildFlags = "full-ttf"; preBuild = "patchShebangs scripts"; @@ -22,6 +24,10 @@ stdenv.mkDerivation rec { for i in $(find build -name '*.ttf'); do cp $i $out/share/fonts/truetype; done; + '' + '' + local fname=share/fonts/truetype/DejaVuSans.ttf + moveToOutput "$fname" "$minimal" + ln -s "$minimal/$fname" "$out/$fname" ''; meta = { From b2e701cb1d3642751533723490918c047f4fcd1a Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Mon, 29 Aug 2016 21:30:52 +0300 Subject: [PATCH 19/62] nix-repl: Use 'dev' output of nix --- pkgs/tools/package-management/nix-repl/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/package-management/nix-repl/default.nix b/pkgs/tools/package-management/nix-repl/default.nix index 43d0d60ac3118..facf47ebca675 100644 --- a/pkgs/tools/package-management/nix-repl/default.nix +++ b/pkgs/tools/package-management/nix-repl/default.nix @@ -21,7 +21,7 @@ stdenv.mkDerivation { mkdir -p $out/bin $CXX -O3 -Wall -std=c++0x \ -o $out/bin/nix-repl nix-repl.cc \ - -I${nix}/include/nix \ + -I${nix.dev}/include/nix \ -lnixformat -lnixutil -lnixstore -lnixexpr -lnixmain -lreadline -lgc \ -DNIX_VERSION=\"${(builtins.parseDrvName nix.name).version}\" ''; From 3f80ecfc79e748ed29368342001592e2693a3138 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Mon, 29 Aug 2016 22:27:34 +0200 Subject: [PATCH 20/62] fontforge: build the non-gui version without fontconfig (in build-time closure) --- pkgs/tools/misc/fontforge/default.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/tools/misc/fontforge/default.nix b/pkgs/tools/misc/fontforge/default.nix index c04b9255afcb5..54551b5af39e9 100644 --- a/pkgs/tools/misc/fontforge/default.nix +++ b/pkgs/tools/misc/fontforge/default.nix @@ -29,9 +29,8 @@ stdenv.mkDerivation rec { buildInputs = [ git autoconf automake gnum4 libtool perl pkgconfig gettext uthash python freetype zlib glib libungif libpng libjpeg libtiff libxml2 - pango ] - ++ lib.optionals withGTK [ gtk2 ] + ++ lib.optionals withGTK [ gtk2 pango ] ++ lib.optionals (withGTK && stdenv.isDarwin) [ Carbon Cocoa ]; configureFlags = From 4f73633f26e80fb8b06f68793973c6e5089c790c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Mon, 29 Aug 2016 22:28:50 +0200 Subject: [PATCH 21/62] treewide: stop using fontbhttf --- nixos/modules/config/fonts/fonts.nix | 2 +- pkgs/development/libraries/fontconfig/default.nix | 8 ++++---- .../development/libraries/fontconfig/make-fonts-cache.nix | 2 +- pkgs/development/libraries/fontconfig/make-fonts-conf.nix | 6 +++--- pkgs/servers/x11/xquartz/default.nix | 1 - pkgs/top-level/all-packages.nix | 6 +++--- 6 files changed, 12 insertions(+), 13 deletions(-) diff --git a/nixos/modules/config/fonts/fonts.nix b/nixos/modules/config/fonts/fonts.nix index ea0a670385726..f913b8c33e56f 100644 --- a/nixos/modules/config/fonts/fonts.nix +++ b/nixos/modules/config/fonts/fonts.nix @@ -22,7 +22,7 @@ with lib; config = { fonts.fonts = - [ pkgs.xorg.fontbhttf + [ pkgs.xorg.fontbhlucidatypewriter100dpi pkgs.xorg.fontbhlucidatypewriter75dpi pkgs.dejavu_fonts diff --git a/pkgs/development/libraries/fontconfig/default.nix b/pkgs/development/libraries/fontconfig/default.nix index 74048afe731e5..cf003344e528f 100644 --- a/pkgs/development/libraries/fontconfig/default.nix +++ b/pkgs/development/libraries/fontconfig/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, fetchpatch, pkgconfig, freetype, expat, libxslt, fontbhttf +{ stdenv, fetchurl, fetchpatch, pkgconfig, freetype, expat, libxslt, dejavu_fonts , substituteAll }: /** Font configuration scheme @@ -44,8 +44,8 @@ stdenv.mkDerivation rec { configureFlags = [ "--with-cache-dir=/var/cache/fontconfig" # otherwise the fallback is in $out/ "--disable-docs" - # just ~1MB; this is what you get when loading config fails for some reason - "--with-default-fonts=${fontbhttf}" + # just <1MB; this is what you get when loading config fails for some reason + "--with-default-fonts=${dejavu_fonts.minimal}" ]; # We should find a better way to access the arch reliably. @@ -66,7 +66,7 @@ stdenv.mkDerivation rec { postInstall = '' cd "$out/etc/fonts" - "${libxslt.bin}/bin/xsltproc" --stringparam fontDirectories "${fontbhttf}" \ + "${libxslt.bin}/bin/xsltproc" --stringparam fontDirectories "${dejavu_fonts.minimal}" \ --stringparam fontconfigConfigVersion "${configVersion}" \ --path $out/share/xml/fontconfig \ ${./make-fonts-conf.xsl} $out/etc/fonts/fonts.conf \ diff --git a/pkgs/development/libraries/fontconfig/make-fonts-cache.nix b/pkgs/development/libraries/fontconfig/make-fonts-cache.nix index b996cd228c77d..53c2a335cc0b4 100644 --- a/pkgs/development/libraries/fontconfig/make-fonts-cache.nix +++ b/pkgs/development/libraries/fontconfig/make-fonts-cache.nix @@ -1,4 +1,4 @@ -{ runCommand, lib, writeText, fontconfig, fontbhttf, fontDirectories }: +{ runCommand, lib, writeText, fontconfig, fontDirectories }: runCommand "fc-cache" rec { diff --git a/pkgs/development/libraries/fontconfig/make-fonts-conf.nix b/pkgs/development/libraries/fontconfig/make-fonts-conf.nix index 2d0a21ea9ddfe..3cd4a894b37ff 100644 --- a/pkgs/development/libraries/fontconfig/make-fonts-conf.nix +++ b/pkgs/development/libraries/fontconfig/make-fonts-conf.nix @@ -1,10 +1,10 @@ -{ runCommand, libxslt, fontconfig, fontbhttf, fontDirectories }: +{ runCommand, libxslt, fontconfig, dejavu_fonts, fontDirectories }: runCommand "fonts.conf" { buildInputs = [ libxslt fontconfig ]; - # Add a default font for non-nixos systems. fontbhttf is only about 1mb. - fontDirectories = fontDirectories ++ [ fontbhttf ]; + # Add a default font for non-nixos systems, <1MB and in nixos defaults. + fontDirectories = fontDirectories ++ [ dejavu_fonts.minimal ]; } '' xsltproc --stringparam fontDirectories "$fontDirectories" \ diff --git a/pkgs/servers/x11/xquartz/default.nix b/pkgs/servers/x11/xquartz/default.nix index 79b99faea9b9b..9b7844960a23f 100644 --- a/pkgs/servers/x11/xquartz/default.nix +++ b/pkgs/servers/x11/xquartz/default.nix @@ -60,7 +60,6 @@ let sudo launchctl load -w /Library/LaunchDaemons/$daemonName ''; fontDirs = [ - xorg.fontbhttf xorg.fontbhlucidatypewriter100dpi xorg.fontbhlucidatypewriter75dpi ttf_bitstream_vera diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 302069fd52145..ca4ab18864e57 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6537,7 +6537,7 @@ in licenseAccepted = (config.neoload.accept_license or false); fontsConf = makeFontsConf { fontDirectories = [ - xorg.fontbhttf + dejavu_fonts.minimal ]; }; }; @@ -13726,7 +13726,7 @@ in bluez5 = bluez5_28; fontsConf = makeFontsConf { fontDirectories = [ - freefont_ttf xorg.fontmiscmisc xorg.fontbhttf + freefont_ttf xorg.fontmiscmisc ]; }; clucene_core = clucene_core_2; @@ -13745,7 +13745,7 @@ in bluez5 = bluez5_28; fontsConf = makeFontsConf { fontDirectories = [ - freefont_ttf xorg.fontmiscmisc xorg.fontbhttf + freefont_ttf xorg.fontmiscmisc ]; }; mdds = mdds_0_12_1; From 40dc278ee0d6f5e6d3928a78569a98355c079ada Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Mon, 29 Aug 2016 22:32:58 +0200 Subject: [PATCH 22/62] xorg.fontbhttf: mark as unfree https://bugzilla.redhat.com/show_bug.cgi?id=317641 --- pkgs/servers/x11/xorg/overrides.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/servers/x11/xorg/overrides.nix b/pkgs/servers/x11/xorg/overrides.nix index acbfe69ee43b0..cdf8d6b430020 100644 --- a/pkgs/servers/x11/xorg/overrides.nix +++ b/pkgs/servers/x11/xorg/overrides.nix @@ -28,6 +28,10 @@ in buildInputs = attrs.buildInputs ++ [ xorg.mkfontscale ]; }; + fontbhttf = attrs: attrs // { + meta = attrs.meta // { license = lib.licenses.unfreeRedistributable; }; + }; + fontcursormisc = attrs: attrs // { buildInputs = attrs.buildInputs ++ [ xorg.mkfontscale ]; }; From d4eb6887b92355beb56efecf5292ddbc6fb1c4af Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Mon, 29 Aug 2016 21:32:25 +0300 Subject: [PATCH 23/62] xorg.xf86videoati: Use dev output of xorgserver TODO: Darwin xorgserver should have consistent outputs with the Linux one. --- pkgs/servers/x11/xorg/overrides.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/x11/xorg/overrides.nix b/pkgs/servers/x11/xorg/overrides.nix index fab4380ced6d7..83e6588c91dd4 100644 --- a/pkgs/servers/x11/xorg/overrides.nix +++ b/pkgs/servers/x11/xorg/overrides.nix @@ -328,7 +328,7 @@ in }; xf86videoati = attrs: attrs // { - NIX_CFLAGS_COMPILE = "-I${xorg.xorgserver}/include/xorg"; + NIX_CFLAGS_COMPILE = "-I${xorg.xorgserver.dev or xorg.xorgserver}/include/xorg"; }; xf86videonv = attrs: attrs // { From 0836f5d3b051b68db185bb7343dca545a0acf33c Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Mon, 29 Aug 2016 21:41:19 +0300 Subject: [PATCH 24/62] erlangR14: Use dev output of openssl --- pkgs/development/interpreters/erlang/R14.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/interpreters/erlang/R14.nix b/pkgs/development/interpreters/erlang/R14.nix index cf4355a38e16f..be7d775a6680d 100644 --- a/pkgs/development/interpreters/erlang/R14.nix +++ b/pkgs/development/interpreters/erlang/R14.nix @@ -20,7 +20,7 @@ stdenv.mkDerivation { sed -e s@/bin/pwd@pwd@g -i otp_build ''; - configureFlags = "--with-ssl=${openssl}"; + configureFlags = "--with-ssl=${openssl.dev}"; hardeningDisable = [ "format" ]; From fa1a1f527b3cc573a97ebee5bf676f0a662fec06 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Mon, 29 Aug 2016 21:44:50 +0300 Subject: [PATCH 25/62] gnome3: Use dev output of nss --- pkgs/desktops/gnome-3/3.20/apps/evolution/default.nix | 2 +- pkgs/desktops/gnome-3/3.20/core/epiphany/default.nix | 2 +- pkgs/desktops/gnome-3/3.20/core/folks/default.nix | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/desktops/gnome-3/3.20/apps/evolution/default.nix b/pkgs/desktops/gnome-3/3.20/apps/evolution/default.nix index 6ae149cd570e3..100dfbf3acec5 100644 --- a/pkgs/desktops/gnome-3/3.20/apps/evolution/default.nix +++ b/pkgs/desktops/gnome-3/3.20/apps/evolution/default.nix @@ -27,7 +27,7 @@ in stdenv.mkDerivation rec { configureFlags = [ "--disable-spamassassin" "--disable-pst-import" "--disable-autoar" "--disable-libcryptui" ]; - NIX_CFLAGS_COMPILE = "-I${nspr.dev}/include/nspr -I${nss}/include/nss -I${glib.dev}/include/gio-unix-2.0"; + NIX_CFLAGS_COMPILE = "-I${nspr.dev}/include/nspr -I${nss.dev}/include/nss -I${glib.dev}/include/gio-unix-2.0"; enableParallelBuilding = true; diff --git a/pkgs/desktops/gnome-3/3.20/core/epiphany/default.nix b/pkgs/desktops/gnome-3/3.20/core/epiphany/default.nix index 5043d7cf2fe87..d50036a597e66 100644 --- a/pkgs/desktops/gnome-3/3.20/core/epiphany/default.nix +++ b/pkgs/desktops/gnome-3/3.20/core/epiphany/default.nix @@ -20,7 +20,7 @@ stdenv.mkDerivation rec { gdk_pixbuf gnome3.defaultIconTheme librsvg which gnome_common gcr avahi gnome3.gsettings_desktop_schemas gnome3.dconf ]; - NIX_CFLAGS_COMPILE = "-I${nspr.dev}/include/nspr -I${nss}/include/nss -I${glib.dev}/include/gio-unix-2.0"; + NIX_CFLAGS_COMPILE = "-I${nspr.dev}/include/nspr -I${nss.dev}/include/nss -I${glib.dev}/include/gio-unix-2.0"; enableParallelBuilding = true; diff --git a/pkgs/desktops/gnome-3/3.20/core/folks/default.nix b/pkgs/desktops/gnome-3/3.20/core/folks/default.nix index 842864b0b8193..8327f9d31cc9f 100644 --- a/pkgs/desktops/gnome-3/3.20/core/folks/default.nix +++ b/pkgs/desktops/gnome-3/3.20/core/folks/default.nix @@ -23,7 +23,7 @@ stdenv.mkDerivation rec { configureFlags = "--disable-fatal-warnings"; - NIX_CFLAGS_COMPILE = ["-I${nspr.dev}/include/nspr" "-I${nss}/include/nss" + NIX_CFLAGS_COMPILE = ["-I${nspr.dev}/include/nspr" "-I${nss.dev}/include/nss" "-I${dbus_glib.dev}/include/dbus-1.0" "-I${dbus_libs.dev}/include/dbus-1.0"]; enableParallelBuilding = true; From 47784e55e1c74e0d8e8c21fe2e6336c85b77706d Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Mon, 29 Aug 2016 22:05:46 +0300 Subject: [PATCH 26/62] darwin binutils: Fix binutils-raw output references --- pkgs/os-specific/darwin/binutils/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/darwin/binutils/default.nix b/pkgs/os-specific/darwin/binutils/default.nix index 8014881860bca..c4ccdb94b8123 100644 --- a/pkgs/os-specific/darwin/binutils/default.nix +++ b/pkgs/os-specific/darwin/binutils/default.nix @@ -5,7 +5,7 @@ stdenv.mkDerivation { buildCommand = '' mkdir -p $out/bin $out/include - ln -s ${binutils-raw}/bin/c++filt $out/bin/c++filt + ln -s ${binutils-raw.out}/bin/c++filt $out/bin/c++filt # We specifically need: # - ld: binutils doesn't provide it on darwin @@ -31,7 +31,7 @@ stdenv.mkDerivation { done # FIXME: this will give us incorrect man pages for bits of cctools - ln -s ${binutils-raw}/share $out/share + ln -s ${binutils-raw.out}/share $out/share ln -s ${binutils-raw.out}/lib $out/lib ln -s ${cctools}/libexec $out/libexec From 048a30e4e4930d91c167242e3268d4f21676716e Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Tue, 30 Aug 2016 02:57:21 +0300 Subject: [PATCH 27/62] treewide: Fix dev references to libxml2 --- pkgs/applications/misc/pgadmin/default.nix | 2 +- pkgs/applications/version-management/redmine/default.nix | 2 +- pkgs/servers/dns/bind/default.nix | 2 +- pkgs/tools/misc/snapper/default.nix | 2 +- pkgs/tools/security/clamav/default.nix | 2 +- pkgs/tools/security/modsecurity/default.nix | 2 +- pkgs/tools/text/xml/xmlstarlet/default.nix | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/misc/pgadmin/default.nix b/pkgs/applications/misc/pgadmin/default.nix index 1358e1f195a71..fba7b6371f677 100644 --- a/pkgs/applications/misc/pgadmin/default.nix +++ b/pkgs/applications/misc/pgadmin/default.nix @@ -18,7 +18,7 @@ stdenv.mkDerivation rec { ''; configureFlags = [ - "--with-libxml2=${libxml2}" + "--with-libxml2=${libxml2.dev}" "--with-libxslt=${libxslt.dev}" ]; diff --git a/pkgs/applications/version-management/redmine/default.nix b/pkgs/applications/version-management/redmine/default.nix index b81808edc224a..0cb498fec069e 100644 --- a/pkgs/applications/version-management/redmine/default.nix +++ b/pkgs/applications/version-management/redmine/default.nix @@ -48,7 +48,7 @@ in stdenv.mkDerivation rec { mkdir -p vendor/cache ${stdenv.lib.concatStrings (map (gem: "ln -s ${gem} vendor/cache/${gem.name};") gemspec)} - bundle config build.nokogiri --use-system-libraries --with-iconv-dir="${libiconv}" --with-xslt-dir="${libxslt.dev}" --with-xml2-dir="${libxml2}" + bundle config build.nokogiri --use-system-libraries --with-iconv-dir="${libiconv}" --with-xslt-dir="${libxslt.dev}" --with-xml2-dir="${libxml2.dev}" bundle install --verbose --local --deployment diff --git a/pkgs/servers/dns/bind/default.nix b/pkgs/servers/dns/bind/default.nix index 8663c26322376..58f1ee6a31673 100644 --- a/pkgs/servers/dns/bind/default.nix +++ b/pkgs/servers/dns/bind/default.nix @@ -20,7 +20,7 @@ stdenv.mkDerivation rec { configureFlags = [ "--localstatedir=/var" "--with-libtool" - "--with-libxml2=${libxml2}" + "--with-libxml2=${libxml2.dev}" "--with-openssl=${openssl.dev}" "--without-atf" "--without-dlopen" diff --git a/pkgs/tools/misc/snapper/default.nix b/pkgs/tools/misc/snapper/default.nix index faf79c29e7785..5f482d68dd9a3 100644 --- a/pkgs/tools/misc/snapper/default.nix +++ b/pkgs/tools/misc/snapper/default.nix @@ -42,7 +42,7 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; NIX_CFLAGS_COMPILE = [ - "-I${libxml2}/include/libxml2" + "-I${libxml2.dev}/include/libxml2" ]; postInstall = '' diff --git a/pkgs/tools/security/clamav/default.nix b/pkgs/tools/security/clamav/default.nix index 881362e4acb4f..0cb34b2e73c92 100644 --- a/pkgs/tools/security/clamav/default.nix +++ b/pkgs/tools/security/clamav/default.nix @@ -16,7 +16,7 @@ stdenv.mkDerivation rec { "--with-zlib=${zlib.dev}" "--with-libbz2-prefix=${bzip2.dev}" "--with-iconv-dir=${libiconv}" - "--with-xml=${libxml2}" + "--with-xml=${libxml2.dev}" "--with-openssl=${openssl.dev}" "--with-libncurses-prefix=${ncurses.dev}" "--with-libcurl=${curl.dev}" diff --git a/pkgs/tools/security/modsecurity/default.nix b/pkgs/tools/security/modsecurity/default.nix index 0b6900fb214df..a5e03eb3fe16d 100644 --- a/pkgs/tools/security/modsecurity/default.nix +++ b/pkgs/tools/security/modsecurity/default.nix @@ -22,7 +22,7 @@ stdenv.mkDerivation rec { "--with-pcre=${pcre.dev}" "--with-apr=${apr.dev}" "--with-apu=${aprutil.dev}/bin/apu-1-config" - "--with-libxml=${libxml2}" + "--with-libxml=${libxml2.dev}" ]; outputs = ["out" "nginx"]; diff --git a/pkgs/tools/text/xml/xmlstarlet/default.nix b/pkgs/tools/text/xml/xmlstarlet/default.nix index 24303da406959..5ad62cd7140bb 100644 --- a/pkgs/tools/text/xml/xmlstarlet/default.nix +++ b/pkgs/tools/text/xml/xmlstarlet/default.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { preConfigure = '' export LIBXSLT_PREFIX=${libxslt.dev} - export LIBXML_PREFIX=${libxml2} + export LIBXML_PREFIX=${libxml2.dev} export LIBXSLT_LIBS=$(pkg-config --libs libxslt libexslt) export LIBXML_LIBS=$(pkg-config --libs libxml-2.0) ''; From 01f857409fa30393a90bc82e16c25b79500d43d3 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Tue, 30 Aug 2016 02:58:43 +0300 Subject: [PATCH 28/62] haskellPackages.hcwiid: Fix output references to bluez --- pkgs/development/haskell-modules/configuration-common.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index b84307a9dbfb8..19f190aa13eec 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -824,10 +824,10 @@ self: super: { # https://github.com/ivanperez-keera/hcwiid/pull/4 hcwiid = overrideCabal super.hcwiid (drv: { configureFlags = (drv.configureFlags or []) ++ [ - "--extra-lib-dirs=${pkgs.bluez}/lib" + "--extra-lib-dirs=${pkgs.bluez.out}/lib" "--extra-lib-dirs=${pkgs.cwiid}/lib" "--extra-include-dirs=${pkgs.cwiid}/include" - "--extra-include-dirs=${pkgs.bluez}/include" + "--extra-include-dirs=${pkgs.bluez.dev}/include" ]; prePatch = '' sed -i -e "/Extra-Lib-Dirs/d" -e "/Include-Dirs/d" "hcwiid.cabal" ''; }); From c3bcb4e1ce3facf1d6bd627f91e9d8a08ca0d744 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Tue, 30 Aug 2016 03:11:09 +0300 Subject: [PATCH 29/62] treewide: Use explicit 'dev' references to glibc --- pkgs/applications/audio/ardour/ardour3.nix | 2 +- pkgs/applications/science/math/calc/default.nix | 2 +- pkgs/development/interpreters/python/cpython/3.6/default.nix | 2 +- pkgs/servers/monitoring/longview/default.nix | 4 ++-- pkgs/tools/admin/daemontools/default.nix | 4 ++-- pkgs/tools/misc/calamares/default.nix | 2 +- pkgs/tools/networking/tgt/default.nix | 4 ++-- pkgs/top-level/lua-packages.nix | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/pkgs/applications/audio/ardour/ardour3.nix b/pkgs/applications/audio/ardour/ardour3.nix index bad4a255d3c59..d9614d10d327f 100644 --- a/pkgs/applications/audio/ardour/ardour3.nix +++ b/pkgs/applications/audio/ardour/ardour3.nix @@ -48,7 +48,7 @@ stdenv.mkDerivation rec { patchPhase = '' printf '#include "libs/ardour/ardour/revision.h"\nnamespace ARDOUR { const char* revision = \"${revision}\"; }\n' > libs/ardour/revision.cc - sed 's|/usr/include/libintl.h|${glibc}/include/libintl.h|' -i wscript + sed 's|/usr/include/libintl.h|${glibc.dev}/include/libintl.h|' -i wscript patchShebangs ./tools/ ''; diff --git a/pkgs/applications/science/math/calc/default.nix b/pkgs/applications/science/math/calc/default.nix index 8673d7debd9de..b9db4174c094c 100644 --- a/pkgs/applications/science/math/calc/default.nix +++ b/pkgs/applications/science/math/calc/default.nix @@ -3,7 +3,7 @@ with stdenv.lib; let makeFlags = '' - INCDIR=${glibc}/include \ + INCDIR=${glibc.dev}/include \ BINDIR=$out/bin LIBDIR=$out/lib CALC_INCDIR=$out/include/calc CALC_SHAREDIR=$out/share/calc MANDIR=$out/share/man/man1 \ USE_READLINE=-DUSE_READLINE READLINE_LIB=-lreadline READLINE_EXTRAS='-lhistory -lncurses' \ TERMCONTROL=-DUSE_TERMIOS \ diff --git a/pkgs/development/interpreters/python/cpython/3.6/default.nix b/pkgs/development/interpreters/python/cpython/3.6/default.nix index a337b28859b71..3269a3c9684f6 100644 --- a/pkgs/development/interpreters/python/cpython/3.6/default.nix +++ b/pkgs/development/interpreters/python/cpython/3.6/default.nix @@ -79,7 +79,7 @@ stdenv.mkDerivation { export MACOSX_DEPLOYMENT_TARGET=10.6 ''} - substituteInPlace ./Lib/plat-generic/regen --replace "/usr/include" ${glibc}/include + substituteInPlace ./Lib/plat-generic/regen --replace "/usr/include" ${glibc.dev}/include configureFlagsArray=( --enable-shared --with-threads CPPFLAGS="${concatStringsSep " " (map (p: "-I${getDev p}/include") buildInputs)}" diff --git a/pkgs/servers/monitoring/longview/default.nix b/pkgs/servers/monitoring/longview/default.nix index f657ccdcd55b0..71095ce3583bb 100644 --- a/pkgs/servers/monitoring/longview/default.nix +++ b/pkgs/servers/monitoring/longview/default.nix @@ -43,9 +43,9 @@ stdenv.mkDerivation rec { mv Linode $out ln -s ../Linode/Longview.pl $out/bin/longview for h in syscall.h sys/syscall.h asm/unistd.h asm/unistd_32.h asm/unistd_64.h bits/wordsize.h bits/syscall.h; do - ${perl}/bin/h2ph -d $out ${glibc}/include/$h + ${perl}/bin/h2ph -d $out ${glibc.dev}/include/$h mkdir -p $out/usr/include/$(dirname $h) - mv $out${glibc}/include/''${h%.h}.ph $out/usr/include/$(dirname $h) + mv $out${glibc.dev}/include/''${h%.h}.ph $out/usr/include/$(dirname $h) done wrapProgram $out/Linode/Longview.pl --prefix PATH : ${perl}/bin:$out/bin \ --suffix PERL5LIB : $out/Linode --suffix PERL5LIB : $PERL5LIB \ diff --git a/pkgs/tools/admin/daemontools/default.nix b/pkgs/tools/admin/daemontools/default.nix index 08f21dc626223..5594368b04f48 100644 --- a/pkgs/tools/admin/daemontools/default.nix +++ b/pkgs/tools/admin/daemontools/default.nix @@ -11,14 +11,14 @@ stdenv.mkDerivation rec { configurePhase = '' cd ${name} - sed -ie '1 s_$_ -include ${glibc}/include/errno.h_' src/conf-cc + sed -ie '1 s_$_ -include ${glibc.dev}/include/errno.h_' src/conf-cc substituteInPlace src/Makefile \ --replace '/bin/sh' '${bash}/bin/bash -oxtrace' sed -ie "s_^PATH=.*_PATH=$src/${name}/compile:''${PATH}_" src/rts.tests - cat ${glibc}/include/errno.h + cat ${glibc.dev}/include/errno.h ''; buildPhase = '' diff --git a/pkgs/tools/misc/calamares/default.nix b/pkgs/tools/misc/calamares/default.nix index 7c7c0b0a5ec38..9356eb3654970 100644 --- a/pkgs/tools/misc/calamares/default.nix +++ b/pkgs/tools/misc/calamares/default.nix @@ -33,7 +33,7 @@ stdenv.mkDerivation rec { -i src/modules/locale/timezonewidget/localeconst.h \ -i src/modules/locale/SetTimezoneJob.cpp - sed -e 's,/usr/share/i18n/locales,${glibc}/share/i18n/locales,' \ + sed -e 's,/usr/share/i18n/locales,${glibc.out}/share/i18n/locales,' \ -i src/modules/locale/timezonewidget/localeconst.h sed -e 's,/usr/share/X11/xkb/rules/base.lst,${xkeyboard_config}/share/X11/xkb/rules/base.lst,' \ diff --git a/pkgs/tools/networking/tgt/default.nix b/pkgs/tools/networking/tgt/default.nix index bd4be0f1b867c..2a6de71a00726 100644 --- a/pkgs/tools/networking/tgt/default.nix +++ b/pkgs/tools/networking/tgt/default.nix @@ -22,8 +22,8 @@ in stdenv.mkDerivation rec { preConfigure = '' sed -i 's|/usr/bin/||' doc/Makefile sed -i 's|/usr/include/libaio.h|${libaio}/include/libaio.h|' usr/Makefile - sed -i 's|/usr/include/sys/|${stdenv.glibc}/include/sys/|' usr/Makefile - sed -i 's|/usr/include/linux/|${stdenv.glibc}/include/linux/|' usr/Makefile + sed -i 's|/usr/include/sys/|${stdenv.glibc.dev}/include/sys/|' usr/Makefile + sed -i 's|/usr/include/linux/|${stdenv.glibc.dev}/include/linux/|' usr/Makefile ''; postInstall = '' diff --git a/pkgs/top-level/lua-packages.nix b/pkgs/top-level/lua-packages.nix index e652bf2d5901d..c065ac8290a30 100644 --- a/pkgs/top-level/lua-packages.nix +++ b/pkgs/top-level/lua-packages.nix @@ -280,7 +280,7 @@ let onigVariable = "ONIG_DIR=${oniguruma}"; gnuVariable = "GNU_INCDIR=${gnulib}/lib"; treVariable = "TRE_DIR=${tre}"; - posixVariable = "POSIX_DIR=${glibc}"; + posixVariable = "POSIX_DIR=${glibc.dev}"; in '' sed -e 's@$(LUAROCKS) $(LUAROCKS_COMMAND) $$i;@$(LUAROCKS) $(LUAROCKS_COMMAND) $$i ${pcreVariable} ${onigVariable} ${gnuVariable} ${treVariable} ${posixVariable};@' \ -i Makefile From aef35c52f0ddc99d326239b51ca1a2ea03450316 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Tue, 30 Aug 2016 03:31:55 +0300 Subject: [PATCH 30/62] treewide: Fix output references to libX11 --- pkgs/applications/misc/taskjuggler/default.nix | 4 ++-- pkgs/applications/science/electronics/tkgate/1.x.nix | 4 ++-- pkgs/development/libraries/agg/default.nix | 2 +- pkgs/development/libraries/imlib/default.nix | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/misc/taskjuggler/default.nix b/pkgs/applications/misc/taskjuggler/default.nix index e1e0477146031..2a199843cb3b9 100644 --- a/pkgs/applications/misc/taskjuggler/default.nix +++ b/pkgs/applications/misc/taskjuggler/default.nix @@ -46,8 +46,8 @@ stdenv.mkDerivation rec { configureFlags = " --without-arts --disable-docs - --x-includes=${libX11}/include - --x-libraries=${libX11}/lib + --x-includes=${libX11.dev}/include + --x-libraries=${libX11.out}/lib --with-qt-dir=${qt3} "; diff --git a/pkgs/applications/science/electronics/tkgate/1.x.nix b/pkgs/applications/science/electronics/tkgate/1.x.nix index 61d03173e0ba9..2a3f17b670b4f 100644 --- a/pkgs/applications/science/electronics/tkgate/1.x.nix +++ b/pkgs/applications/science/electronics/tkgate/1.x.nix @@ -17,8 +17,8 @@ stdenv.mkDerivation rec { patchPhase = '' sed -i config.h \ -e 's|.*#define.*TKGATE_TCLTK_VERSIONS.*|#define TKGATE_TCLTK_VERSIONS "${tcl.release}"|' \ - -e 's|.*#define.*TKGATE_INCDIRS.*|#define TKGATE_INCDIRS "${tcl}/include ${tk}/include ${libiconvInc} ${libX11}/include"|' \ - -e 's|.*#define.*TKGATE_LIBDIRS.*|#define TKGATE_LIBDIRS "${tcl}/lib ${tk}/lib ${libiconvLib} ${libX11}/lib"|' \ + -e 's|.*#define.*TKGATE_INCDIRS.*|#define TKGATE_INCDIRS "${tcl}/include ${tk}/include ${libiconvInc} ${libX11.dev}/include"|' \ + -e 's|.*#define.*TKGATE_LIBDIRS.*|#define TKGATE_LIBDIRS "${tcl}/lib ${tk}/lib ${libiconvLib} ${libX11.out}/lib"|' \ \ -e '20 i #define TCL_LIBRARY "${tcl}/lib"' \ -e '20 i #define TK_LIBRARY "${tk}/lib/${tk.libPrefix}"' \ diff --git a/pkgs/development/libraries/agg/default.nix b/pkgs/development/libraries/agg/default.nix index 549310931f9ee..8b8d3a29193fd 100644 --- a/pkgs/development/libraries/agg/default.nix +++ b/pkgs/development/libraries/agg/default.nix @@ -15,7 +15,7 @@ stdenv.mkDerivation rec { sh autogen.sh ''; - configureFlags = "--x-includes=${libX11}/include --x-libraries=${libX11}/lib"; + configureFlags = "--x-includes=${libX11.dev}/include --x-libraries=${libX11.out}/lib"; meta = { description = "High quality rendering engine for C++"; diff --git a/pkgs/development/libraries/imlib/default.nix b/pkgs/development/libraries/imlib/default.nix index e99fc2ca3f966..624e401b62f74 100644 --- a/pkgs/development/libraries/imlib/default.nix +++ b/pkgs/development/libraries/imlib/default.nix @@ -9,8 +9,8 @@ stdenv.mkDerivation { configureFlags = " --disable-shm - --x-includes=${libX11}/include - --x-libraries=${libX11}/lib"; + --x-includes=${libX11.dev}/include + --x-libraries=${libX11.out}/lib"; buildInputs = [libjpeg libXext libX11 xextproto libtiff libungif libpng]; From d75596995e4afc44df3d348ca08bd9b98b66a48f Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Tue, 30 Aug 2016 03:47:50 +0300 Subject: [PATCH 31/62] swt: Fix LFLAGS Passing '-I${foo}/lib' to GCC doesn't seem sane. --- pkgs/development/libraries/java/swt/default.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pkgs/development/libraries/java/swt/default.nix b/pkgs/development/libraries/java/swt/default.nix index 5ea6fa644cdeb..454190ebdfb06 100644 --- a/pkgs/development/libraries/java/swt/default.nix +++ b/pkgs/development/libraries/java/swt/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, unzip, jdk, pkgconfig, gtk +{ stdenv, lib, fetchurl, unzip, jdk, pkgconfig, gtk , libXtst, libXi, mesa, webkit, libsoup, xorg , pango, gdk_pixbuf, glib }: @@ -37,10 +37,8 @@ in stdenv.mkDerivation rec { buildInputs = [ unzip jdk pkgconfig gtk libXtst libXi mesa webkit libsoup ]; - NIX_LFLAGS = [ "-lX11" "-I${xorg.libX11}/lib" - "-lpango-1.0" "-I${pango}/lib" - "-lgdk_pixbuf-2.0" "-I${gdk_pixbuf}/lib" - "-lglib-2.0" "-I${glib}/lib"]; + NIX_LFLAGS = (map (x: "-L${lib.getLib x}/lib") [ xorg.libX11 pango gdk_pixbuf glib ]) ++ + [ "-lX11" "-lpango-1.0" "-lgdk_pixbuf-2.0" "-lglib-2.0" ]; buildPhase = '' unzip src.zip -d src From 03fb2c1f32825dd7d43a456667db5848b47f4ea3 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Tue, 30 Aug 2016 04:46:59 +0300 Subject: [PATCH 32/62] doc: Document changes to multiple-output conventions --- doc/multiple-output.xml | 6 +++--- nixos/doc/manual/release-notes/rl-1609.xml | 11 +++++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/doc/multiple-output.xml b/doc/multiple-output.xml index 1821861adf714..309254f76aac7 100644 --- a/doc/multiple-output.xml +++ b/doc/multiple-output.xml @@ -29,15 +29,15 @@
Using a split package In the Nix language the individual outputs can be reached explicitly as attributes, e.g. coreutils.info, but the typical case is just using packages as build inputs. - When a multiple-output derivation gets into a build input of another derivation, the first output is added (.dev by convention) and also propagatedBuildOutputs of that package which by default contain $outputBin and $outputLib. (See .) + When a multiple-output derivation gets into a build input of another derivation, the dev output is added if it exists, otherwise the first output is added. In addition to that, propagatedBuildOutputs of that package which by default contain $outputBin and $outputLib are also added. (See .)
Writing a split derivation Here you find how to write a derivation that produces multiple outputs. In nixpkgs there is a framework supporting multiple-output derivations. It tries to cover most cases by default behavior. You can find the source separated in <nixpkgs/pkgs/build-support/setup-hooks/multiple-outputs.sh>; it's relatively well-readable. The whole machinery is triggered by defining the outputs attribute to contain the list of desired output names (strings). - outputs = [ "dev" "out" "bin" "doc" ]; - Often such a single line is enough. For each output an equally named environment variable is passed to the builder and contains the path in nix store for that output. By convention, the first output should usually be dev; typically you also want to have the main out output, as it catches any files that didn't get elsewhere. + outputs = [ "bin" "dev" "out" "doc" ]; + Often such a single line is enough. For each output an equally named environment variable is passed to the builder and contains the path in nix store for that output. By convention, the first output should contain the executable programs provided by the package as that output is used by Nix in string conversions, allowing references to binaries like ${pkgs.perl}/bin/perl to always work. Typically you also want to have the main out output, as it catches any files that didn't get elsewhere. There is a special handling of the debug output, described at . diff --git a/nixos/doc/manual/release-notes/rl-1609.xml b/nixos/doc/manual/release-notes/rl-1609.xml index 1245411be179a..29fdc104a7de9 100644 --- a/nixos/doc/manual/release-notes/rl-1609.xml +++ b/nixos/doc/manual/release-notes/rl-1609.xml @@ -34,6 +34,17 @@ following incompatible changes: + + A large number of packages have been converted to use the multiple outputs feature + of Nix to greatly reduce the amount of required disk space. This may require changes + to any custom packages to make them build again; see the relevant chapter in the + Nixpkgs manual for more information. (Additional caveat to packagers: some packaging conventions + related to multiple-output packages + were changed + late (August 2016) in the release cycle and differ from the initial introduction of multiple outputs.) + + + Shell aliases for systemd sub-commands were dropped: From 73f1ade4078e9f351fa0ee795c194838f1bb4ced Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Tue, 30 Aug 2016 15:18:51 +0300 Subject: [PATCH 33/62] glibc_multi: Reference dev outputs of glibc --- pkgs/development/libraries/glibc/multi.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/glibc/multi.nix b/pkgs/development/libraries/glibc/multi.nix index c7c69b879fbe2..5d3626b95cc0f 100644 --- a/pkgs/development/libraries/glibc/multi.nix +++ b/pkgs/development/libraries/glibc/multi.nix @@ -22,7 +22,7 @@ runCommand "${nameVersion.name}-multi-${nameVersion.version}" chmod +x "$bin/bin/ldd" mkdir "$dev" - cp -rs '${glibc32}'/include "$dev/" + cp -rs '${glibc32.dev}'/include "$dev/" chmod +w -R "$dev" - cp -rsf '${glibc64}'/include "$dev/" + cp -rsf '${glibc64.dev}'/include "$dev/" '' From 8576332fdfe5dd38da093074650cf3694acf1da3 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Tue, 30 Aug 2016 15:55:49 +0300 Subject: [PATCH 34/62] grsec: Fix build after multiple output shuffling Same problem with overrideDerivation as in https://github.com/NixOS/nixpkgs/issues/10721. Would be nice to have that fixed... --- pkgs/build-support/grsecurity/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/grsecurity/default.nix b/pkgs/build-support/grsecurity/default.nix index 1070d6f746dd4..19aa57ccd99ac 100644 --- a/pkgs/build-support/grsecurity/default.nix +++ b/pkgs/build-support/grsecurity/default.nix @@ -1,4 +1,5 @@ { stdenv +, lib , overrideDerivation # required for gcc plugins @@ -24,7 +25,7 @@ overrideDerivation (kernel.override { inherit extraConfig; ignoreConfigErrors = true; }) (attrs: { - nativeBuildInputs = [ gmp libmpc mpfr ] ++ (attrs.nativeBuildInputs or []); + nativeBuildInputs = (lib.chooseDevOutputs [ gmp libmpc mpfr ]) ++ (attrs.nativeBuildInputs or []); preConfigure = '' echo ${localver} >localversion-grsec ${attrs.preConfigure or ""} From c4521aeffa2dcc71b4acad81f61bfcca5fb64e0a Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Tue, 30 Aug 2016 16:28:02 +0300 Subject: [PATCH 35/62] xcb-util-xrm: Fix 'lib.optional' usage That produces a list containing a singleton list containing libX11. --- pkgs/servers/x11/xorg/xcb-util-xrm.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/x11/xorg/xcb-util-xrm.nix b/pkgs/servers/x11/xorg/xcb-util-xrm.nix index 9eb8add6856ec..060a6b18a897c 100644 --- a/pkgs/servers/x11/xorg/xcb-util-xrm.nix +++ b/pkgs/servers/x11/xorg/xcb-util-xrm.nix @@ -10,7 +10,7 @@ stdenv.mkDerivation rec { }; buildInputs = [ pkgconfig m4 libxcb xcbutil ] - ++ stdenv.lib.optional doCheck [ libX11 ]; + ++ stdenv.lib.optional doCheck libX11; doCheck = true; meta = with stdenv.lib; { From 7259f80577723f933cfce292cfb21e14c7be3265 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Tue, 30 Aug 2016 16:30:24 +0300 Subject: [PATCH 36/62] libre: Use 'dev' output of libc --- pkgs/development/libraries/libre/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libre/default.nix b/pkgs/development/libraries/libre/default.nix index f266841ffaf67..fe130c5203da9 100644 --- a/pkgs/development/libraries/libre/default.nix +++ b/pkgs/development/libraries/libre/default.nix @@ -12,7 +12,7 @@ stdenv.mkDerivation rec { ''PREFIX=$(out)'' ] ++ stdenv.lib.optional (stdenv.cc.cc != null) "SYSROOT_ALT=${stdenv.cc.cc}" - ++ stdenv.lib.optional (stdenv.cc.libc != null) "SYSROOT=${stdenv.cc.libc}" + ++ stdenv.lib.optional (stdenv.cc.libc != null) "SYSROOT=${stdenv.lib.getDev stdenv.cc.libc}" ; meta = { homepage = "http://www.creytiv.com/re.html"; From 0478682f09fd0363a0909c49c0324a659bd38222 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Tue, 30 Aug 2016 18:53:31 +0200 Subject: [PATCH 37/62] libsndfile: 1.0.26 -> 1.0.27 --- pkgs/development/libraries/libsndfile/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libsndfile/default.nix b/pkgs/development/libraries/libsndfile/default.nix index 73bf9e4da74e3..30b378d77a46e 100644 --- a/pkgs/development/libraries/libsndfile/default.nix +++ b/pkgs/development/libraries/libsndfile/default.nix @@ -3,11 +3,11 @@ }: stdenv.mkDerivation rec { - name = "libsndfile-1.0.26"; + name = "libsndfile-1.0.27"; src = fetchurl { url = "http://www.mega-nerd.com/libsndfile/files/${name}.tar.gz"; - sha256 = "14jhla289cj45946h0hq2an0a9g4wkwb3v4571bla6ixfvn20rfd"; + sha256 = "1h7s61nhf7vklh9sdsbbqzb6x287q4x4j1jc5gmjragl4wprb4d3"; }; buildInputs = [ pkgconfig flac libogg libvorbis ] From 810135363eccff4f460a59621e00ef566ab2a48e Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Tue, 30 Aug 2016 18:34:45 +0300 Subject: [PATCH 38/62] ceph: Fix 'lib.optional' use Produces a list of list as buildInputs. --- pkgs/tools/filesystems/ceph/generic.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/tools/filesystems/ceph/generic.nix b/pkgs/tools/filesystems/ceph/generic.nix index ad237e408c66d..07bfec41f4775 100644 --- a/pkgs/tools/filesystems/ceph/generic.nix +++ b/pkgs/tools/filesystems/ceph/generic.nix @@ -121,19 +121,19 @@ stdenv.mkDerivation { ]; buildInputs = buildInputs ++ cryptoLibsMap.${cryptoStr} ++ [ boost python libxml2 optYasm optLibatomic_ops optLibs3 malloc pythonPackages.flask zlib - ] ++ optional (versionAtLeast version "9.0.0") [ + ] ++ optionals (versionAtLeast version "9.0.0") [ pythonPackages.sphinx # Used for docs - ] ++ optional stdenv.isLinux [ + ] ++ optionals stdenv.isLinux [ linuxHeaders libuuid udev keyutils optLibaio optLibxfs optZfs - ] ++ optional hasServer [ + ] ++ optionals hasServer [ optSnappy optLeveldb - ] ++ optional hasRadosgw [ + ] ++ optionals hasRadosgw [ optFcgi optExpat optCurl optFuse optLibedit - ] ++ optional hasXio [ + ] ++ optionals hasXio [ optAccelio optLibibverbs optLibrdmacm - ] ++ optional hasRocksdb [ + ] ++ optionals hasRocksdb [ optRocksdb - ] ++ optional hasKinetic [ + ] ++ optionals hasKinetic [ optKinetic-cpp-client ]; From 3a762ef967e52bcf67b1de507f17d48b887d980a Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Tue, 30 Aug 2016 18:48:43 +0300 Subject: [PATCH 39/62] shadowsocks-libev: Fix 'lib.optional' use Produces buildInputs having lists of lists. --- pkgs/tools/networking/shadowsocks-libev/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/networking/shadowsocks-libev/default.nix b/pkgs/tools/networking/shadowsocks-libev/default.nix index 6b4c684834aa9..74ae4f808a9c1 100644 --- a/pkgs/tools/networking/shadowsocks-libev/default.nix +++ b/pkgs/tools/networking/shadowsocks-libev/default.nix @@ -32,7 +32,7 @@ stdenv.mkDerivation rec { buildInputs = [ zlib asciidoc xmlto docbook_xml_dtd_45 docbook_xsl libxslt ] ++ optional (!withMbedTLS) openssl ++ optional withMbedTLS mbedtls - ++ optional enableSystemSharedLib [libev libsodium udns]; + ++ optionals enableSystemSharedLib [libev libsodium udns]; configureFlags = optional withMbedTLS [ "--with-crypto-library=mbedtls" From d2ef0577c5783333d3832bfb312516173b06fb8d Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Tue, 30 Aug 2016 18:52:17 +0300 Subject: [PATCH 40/62] grail: Fix 'lib.optional' use Produces a list-of-lists as buildInputs. --- pkgs/development/libraries/grail/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/grail/default.nix b/pkgs/development/libraries/grail/default.nix index a4f27824d1366..3464e22949521 100644 --- a/pkgs/development/libraries/grail/default.nix +++ b/pkgs/development/libraries/grail/default.nix @@ -4,13 +4,14 @@ stdenv.mkDerivation rec { name = "grail-${version}"; version = "3.1.0"; + src = fetchurl { url = "https://launchpad.net/grail/trunk/${version}/+download/${name}.tar.bz2"; sha256 = "c26dced1b3f4317ecf6af36db0e90294d87e43966d56aecc4e97b65368ab78b9"; }; buildInputs = [ pkgconfig python3 frame ] - ++ stdenv.lib.optional enableX11 [xorg.libX11 xorg.libXtst xorg.libXext xorg.libXi xorg.libXfixes]; + ++ stdenv.lib.optionals enableX11 [xorg.libX11 xorg.libXtst xorg.libXext xorg.libXi xorg.libXfixes]; configureFlags = stdenv.lib.optional enableX11 "--with-x11"; @@ -20,4 +21,4 @@ stdenv.mkDerivation rec { license = stdenv.lib.licenses.gpl2; platforms = stdenv.lib.platforms.linux; }; -} \ No newline at end of file +} From e08599567a51c2ed0512187096baba8a7cf7da72 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Tue, 30 Aug 2016 20:02:30 +0300 Subject: [PATCH 41/62] frame: Fix 'lib.optional' use Produces a list-of-lists in buildInputs --- pkgs/development/libraries/frame/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/frame/default.nix b/pkgs/development/libraries/frame/default.nix index 26357b4404982..4e8be2a4f5019 100644 --- a/pkgs/development/libraries/frame/default.nix +++ b/pkgs/development/libraries/frame/default.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { buildInputs = [ stdenv pkgconfig - ] ++ stdenv.lib.optional enableX11 [xorg.xorgserver xorg.libX11 xorg.libXext xorg.libXi]; + ] ++ stdenv.lib.optionals enableX11 [xorg.xorgserver xorg.libX11 xorg.libXext xorg.libXi]; configureFlags = stdenv.lib.optional enableX11 "--with-x11"; @@ -21,4 +21,4 @@ stdenv.mkDerivation rec { license = stdenv.lib.licenses.gpl3; platforms = stdenv.lib.platforms.linux; }; -} \ No newline at end of file +} From f97ba3070a1881619cb5e066f7084ed86e193c25 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Tue, 30 Aug 2016 21:49:17 +0300 Subject: [PATCH 42/62] gdal: Fix reference to mysql dev output --- pkgs/development/libraries/gdal/default.nix | 2 +- pkgs/development/libraries/gdal/gdal-1_11.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/gdal/default.nix b/pkgs/development/libraries/gdal/default.nix index 90341898a8a89..d710c7357bc57 100644 --- a/pkgs/development/libraries/gdal/default.nix +++ b/pkgs/development/libraries/gdal/default.nix @@ -31,7 +31,7 @@ composableDerivation.composableDerivation {} (fixed: rec { "--with-libz=${zlib.dev}" # optional "--with-pg=${postgresql}/bin/pg_config" - "--with-mysql=${mysql.lib}/bin/mysql_config" + "--with-mysql=${mysql.lib.dev}/bin/mysql_config" "--with-geotiff=${libgeotiff}" "--with-python" # optional "--with-static-proj4=${proj}" # optional diff --git a/pkgs/development/libraries/gdal/gdal-1_11.nix b/pkgs/development/libraries/gdal/gdal-1_11.nix index b62f87c2a21e5..5ed72a6669cb9 100644 --- a/pkgs/development/libraries/gdal/gdal-1_11.nix +++ b/pkgs/development/libraries/gdal/gdal-1_11.nix @@ -32,7 +32,7 @@ composableDerivation.composableDerivation {} (fixed: rec { "--with-libz=${zlib.dev}" # optional "--with-pg=${postgresql}/bin/pg_config" - "--with-mysql=${mysql.lib}/bin/mysql_config" + "--with-mysql=${mysql.lib.dev}/bin/mysql_config" "--with-geotiff=${libgeotiff}" "--with-python" # optional "--with-static-proj4=${proj}" # optional From 4223e83a68e358cda3d375428cf5edad597cdd9d Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Tue, 30 Aug 2016 21:49:34 +0300 Subject: [PATCH 43/62] tcltls: Fix reference to openssl dev output --- pkgs/development/libraries/tcltls/default.nix | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/pkgs/development/libraries/tcltls/default.nix b/pkgs/development/libraries/tcltls/default.nix index 7d445408fa25f..dc0504454f616 100644 --- a/pkgs/development/libraries/tcltls/default.nix +++ b/pkgs/development/libraries/tcltls/default.nix @@ -4,25 +4,27 @@ stdenv.mkDerivation rec { name = "tcltls-${version}"; version = "1.6"; - configureFlags = "--with-tcl=" + tcl + "/lib " - + "--with-tclinclude=" + tcl + "/include " - + "--with-ssl-dir=" + openssl; - - preConfigure = '' - configureFlags="--exec_prefix=$prefix $configureFlags" - ''; - src = fetchurl { url = "mirror://sourceforge/tls/tls${version}-src.tar.gz"; sha256 = "adec50143a9ad634a671d24f7c7bbf2455487eb5f12d290f41797c32a98b93f3"; }; + buildInputs = [ tcl openssl ]; + + configureFlags = [ + "--with-tcl=${tcl}/lib" + "--with-tclinclude=${tcl}/include" + "--with-ssl-dir=${openssl.dev}" + ]; + + preConfigure = '' + configureFlags="--exec_prefix=$prefix $configureFlags" + ''; + passthru = { libPrefix = "tls${version}"; }; - buildInputs = [ tcl openssl ]; - meta = { homepage = "http://tls.sourceforge.net/"; description = "An OpenSSL / RSA-bsafe Tcl extension"; From 0cfb79afacdd07c40f7c8b81b17df4f55a7205f2 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Tue, 30 Aug 2016 21:56:31 +0300 Subject: [PATCH 44/62] gcc6: Unify some differences with gcc5 In particular, fixes build with the new shuffled outputs. --- pkgs/development/compilers/gcc/6/default.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/development/compilers/gcc/6/default.nix b/pkgs/development/compilers/gcc/6/default.nix index 079b277a8e58e..8064f42d498c2 100644 --- a/pkgs/development/compilers/gcc/6/default.nix +++ b/pkgs/development/compilers/gcc/6/default.nix @@ -165,8 +165,8 @@ let version = "6.2.0"; " --disable-libatomic " + # libatomic requires libc " --disable-decimal-float" # libdecnumber requires libc else - (if crossDarwin then " --with-sysroot=${libcCross.out}/share/sysroot" - else " --with-headers=${libcCross.dev}/include") + + (if crossDarwin then " --with-sysroot=${getLib libcCross}/share/sysroot" + else " --with-headers=${getDev libcCross}/include") + # Ensure that -print-prog-name is able to find the correct programs. (stdenv.lib.optionalString (crossMingw || crossDarwin) ( " --with-as=${binutilsCross}/bin/${cross.config}-as" + @@ -247,7 +247,7 @@ stdenv.mkDerivation ({ ++ stdenv.lib.optional (libpthread != null) libpthread; extraCPPSpec = concatStrings (intersperse " " - (map (x: "-I${x}/include") extraCPPDeps)); + (map (x: "-I${x.dev or x}/include") extraCPPDeps)); extraLibSpec = if libpthreadCross != null then "-L${libpthreadCross}/lib ${libpthreadCross.TARGET_LDFLAGS}" @@ -411,6 +411,7 @@ stdenv.mkDerivation ({ ${if langJava && javaAntlr != null then "--with-antlr-jar=${javaAntlr.crossDrv}" else ""} --with-gmp=${gmp.crossDrv} --with-mpfr=${mpfr.crossDrv} + --with-mpc=${libmpc.crossDrv} --disable-libstdcxx-pch --without-included-gettext --with-system-zlib @@ -456,7 +457,7 @@ stdenv.mkDerivation ({ # Likewise, the LTO code doesn't find zlib. CPATH = concatStrings - (intersperse ":" (map (x: x + "/include") + (intersperse ":" (map (x: "${x.dev or x}/include") (optionals (zlib != null) [ zlib ] ++ optionals langJava [ boehmgc ] ++ optionals javaAwtGtk xlibs @@ -479,7 +480,7 @@ stdenv.mkDerivation ({ EXTRA_TARGET_CFLAGS = if cross != null && libcCross != null then [ - "-idirafter ${libcCross.dev}/include" + "-idirafter ${getDev libcCross}/include" ] ++ optionals (! crossStageStatic) [ "-B${libcCross.out}/lib" From d45d243749540c00b84b93b7e5d2645a6fab44d0 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Tue, 30 Aug 2016 22:34:40 +0300 Subject: [PATCH 45/62] libbb2: Use "--enable-fat=yes" to avoid build nondeterminism Otherwise it would pick various -march flags based on the CPU of the compiling system, using beautiful code like this: ```` 63 AC_CACHE_CHECK(for x86 cpuid $1 output, ax_cv_gcc_x86_cpuid_$1, 64 [AC_RUN_IFELSE([AC_LANG_PROGRAM([#include ], [ 65 int op = $1, eax, ebx, ecx, edx; 66 FILE *f; 67 __asm__("cpuid" 68 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 69 : "a" (op)); 70 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 71 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 72 fclose(f); 73 return 0; 74 ])], ... 121 AC_CACHE_CHECK([whether avx is supported], [ax_cv_have_avx_ext], 122 [ 123 ax_cv_have_avx_ext=no 124 if test "$((0x$ecx>>28&0x01))" = 1; then 125 ax_cv_have_avx_ext=yes 126 fi 127 ]) ```` --- pkgs/development/libraries/libb2/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/libraries/libb2/default.nix b/pkgs/development/libraries/libb2/default.nix index f4d01def94a26..eae08f0071cb7 100644 --- a/pkgs/development/libraries/libb2/default.nix +++ b/pkgs/development/libraries/libb2/default.nix @@ -3,6 +3,13 @@ with stdenv; with lib; mkDerivation rec { name = "libb2-${meta.version}"; + src = fetchurl { + url = "https://blake2.net/${name}.tar.gz"; + sha256 = "7829c7309347650239c76af7f15d9391af2587b38f0a65c250104a2efef99051"; + }; + + configureFlags = [ "--enable-fat=yes" ]; + meta = { version = "0.97"; description = "The BLAKE2 family of cryptographic hash functions"; @@ -10,9 +17,4 @@ mkDerivation rec { maintainers = with maintainers; [ dfoxfranke ]; license = licenses.cc0; }; - - src = fetchurl { - url = "https://blake2.net/${name}.tar.gz"; - sha256 = "7829c7309347650239c76af7f15d9391af2587b38f0a65c250104a2efef99051"; - }; } From c46869f13b276d27f9940378c53588ef4f90e049 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Tue, 30 Aug 2016 23:16:34 +0300 Subject: [PATCH 46/62] neko: Use dev outputs when building an include path --- pkgs/development/compilers/neko/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/compilers/neko/default.nix b/pkgs/development/compilers/neko/default.nix index 32c1bbbe94148..a036e7e6939f0 100644 --- a/pkgs/development/compilers/neko/default.nix +++ b/pkgs/development/compilers/neko/default.nix @@ -16,7 +16,7 @@ stdenv.mkDerivation rec { }); prePatch = with stdenv.lib; let - libs = concatStringsSep "," (map (lib: "\"${lib}/include\"") buildInputs); + libs = concatStringsSep "," (map (lib: "\"${lib.dev}/include\"") buildInputs); in '' sed -i -e '/^search_includes/,/^}/c \ search_includes = function(_) { return $array(${libs}) } From feed8beb47632318e4d309f8269df06daaa7689e Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Wed, 31 Aug 2016 12:32:34 +0300 Subject: [PATCH 47/62] virtualbox: Fix glibc dev reference --- pkgs/applications/virtualization/virtualbox/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/virtualization/virtualbox/default.nix b/pkgs/applications/virtualization/virtualbox/default.nix index feb662fb1bc3a..6ef014f457f91 100644 --- a/pkgs/applications/virtualization/virtualbox/default.nix +++ b/pkgs/applications/virtualization/virtualbox/default.nix @@ -108,7 +108,7 @@ in stdenv.mkDerivation { # first line: ugly hack, and it isn't yet clear why it's a problem configurePhase = '' - NIX_CFLAGS_COMPILE=$(echo "$NIX_CFLAGS_COMPILE" | sed 's,\-isystem ${stdenv.cc.libc}/include,,g') + NIX_CFLAGS_COMPILE=$(echo "$NIX_CFLAGS_COMPILE" | sed 's,\-isystem ${lib.getDev stdenv.cc.libc}/include,,g') cat >> LocalConfig.kmk < Date: Wed, 31 Aug 2016 12:32:58 +0300 Subject: [PATCH 48/62] pinentry: Fix dev reference to qtbase --- pkgs/tools/security/pinentry/qt5.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/security/pinentry/qt5.nix b/pkgs/tools/security/pinentry/qt5.nix index d0811cdd11afc..18648633a0971 100644 --- a/pkgs/tools/security/pinentry/qt5.nix +++ b/pkgs/tools/security/pinentry/qt5.nix @@ -22,8 +22,8 @@ stdenv.mkDerivation rec { # configure cannot find moc on its own preConfigure = '' - export QTDIR="${qtbase}" - export MOC="${qtbase}/bin/moc" + export QTDIR="${qtbase.dev}" + export MOC="${qtbase.dev}/bin/moc" ''; configureFlags = [ From b87a2245b1b8533422edcdd8e6a8c65fe1e5e0bb Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Wed, 31 Aug 2016 12:37:13 +0300 Subject: [PATCH 49/62] root: Fix libc dev reference --- pkgs/applications/science/misc/root/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/science/misc/root/default.nix b/pkgs/applications/science/misc/root/default.nix index 855766cace7cf..10c777d8601c7 100644 --- a/pkgs/applications/science/misc/root/default.nix +++ b/pkgs/applications/science/misc/root/default.nix @@ -28,7 +28,7 @@ stdenv.mkDerivation rec { "-DCMAKE_INSTALL_LIBDIR=lib" "-DCMAKE_INSTALL_INCLUDEDIR=include" ] - ++ stdenv.lib.optional (stdenv.cc.libc != null) "-DC_INCLUDE_DIRS=${stdenv.cc.libc}/include"; + ++ stdenv.lib.optional (stdenv.cc.libc != null) "-DC_INCLUDE_DIRS=${stdenv.lib.getDev stdenv.cc.libc}/include"; enableParallelBuilding = true; From 96dae0f2860bd8df7e353d321f3a7efee7fb4b82 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Wed, 31 Aug 2016 12:38:14 +0300 Subject: [PATCH 50/62] xxkb: Fix 'lib.optional' use --- pkgs/applications/misc/xxkb/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/misc/xxkb/default.nix b/pkgs/applications/misc/xxkb/default.nix index 6d96278356dff..c4e7fb23b8993 100644 --- a/pkgs/applications/misc/xxkb/default.nix +++ b/pkgs/applications/misc/xxkb/default.nix @@ -16,7 +16,7 @@ stdenv.mkDerivation rec { buildInputs = [ imake libX11 libXt libXext libXpm - ] ++ stdenv.lib.optional svgSupport [ librsvg glib gdk_pixbuf pkgconfig ]; + ] ++ stdenv.lib.optionals svgSupport [ librsvg glib gdk_pixbuf pkgconfig ]; outputs = [ "out" "man" ]; From 6086142eced1bb8a3a1daf2d02026d50a3cb1a35 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Wed, 31 Aug 2016 13:12:11 +0300 Subject: [PATCH 51/62] mupdf: Split 'dev' output --- pkgs/applications/misc/mupdf/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/mupdf/default.nix b/pkgs/applications/misc/mupdf/default.nix index ac5fb50859948..d52f88ad553d1 100644 --- a/pkgs/applications/misc/mupdf/default.nix +++ b/pkgs/applications/misc/mupdf/default.nix @@ -30,7 +30,7 @@ stdenv.mkDerivation rec { makeFlags = [ "prefix=$(out)" ]; nativeBuildInputs = [ pkgconfig ]; buildInputs = [ zlib libX11 libXcursor libXext harfbuzz mesa libXrandr libXinerama freetype libjpeg jbig2dec openjpeg ]; - outputs = [ "bin" "out" "doc" ]; + outputs = [ "bin" "dev" "out" "doc" ]; preConfigure = '' # Don't remove mujs because upstream version is incompatible @@ -55,7 +55,7 @@ stdenv.mkDerivation rec { Description: Library for rendering PDF documents Version: ${version} Libs: -L$out/lib -lmupdf -lmupdfthird - Cflags: -I$out/include + Cflags: -I$dev/include EOF moveToOutput "bin" "$bin" From 9b63aff395bbecbdb68b02bbc216925d35290b32 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Wed, 31 Aug 2016 13:55:40 +0300 Subject: [PATCH 52/62] go: Split output order to match new convention --- pkgs/development/go-modules/generic/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/go-modules/generic/default.nix b/pkgs/development/go-modules/generic/default.nix index 72c91daac401d..18bbdef8758ea 100644 --- a/pkgs/development/go-modules/generic/default.nix +++ b/pkgs/development/go-modules/generic/default.nix @@ -190,7 +190,7 @@ go.stdenv.mkDerivation ( enableParallelBuilding = enableParallelBuilding; # I prefer to call this dev but propagatedBuildInputs expects $out to exist - outputs = args.outputs or [ "out" "bin" ]; + outputs = args.outputs or [ "bin" "out" ]; meta = { # Add default meta information From 6563cd34d8d0d4bcde65011d8060fcc0dcf2946a Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Wed, 31 Aug 2016 15:23:24 +0300 Subject: [PATCH 53/62] qt5.6, qt5.7: Use dev output of qtbase in setupHook --- pkgs/development/libraries/qt-5/5.6/default.nix | 2 +- pkgs/development/libraries/qt-5/5.7/default.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/qt-5/5.6/default.nix b/pkgs/development/libraries/qt-5/5.6/default.nix index 5926267b558ef..2112b29c729cf 100644 --- a/pkgs/development/libraries/qt-5/5.6/default.nix +++ b/pkgs/development/libraries/qt-5/5.6/default.nix @@ -110,7 +110,7 @@ let ]; makeQtWrapper = makeSetupHook { deps = [ makeWrapper ]; } ./make-qt-wrapper.sh; - qmakeHook = makeSetupHook { deps = [ self.qtbase ]; } ./qmake-hook.sh; + qmakeHook = makeSetupHook { deps = [ self.qtbase.dev ]; } ./qmake-hook.sh; }; diff --git a/pkgs/development/libraries/qt-5/5.7/default.nix b/pkgs/development/libraries/qt-5/5.7/default.nix index 927702e81d4a5..c5d32b8ce0a2a 100644 --- a/pkgs/development/libraries/qt-5/5.7/default.nix +++ b/pkgs/development/libraries/qt-5/5.7/default.nix @@ -111,7 +111,7 @@ let qmakeHook = makeSetupHook - { deps = [ self.qtbase ]; } + { deps = [ self.qtbase.dev ]; } ./qmake-hook.sh; }; From b691bc22ef7afcf7e4f474825c701d1f4effdfa1 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Wed, 31 Aug 2016 19:37:05 +0300 Subject: [PATCH 54/62] golden-cheetah: Use 'dev' output of qttools --- pkgs/applications/misc/golden-cheetah/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/misc/golden-cheetah/default.nix b/pkgs/applications/misc/golden-cheetah/default.nix index 8d4339516a6e0..5a149657931f4 100644 --- a/pkgs/applications/misc/golden-cheetah/default.nix +++ b/pkgs/applications/misc/golden-cheetah/default.nix @@ -15,7 +15,7 @@ stdenv.mkDerivation rec { preConfigure = '' cp src/gcconfig.pri.in src/gcconfig.pri cp qwt/qwtconfig.pri.in qwt/qwtconfig.pri - echo 'QMAKE_LRELEASE = ${qttools}/bin/lrelease' >> src/gcconfig.pri + echo 'QMAKE_LRELEASE = ${qttools.dev}/bin/lrelease' >> src/gcconfig.pri sed -i -e '21,23d' qwt/qwtconfig.pri # Removed forced installation to /usr/local ''; #postConfigure = From 204f19ede1b72dbfa09aff692d64df1429e23243 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Wed, 31 Aug 2016 22:37:38 +0300 Subject: [PATCH 55/62] all-packages.nix: Remove '.bin // { outputs = [ "bin" ] }' hacks from Go packages Not needed in the new multiple-outputs infra. --- pkgs/top-level/all-packages.nix | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ca4ab18864e57..bd7fff480b055 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3117,7 +3117,7 @@ in platformioPackages = callPackage ../development/arduino/platformio { }; platformio = platformioPackages.platformio-chrootenv.override {}; - platinum-searcher = (callPackage ../tools/text/platinum-searcher { }).bin // { outputs = [ "bin" ]; }; + platinum-searcher = callPackage ../tools/text/platinum-searcher { }; plex = callPackage ../servers/plex { enablePlexPass = config.plex.enablePlexPass or false; }; @@ -3221,7 +3221,7 @@ in pytrainer = callPackage ../applications/misc/pytrainer { }; - remarshal = (callPackage ../development/tools/remarshal { }).bin // { outputs = [ "bin" ]; }; + remarshal = callPackage ../development/tools/remarshal { }; rtaudio = callPackage ../development/libraries/audio/rtaudio { }; @@ -10216,7 +10216,7 @@ in bird = callPackage ../servers/bird { }; bird6 = bird.override { enableIPv6 = true; }; - bosun = (callPackage ../servers/monitoring/bosun { }).bin // { outputs = [ "bin" ]; }; + bosun = callPackage ../servers/monitoring/bosun { }; scollector = bosun; charybdis = callPackage ../servers/irc/charybdis {}; @@ -10300,13 +10300,13 @@ in gofish = callPackage ../servers/gopher/gofish { }; - grafana = (callPackage ../servers/monitoring/grafana { }).bin // { outputs = ["bin"]; }; + grafana = callPackage ../servers/monitoring/grafana { }; groovebasin = callPackage ../applications/audio/groovebasin { nodejs = nodejs-0_10; }; haka = callPackage ../tools/security/haka { }; - heapster = (callPackage ../servers/monitoring/heapster { }).bin // { outputs = ["bin"]; }; + heapster = callPackage ../servers/monitoring/heapster { }; hbase = callPackage ../servers/hbase {}; @@ -10466,9 +10466,9 @@ in riak = callPackage ../servers/nosql/riak/2.1.1.nix { }; - influxdb = (callPackage ../servers/nosql/influxdb/v0.nix { }).bin // { outputs = [ "bin" ]; }; + influxdb = callPackage ../servers/nosql/influxdb/v0.nix { }; - influxdb10 = (callPackage ../servers/nosql/influxdb/v1.nix { }).bin // { outputs = [ "bin" ]; }; + influxdb10 = callPackage ../servers/nosql/influxdb/v1.nix { }; hyperdex = callPackage ../servers/nosql/hyperdex { }; @@ -17316,9 +17316,7 @@ in sqsh = callPackage ../development/tools/sqsh { }; - terraform = - (callPackage ../applications/networking/cluster/terraform {}).bin // - { outputs = [ "bin" ]; }; + terraform = callPackage ../applications/networking/cluster/terraform {}; tetex = callPackage ../tools/typesetting/tex/tetex { libpng = libpng12; }; From 63ab4ebf8d07e586b3317fc6d47aeae3a27a8d9a Mon Sep 17 00:00:00 2001 From: Guillaume Maudoux Date: Tue, 30 Aug 2016 23:29:10 +0200 Subject: [PATCH 56/62] openldap: do strip, with proper fix [dezgeg: Add comment about the proper fix in patchelf] --- pkgs/development/libraries/openldap/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/openldap/default.nix b/pkgs/development/libraries/openldap/default.nix index 23342d326fea1..70089a746257c 100644 --- a/pkgs/development/libraries/openldap/default.nix +++ b/pkgs/development/libraries/openldap/default.nix @@ -20,13 +20,16 @@ stdenv.mkDerivation rec { ++ stdenv.lib.optional (cyrus_sasl == null) "--without-cyrus-sasl" ++ stdenv.lib.optional stdenv.isFreeBSD "--with-pic"; - dontPatchELF = 1; # !!! - - # Fixup broken libtool + # 1. Fixup broken libtool + # 2. Libraries left in the build location confuse `patchelf --shrink-rpath` + # Delete these to let patchelf discover the right path instead. + # FIXME: that one can be removed when https://github.com/NixOS/patchelf/pull/98 + # is in Nixpkgs patchelf. preFixup = '' sed -e 's,-lsasl2,-L${cyrus_sasl.out}/lib -lsasl2,' \ -e 's,-lssl,-L${openssl.out}/lib -lssl,' \ -i $out/lib/libldap.la -i $out/lib/libldap_r.la + rm -r libraries/*/.libs ''; meta = with stdenv.lib; { From 20ab753e359e70a940f4b95829073d654ca97f10 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Sun, 21 Aug 2016 01:55:21 +0300 Subject: [PATCH 57/62] libaudit: Split into multiple outputs --- pkgs/os-specific/linux/audit/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/os-specific/linux/audit/default.nix b/pkgs/os-specific/linux/audit/default.nix index de56a8b84160c..afe73ef1b5a9c 100644 --- a/pkgs/os-specific/linux/audit/default.nix +++ b/pkgs/os-specific/linux/audit/default.nix @@ -12,6 +12,8 @@ stdenv.mkDerivation rec { sha256 = "0jwrww1vn7yqxmb84n6y4p58z34gga0ic4rs2msvpzc2x1hxrn31"; }; + outputs = [ "bin" "dev" "out" "man" ]; + buildInputs = [ openldap ] ++ stdenv.lib.optional enablePython python; From 5eff0b990cb2f2a9492b31f825679608d5f09d19 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Sun, 28 Aug 2016 18:57:36 +0300 Subject: [PATCH 58/62] audit service: Explicitly call auditctl to disable everything Otherwise, journald might be starting auditing. Some reading: - https://fedorahosted.org/fesco/ticket/1311 - https://github.com/systemd/systemd/issues/959 - https://github.com/openSUSE/systemd/commit/64f83d3087402c6f8730c1bc4b8fac59b84d4666 --- nixos/modules/security/audit.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/nixos/modules/security/audit.nix b/nixos/modules/security/audit.nix index f223f52ec487a..8d70811b01c76 100644 --- a/nixos/modules/security/audit.nix +++ b/nixos/modules/security/audit.nix @@ -4,6 +4,7 @@ with lib; let cfg = config.security.audit; + enabled = cfg.enable == "lock" || cfg.enable; failureModes = { silent = 0; @@ -11,6 +12,13 @@ let panic = 2; }; + disableScript = pkgs.writeScript "audit-disable" '' + #!${pkgs.stdenv.shell} -eu + # Explicitly disable everything, as otherwise journald might start it. + auditctl -D + auditctl -e 0 -a task,never + ''; + # TODO: it seems like people like their rules to be somewhat secret, yet they will not be if # put in the store like this. At the same time, it doesn't feel like a huge deal and working # around that is a pain so I'm leaving it like this for now. @@ -91,7 +99,7 @@ in { }; }; - config = mkIf (cfg.enable == "lock" || cfg.enable) { + config = { systemd.services.audit = { description = "Kernel Auditing"; wantedBy = [ "basic.target" ]; @@ -103,8 +111,8 @@ in { serviceConfig = { Type = "oneshot"; RemainAfterExit = true; - ExecStart = "@${startScript} audit-start"; - ExecStop = "@${stopScript} audit-stop"; + ExecStart = "@${if enabled then startScript else disableScript} audit-start"; + ExecStop = "@${stopScript} audit-stop"; }; }; }; From 16b3e26da4455c6d3f876639ce27ce6cd40d6895 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Mon, 22 Aug 2016 18:11:53 +0300 Subject: [PATCH 59/62] audit: Disable by default Because in its default enabled state it it causes a global performance hit on all system calls (https://fedorahosted.org/fesco/ticket/1311) and unwanted spam in dmesg, in particular when using Chromium (https://github.com/NixOS/nixpkgs/issues/13710). --- nixos/modules/security/audit.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/security/audit.nix b/nixos/modules/security/audit.nix index 8d70811b01c76..ebfe594d0c718 100644 --- a/nixos/modules/security/audit.nix +++ b/nixos/modules/security/audit.nix @@ -55,7 +55,7 @@ in { security.audit = { enable = mkOption { type = types.enum [ false true "lock" ]; - default = true; # The kernel seems to enable it by default with no rules anyway + default = false; description = '' Whether to enable the Linux audit system. The special `lock' value can be used to enable auditing and prevent disabling it until a restart. Be careful about locking From 5ad122b500eacf3b13b205ca97cfe0d5135fa0ee Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Mon, 22 Aug 2016 18:48:19 +0300 Subject: [PATCH 60/62] release notes: Add note about audit being disabled by default --- nixos/doc/manual/release-notes/rl-1609.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/doc/manual/release-notes/rl-1609.xml b/nixos/doc/manual/release-notes/rl-1609.xml index 29fdc104a7de9..63dd5bd73e746 100644 --- a/nixos/doc/manual/release-notes/rl-1609.xml +++ b/nixos/doc/manual/release-notes/rl-1609.xml @@ -77,6 +77,11 @@ following incompatible changes: environment.variables. + + The audit service is no longer enabled by default. + Use security.audit.enable = true; to explicitly enable it. + + From 43cf6f944a05e2f482c42142c38acae078bc6e21 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Thu, 1 Sep 2016 00:28:32 +0300 Subject: [PATCH 61/62] zabbix: Use dev outputs of libc --- pkgs/servers/monitoring/zabbix/2.0.nix | 2 +- pkgs/servers/monitoring/zabbix/2.2.nix | 2 +- pkgs/servers/monitoring/zabbix/default.nix | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/monitoring/zabbix/2.0.nix b/pkgs/servers/monitoring/zabbix/2.0.nix index 0aa32a66f0a5a..7020222803236 100644 --- a/pkgs/servers/monitoring/zabbix/2.0.nix +++ b/pkgs/servers/monitoring/zabbix/2.0.nix @@ -18,7 +18,7 @@ let substituteInPlace ./configure \ --replace " -static" "" \ ${stdenv.lib.optionalString (stdenv.cc.libc != null) '' - --replace /usr/include/iconv.h ${stdenv.cc.libc}/include/iconv.h + --replace /usr/include/iconv.h ${stdenv.lib.getDev stdenv.cc.libc}/include/iconv.h ''} ''; diff --git a/pkgs/servers/monitoring/zabbix/2.2.nix b/pkgs/servers/monitoring/zabbix/2.2.nix index 2ebc8026484c5..81eb675bb3307 100644 --- a/pkgs/servers/monitoring/zabbix/2.2.nix +++ b/pkgs/servers/monitoring/zabbix/2.2.nix @@ -23,7 +23,7 @@ let substituteInPlace ./configure \ --replace " -static" "" \ ${stdenv.lib.optionalString (stdenv.cc.libc != null) '' - --replace /usr/include/iconv.h ${stdenv.cc.libc}/include/iconv.h + --replace /usr/include/iconv.h ${stdenv.lib.getDev stdenv.cc.libc}/include/iconv.h ''} ''; diff --git a/pkgs/servers/monitoring/zabbix/default.nix b/pkgs/servers/monitoring/zabbix/default.nix index 0aa74599c3a46..4ea40128cd683 100644 --- a/pkgs/servers/monitoring/zabbix/default.nix +++ b/pkgs/servers/monitoring/zabbix/default.nix @@ -14,7 +14,7 @@ let substituteInPlace ./configure \ --replace " -static" "" \ ${stdenv.lib.optionalString (stdenv.cc.libc != null) '' - --replace /usr/include/iconv.h ${stdenv.cc.libc}/include/iconv.h + --replace /usr/include/iconv.h ${stdenv.lib.getDev stdenv.cc.libc}/include/iconv.h ''} ''; From 838c75398cc46cf2acbe144b1f3866d736abe430 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Thu, 1 Sep 2016 01:11:50 +0300 Subject: [PATCH 62/62] release notes: Fix unclosed tag --- nixos/doc/manual/release-notes/rl-1609.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/doc/manual/release-notes/rl-1609.xml b/nixos/doc/manual/release-notes/rl-1609.xml index 63dd5bd73e746..78b57dddf0761 100644 --- a/nixos/doc/manual/release-notes/rl-1609.xml +++ b/nixos/doc/manual/release-notes/rl-1609.xml @@ -79,7 +79,7 @@ following incompatible changes: The audit service is no longer enabled by default. - Use security.audit.enable = true; to explicitly enable it. + Use security.audit.enable = true; to explicitly enable it.