deepin-screen-recorder: use a substituteInPlace candidate to patch

Co-authored-by: Peder Bergebakken Sundt <pbsds@hotmail.com>
This commit is contained in:
rewine
2023-11-23 10:00:48 +08:00
co-authored by Peder Bergebakken Sundt
parent 268ad2a62c
commit 142e140601
@@ -39,7 +39,11 @@ stdenv.mkDerivation rec {
patches = [ ./dont_use_libPath.diff ];
postPatch = ''
find . -type f -regex ".*\\.\\(pro\\|service\\|desktop\\)" -exec sed -i -e "s|/usr/|$out/|g" {} \;
(
shopt -s globstar
substituteInPlace **/*.pro **/*.service **/*.desktop \
--replace "/usr/" "$out/"
)
'';
nativeBuildInputs = [