summary refs log tree commit diff
diff options
context:
space:
mode:
authorThomas Tuegel <ttuegel@gmail.com>2016-04-26 14:21:10 -0500
committerThomas Tuegel <ttuegel@gmail.com>2016-04-30 12:20:09 -0500
commit008b3d5d84ad300095eeee0b84ef1b5adb04c395 (patch)
tree00b51ac3734f029f6091410a38a8086efc56bbb3
parent97d9368471542388dd761a1a4654c52cd7ddbea7 (diff)
downloadnixpkgs-008b3d5d84ad300095eeee0b84ef1b5adb04c395.tar
nixpkgs-008b3d5d84ad300095eeee0b84ef1b5adb04c395.tar.gz
nixpkgs-008b3d5d84ad300095eeee0b84ef1b5adb04c395.tar.bz2
nixpkgs-008b3d5d84ad300095eeee0b84ef1b5adb04c395.tar.lz
nixpkgs-008b3d5d84ad300095eeee0b84ef1b5adb04c395.tar.xz
nixpkgs-008b3d5d84ad300095eeee0b84ef1b5adb04c395.tar.zst
nixpkgs-008b3d5d84ad300095eeee0b84ef1b5adb04c395.zip
qt55.qtbase: move moveToOutput hooks
-rw-r--r--pkgs/development/libraries/qt-5/5.5/qtbase/default.nix23
1 files changed, 10 insertions, 13 deletions
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 f8dd82c8822..f2071fa6f8f 100644
--- a/pkgs/development/libraries/qt-5/5.5/qtbase/default.nix
+++ b/pkgs/development/libraries/qt-5/5.5/qtbase/default.nix
@@ -111,19 +111,6 @@ stdenv.mkDerivation {
     export LD_LIBRARY_PATH="$PWD/qtbase/lib:$PWD/qtbase/plugins/platforms:$LD_LIBRARY_PATH"
     export MAKEFLAGS=-j$NIX_BUILD_CORES
 
-    _multioutQtDevs() {
-        # We cannot simply set these paths in configureFlags because libQtCore retains
-        # references to the paths it was built with.
-        moveToOutput "bin" "$dev"
-        moveToOutput "include" "$dev"
-        moveToOutput "mkspecs" "$dev"
-
-        # The destination directory must exist or moveToOutput will do nothing
-        mkdir -p "$dev/share"
-        moveToOutput "share/doc" "$dev"
-    }
-    preFixupHooks+=(_multioutQtDevs)
-
     configureFlags+="\
         -plugindir $out/lib/qt5/plugins \
         -importdir $out/lib/qt5/imports \
@@ -236,6 +223,16 @@ stdenv.mkDerivation {
   NIX_CFLAGS_COMPILE = "-Wno-error=sign-compare";
 
   preFixup = ''
+    # We cannot simply set these paths in configureFlags because libQtCore retains
+    # references to the paths it was built with.
+    moveToOutput "bin" "$dev"
+    moveToOutput "include" "$dev"
+    moveToOutput "mkspecs" "$dev"
+
+    # The destination directory must exist or moveToOutput will do nothing
+    mkdir -p "$dev/share"
+    moveToOutput "share/doc" "$dev"
+
     # Move libtool archives and qmake projects
     if [ "z''${!outputLib}" != "z''${!outputDev}" ]; then
         pushd "''${!outputLib}"