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-10-27 10:12:10 +08:00
parent 268ad2a62c
commit 142e140601
No known key found for this signature in database
GPG Key ID: 2964FF5514455F51

View File

@ -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 = [