From c26b42be74591a63b95d29aca86872f3f67f71ed Mon Sep 17 00:00:00 2001 From: wucke13 Date: Sun, 11 Nov 2018 14:25:13 +0100 Subject: [PATCH] qgroundcontrol: fixes #49870 The `.desktop` referenced a non existent script to run `QGroundControl`. This commits adds a `sed` command, which replaces the non existent script by the name of the `QGroundControl` binary in the relevant `.desktop` file. --- pkgs/applications/science/robotics/qgroundcontrol/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/science/robotics/qgroundcontrol/default.nix b/pkgs/applications/science/robotics/qgroundcontrol/default.nix index ce3317da9f8..eae5d3766d6 100644 --- a/pkgs/applications/science/robotics/qgroundcontrol/default.nix +++ b/pkgs/applications/science/robotics/qgroundcontrol/default.nix @@ -37,6 +37,7 @@ stdenv.mkDerivation rec { cd .. mkdir -p $out/share/applications + sed 's/Exec=.*$/Exec=QGroundControl/g' --in-place deploy/qgroundcontrol.desktop cp -v deploy/qgroundcontrol.desktop $out/share/applications mkdir -p $out/bin