summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorwucke13 <wucke13@gmail.com>2018-08-25 00:39:58 +0200
committerwucke13 <wucke13@gmail.com>2018-08-25 00:39:58 +0200
commitb7e695461e63a451f65095bc2e9ceffd553827d1 (patch)
tree56adc72ea7cc6b7a0c5c9642d6ec95c35d582eae /pkgs
parentbd1ebb0fa05fbf2a7bcce268debf9c98c4454ed4 (diff)
downloadnixlib-b7e695461e63a451f65095bc2e9ceffd553827d1.tar
nixlib-b7e695461e63a451f65095bc2e9ceffd553827d1.tar.gz
nixlib-b7e695461e63a451f65095bc2e9ceffd553827d1.tar.bz2
nixlib-b7e695461e63a451f65095bc2e9ceffd553827d1.tar.lz
nixlib-b7e695461e63a451f65095bc2e9ceffd553827d1.tar.xz
nixlib-b7e695461e63a451f65095bc2e9ceffd553827d1.tar.zst
nixlib-b7e695461e63a451f65095bc2e9ceffd553827d1.zip
apmplanner2: fixed wrong path in .desktop file
The `apmplanner2.desktop` file defaults to `/usr/share/...` regardless which out
prefix is given to make. So I chose to fix it manually.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/science/robotics/apmplanner2/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/applications/science/robotics/apmplanner2/default.nix b/pkgs/applications/science/robotics/apmplanner2/default.nix
index 7ae44418fff6..2d579a803698 100644
--- a/pkgs/applications/science/robotics/apmplanner2/default.nix
+++ b/pkgs/applications/science/robotics/apmplanner2/default.nix
@@ -23,8 +23,12 @@ stdenv.mkDerivation rec {
   qmakeFlags = [ "apm_planner.pro" ];
 
   # this ugly hack is necessary, as `bin/apmplanner2` needs the contents of `share/APMPlanner2` inside of `bin/`
-  preFixup = "ln --relative --symbolic $out/share/APMPlanner2/* $out/bin/";
-
+  preFixup = ''
+    ln --relative --symbolic $out/share/APMPlanner2/* $out/bin/
+    substituteInPlace $out/share/applications/apmplanner2.desktop \
+                      --replace /usr $out
+  '';
+  
   enableParallelBuilding = true;
 
   meta = {