deepin.dde-calendar: fix use of patchShebangs

This commit is contained in:
José Romildo Malaquias 2019-04-02 18:34:41 -03:00
parent b08aff1999
commit a1bf396127

View file

@ -19,6 +19,7 @@ stdenv.mkDerivation rec {
qmake
qttools
deepin-gettext-tools
deepin.setupHook
];
buildInputs = [
@ -27,11 +28,14 @@ stdenv.mkDerivation rec {
];
postPatch = ''
patchShebangs .
searchHardCodedPaths
patchShebangs translate_generation.sh
patchShebangs translate_desktop.sh
fixPath $out /usr com.deepin.Calendar.service
sed -i translate_desktop.sh \
-e "s,/usr/bin/deepin-desktop-ts-convert,deepin-desktop-ts-convert,"
sed -i com.deepin.Calendar.service \
-e "s,/usr,$out,"
'';
passthru.updateScript = deepin.updateScript { inherit name; };