mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 13:19:10 +03:00
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.
This commit is contained in:
parent
bd1ebb0fa0
commit
b7e695461e
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user