Merge pull request #45609 from wucke13/apmplanner2

apmplanner2: fixed wrong path in .desktop file
This commit is contained in:
Silvan Mosberger 2018-08-25 01:51:43 +02:00 committed by GitHub
commit ea6279c301
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = {