qgroundcontrol: move to qmakeHook

This reverts commit 11294eaf168b524da9601c8b35d71b72ba3ad040.

+2 -12
+2 -12
pkgs/applications/science/robotics/qgroundcontrol/default.nix
··· 1 1 { stdenv, fetchgit, git, espeak, SDL, udev, doxygen, cmake, overrideCC#, gcc48 2 2 , qtbase, qtlocation, qtserialport, qtdeclarative, qtconnectivity, qtxmlpatterns 3 - , qtsvg, qtquick1, qtquickcontrols, qtgraphicaleffects 3 + , qtsvg, qtquick1, qtquickcontrols, qtgraphicaleffects, qmakeHook 4 4 , makeQtWrapper, lndir 5 5 , gst_all_1, qt_gstreamer1, pkgconfig, glibc 6 6 , version ? "2.9.4" ··· 23 23 24 24 enableParallelBuilding = true; 25 25 nativeBuildInputs = [ 26 - pkgconfig makeQtWrapper 26 + pkgconfig makeQtWrapper qmakeHook 27 27 ] ++ qtInputs; 28 28 29 29 patches = [ ./0001-fix-gcc-cmath-namespace-issues.patch ]; 30 - 31 - configurePhase = '' 32 - runHook preConfigure 33 - mkdir build 34 - (cd build && qmake ../qgroundcontrol.pro) 35 - runHook postConfigure 36 - ''; 37 - 38 - preBuild = "pushd build/"; 39 - postBuild = "popd"; 40 30 41 31 installPhase = '' 42 32 mkdir -p $out/share/applications