Skip to content

Commit

Permalink
Merge pull request #59429 from romildo/upd.deepin.deepin-screenshot
Browse files Browse the repository at this point in the history
deepin.deepin-screenshot: fix FHS hard coded path
  • Loading branch information
worldofpeace authored Apr 13, 2019
2 parents 05a53ec + e4745e8 commit bbb7657
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkgs/desktops/deepin/deepin-screenshot/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,17 @@ stdenv.mkDerivation rec {
];

postPatch = ''
searchHardCodedPaths
patchShebangs generate_translations.sh
fixPath ${deepin-turbo} /usr/bin/deepin-turbo-invoker src/dbusservice/com.deepin.Screenshot.service
fixPath $out/bin/deepin-screenshot /usr/bin/deepin-screenshot src/dbusservice/com.deepin.Screenshot.service
fixPath $out /usr/bin/deepin-screenshot src/dbusservice/com.deepin.Screenshot.service
substituteInPlace src/mainwindow.cpp --replace '"xdg-open,%1"' '"${xdg_utils}/bin/xdg-open,%1"'
'';

postFixup = ''
searchHardCodedPaths $out
'';

passthru.updateScript = deepin.updateScript { inherit name; };

meta = with stdenv.lib; {
Expand Down

0 comments on commit bbb7657

Please sign in to comment.