matrix-authentication-service: fix `http_listener_assets_path_default()` (#432594)

authored by

Emily and committed by
GitHub
5bb0267a a2eb223c

+7 -6
+7 -6
pkgs/by-name/ma/matrix-authentication-service/package.nix
··· 63 63 64 64 postPatch = '' 65 65 substituteInPlace crates/config/src/sections/http.rs \ 66 - --replace ./frontend/dist/ "$out/share/$pname/assets/" 66 + --replace-fail ./share/assets/ "$out/share/$pname/assets/" 67 67 substituteInPlace crates/config/src/sections/templates.rs \ 68 - --replace ./share/templates/ "$out/share/$pname/templates/" \ 69 - --replace ./share/translations/ "$out/share/$pname/translations/" \ 70 - --replace ./share/manifest.json "$out/share/$pname/assets/manifest.json" 68 + --replace-fail ./share/templates/ "$out/share/$pname/templates/" \ 69 + --replace-fail ./share/translations/ "$out/share/$pname/translations/" \ 70 + --replace-fail ./share/manifest.json "$out/share/$pname/assets/manifest.json" 71 71 substituteInPlace crates/config/src/sections/policy.rs \ 72 - --replace ./share/policy.wasm "$out/share/$pname/policy.wasm" 72 + --replace-fail ./share/policy.wasm "$out/share/$pname/policy.wasm" 73 73 ''; 74 74 75 75 preBuild = '' ··· 77 77 (cd "$npmRoot" && npm run build) 78 78 ''; 79 79 80 - # Adopted from https://github.com/element-hq/matrix-authentication-service/blob/main/Dockerfile 80 + # Adapted from https://github.com/element-hq/matrix-authentication-service/blob/v0.20.0/.github/workflows/build.yaml#L75-L84 81 81 postInstall = '' 82 82 install -Dm444 -t "$out/share/$pname" "policies/policy.wasm" 83 + install -Dm444 -t "$out/share/$pname" "$npmRoot/dist/manifest.json" 83 84 install -Dm444 -t "$out/share/$pname/assets" "$npmRoot/dist/"* 84 85 cp -r templates "$out/share/$pname/templates" 85 86 cp -r translations "$out/share/$pname/translations"