summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2016-04-17 02:21:07 +0300
committerNikolay Amiantov <ab@fmap.me>2016-04-20 18:48:01 +0300
commit065a7515a75e15b30840da31dc063564fa4335a4 (patch)
tree9b0c5da02680ae634bbb74fb353114f79254edd6 /pkgs
parent3ecbb214b6c0f0571c5742357f80e2d11c2c5935 (diff)
downloadnixpkgs-065a7515a75e15b30840da31dc063564fa4335a4.tar
nixpkgs-065a7515a75e15b30840da31dc063564fa4335a4.tar.gz
nixpkgs-065a7515a75e15b30840da31dc063564fa4335a4.tar.bz2
nixpkgs-065a7515a75e15b30840da31dc063564fa4335a4.tar.lz
nixpkgs-065a7515a75e15b30840da31dc063564fa4335a4.tar.xz
nixpkgs-065a7515a75e15b30840da31dc063564fa4335a4.tar.zst
nixpkgs-065a7515a75e15b30840da31dc063564fa4335a4.zip
qmake4Hook: init
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/qt-4.x/4.8/qmake-hook.sh11
-rw-r--r--pkgs/top-level/all-packages.nix6
2 files changed, 17 insertions, 0 deletions
diff --git a/pkgs/development/libraries/qt-4.x/4.8/qmake-hook.sh b/pkgs/development/libraries/qt-4.x/4.8/qmake-hook.sh
new file mode 100644
index 00000000000..bf716a72d0f
--- /dev/null
+++ b/pkgs/development/libraries/qt-4.x/4.8/qmake-hook.sh
@@ -0,0 +1,11 @@
+qmakeConfigurePhase() {
+    runHook preConfigure
+
+    $QMAKE PREFIX=$out $qmakeFlags
+
+    runHook postConfigure
+}
+
+export QMAKE=@qt4@/bin/qmake
+
+configurePhase=qmakeConfigurePhase
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index aef36f574be..dd2abaa4dc4 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -8544,6 +8544,12 @@ in
     inherit (pkgs.darwin.apple_sdk.frameworks) ApplicationServices OpenGL Cocoa AGL;
   };
 
+  qmake48Hook = makeSetupHook
+    { substitutions = { qt4 = qt48; }; }
+    ../development/libraries/qt-4.x/4.8/qmake-hook.sh;
+
+  qmake4Hook = qmake48Hook;
+
   qt48Full = appendToName "full" (qt48.override {
     docs = true;
     demos = true;