matrix-authentication-service: 0.10.0 -> 0.12.0 (#342301)

This commit is contained in:
Adam C. Stephens 2024-09-20 08:14:23 -04:00 committed by GitHub
commit b93a350252
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7618 additions and 11 deletions

File diff suppressed because it is too large Load Diff

View File

@ -15,21 +15,26 @@
rustPlatform.buildRustPackage rec {
pname = "matrix-authentication-service";
version = "0.10.0";
version = "0.12.0";
src = fetchFromGitHub {
owner = "matrix-org";
owner = "element-hq";
repo = "matrix-authentication-service";
rev = "refs/tags/v${version}";
hash = "sha256-cZJ9ibBtxVBBVCBTGhtfM6lQTFvgUnO1WPO1WmDGuks=";
hash = "sha256-QLtyYxV2yXHJtwWgGcyi7gRcKypYoy9Z8bkEuTopVXc=";
};
cargoHash = "sha256-mUHN1uEc1qM1Bm/J7qf0zyMKaJvyt9YbQ8TxvxG+vcM=";
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"sea-query-0.32.0-rc.1" = "sha256-Q/NFiIBu8L5rQj4jwcIo8ACmAhLBy4HSTcJv06UdK8E=";
};
};
npmDeps = fetchNpmDeps {
name = "${pname}-${version}-npm-deps";
src = "${src}/${npmRoot}";
hash = "sha256-CMdnHS3sj9gXLpVlmuKvqFJ28+7fddG2Ld6t2nSFp24=";
hash = "sha256-EfDxbdjzF0yLQlueIYKmdpU4v9dx7g8bltU63mIWfo0=";
};
npmRoot = "frontend";
@ -75,7 +80,7 @@ rustPlatform.buildRustPackage rec {
(cd "$npmRoot" && npm run build)
'';
# Adopted from https://github.com/matrix-org/matrix-authentication-service/blob/main/Dockerfile
# Adopted from https://github.com/element-hq/matrix-authentication-service/blob/main/Dockerfile
postInstall = ''
install -Dm444 -t "$out/share/$pname" "policies/policy.wasm"
install -Dm444 -t "$out/share/$pname/assets" "$npmRoot/dist/"*
@ -83,12 +88,12 @@ rustPlatform.buildRustPackage rec {
cp -r translations "$out/share/$pname/translations"
'';
meta = with lib; {
meta = {
description = "OAuth2.0 + OpenID Provider for Matrix Homeservers";
homepage = "https://github.com/matrix-org/matrix-authentication-service";
changelog = "https://github.com/matrix-org/matrix-authentication-service/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ teutat3s ];
homepage = "https://github.com/element-hq/matrix-authentication-service";
changelog = "https://github.com/element-hq/matrix-authentication-service/releases/tag/v${version}";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ teutat3s ];
mainProgram = "mas-cli";
};
}