matrix-authentication-service: use substituteInPlace

--replace-fail, substituteInPlace --replace is deprecated
This commit is contained in:
teutat3s 2025-02-05 20:42:42 -03:00 committed by emilylange
parent 29cf5a6887
commit 733428167d
No known key found for this signature in database
GPG Key ID: 0AD773CE46FD0F87

View File

@ -63,13 +63,13 @@ rustPlatform.buildRustPackage (finalAttrs: {
postPatch = ''
substituteInPlace crates/config/src/sections/http.rs \
--replace ./frontend/dist/ "$out/share/$pname/assets/"
--replace-fail ./frontend/dist/ "$out/share/$pname/assets/"
substituteInPlace crates/config/src/sections/templates.rs \
--replace ./share/templates/ "$out/share/$pname/templates/" \
--replace ./share/translations/ "$out/share/$pname/translations/" \
--replace ./share/manifest.json "$out/share/$pname/assets/manifest.json"
--replace-fail ./share/templates/ "$out/share/$pname/templates/" \
--replace-fail ./share/translations/ "$out/share/$pname/translations/" \
--replace-fail ./share/manifest.json "$out/share/$pname/assets/manifest.json"
substituteInPlace crates/config/src/sections/policy.rs \
--replace ./share/policy.wasm "$out/share/$pname/policy.wasm"
--replace-fail ./share/policy.wasm "$out/share/$pname/policy.wasm"
'';
preBuild = ''