Merge pull request #59429 from romildo/upd.deepin.deepin-screenshot

deepin.deepin-screenshot: fix FHS hard coded path
This commit is contained in:
worldofpeace 2019-04-13 19:50:59 -04:00 committed by GitHub
commit bbb7657c34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -38,12 +38,17 @@ stdenv.mkDerivation rec {
]; ];
postPatch = '' postPatch = ''
searchHardCodedPaths
patchShebangs generate_translations.sh patchShebangs generate_translations.sh
fixPath ${deepin-turbo} /usr/bin/deepin-turbo-invoker src/dbusservice/com.deepin.Screenshot.service 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"' substituteInPlace src/mainwindow.cpp --replace '"xdg-open,%1"' '"${xdg_utils}/bin/xdg-open,%1"'
''; '';
postFixup = ''
searchHardCodedPaths $out
'';
passthru.updateScript = deepin.updateScript { inherit name; }; passthru.updateScript = deepin.updateScript { inherit name; };
meta = with stdenv.lib; { meta = with stdenv.lib; {