diff --git a/pkgs/applications/science/robotics/qgroundcontrol/default.nix b/pkgs/applications/science/robotics/qgroundcontrol/default.nix index 0d7e3ca55f12..692be0a88b12 100644 --- a/pkgs/applications/science/robotics/qgroundcontrol/default.nix +++ b/pkgs/applications/science/robotics/qgroundcontrol/default.nix @@ -29,12 +29,10 @@ stdenv.mkDerivation rec { patches = [ ./0001-fix-gcc-cmath-namespace-issues.patch ]; configurePhase = '' + runHook preConfigure mkdir build - pushd build - - qmake ../qgroundcontrol.pro - - popd + (cd build && qmake ../qgroundcontrol.pro) + runHook postConfigure ''; preBuild = "pushd build/";