From 51f479465c22de490fe0e55ae6ae41cade6f771a Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Sun, 29 May 2016 19:51:07 +0300 Subject: [PATCH] qgroundcontrol: fix build --- .../science/robotics/qgroundcontrol/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/applications/science/robotics/qgroundcontrol/default.nix b/pkgs/applications/science/robotics/qgroundcontrol/default.nix index cac9fef182c..676c5013bcd 100644 --- a/pkgs/applications/science/robotics/qgroundcontrol/default.nix +++ b/pkgs/applications/science/robotics/qgroundcontrol/default.nix @@ -28,7 +28,15 @@ stdenv.mkDerivation rec { patches = [ ./0001-fix-gcc-cmath-namespace-issues.patch ]; + preConfigure = '' + mkdir build + cd build + ''; + + qmakeFlags = [ "../qgroundcontrol.pro" ]; + installPhase = '' + cd .. mkdir -p $out/share/applications cp -v qgroundcontrol.desktop $out/share/applications