diff --git a/pkgs/by-name/ma/matrix-authentication-service/package.nix b/pkgs/by-name/ma/matrix-authentication-service/package.nix index 16c3bc679a03..74aa551f9748 100644 --- a/pkgs/by-name/ma/matrix-authentication-service/package.nix +++ b/pkgs/by-name/ma/matrix-authentication-service/package.nix @@ -14,14 +14,14 @@ cctools, }: -rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage (finalAttrs: { pname = "matrix-authentication-service"; version = "0.16.0"; src = fetchFromGitHub { owner = "element-hq"; repo = "matrix-authentication-service"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-/UrMmC5DTxoN6uzvTB+V3//hGQmKlkYvi5Lv4p31fq4="; }; @@ -29,8 +29,8 @@ rustPlatform.buildRustPackage rec { cargoHash = "sha256-UvRv69rHqPNqTg5nhUojTDHEFUIXF8LEB4ndzA7CHc0="; npmDeps = fetchNpmDeps { - name = "${pname}-${version}-npm-deps"; - src = "${src}/${npmRoot}"; + name = "${finalAttrs.pname}-${finalAttrs.version}-npm-deps"; + src = "${finalAttrs.src}/${finalAttrs.npmRoot}"; hash = "sha256-7EN8GIO8VutAZujVvgM67fGIXWD2aJhHhEJrTeHRiGE="; }; @@ -85,9 +85,9 @@ rustPlatform.buildRustPackage rec { meta = { description = "OAuth2.0 + OpenID Provider for Matrix Homeservers"; homepage = "https://github.com/element-hq/matrix-authentication-service"; - changelog = "https://github.com/element-hq/matrix-authentication-service/releases/tag/v${version}"; + changelog = "https://github.com/element-hq/matrix-authentication-service/releases/tag/v${finalAttrs.version}"; license = lib.licenses.agpl3Only; maintainers = with lib.maintainers; [ teutat3s ]; mainProgram = "mas-cli"; }; -} +})