mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-19 16:09:19 +03:00
matrix-authentication-service: use finalAttrs
instead of rec
This commit is contained in:
parent
c6c1ed657c
commit
201b0e24e0
1 changed files with 6 additions and 6 deletions
|
@ -14,14 +14,14 @@
|
||||||
cctools,
|
cctools,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage (finalAttrs: {
|
||||||
pname = "matrix-authentication-service";
|
pname = "matrix-authentication-service";
|
||||||
version = "0.16.0";
|
version = "0.16.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "element-hq";
|
owner = "element-hq";
|
||||||
repo = "matrix-authentication-service";
|
repo = "matrix-authentication-service";
|
||||||
tag = "v${version}";
|
tag = "v${finalAttrs.version}";
|
||||||
hash = "sha256-/UrMmC5DTxoN6uzvTB+V3//hGQmKlkYvi5Lv4p31fq4=";
|
hash = "sha256-/UrMmC5DTxoN6uzvTB+V3//hGQmKlkYvi5Lv4p31fq4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -29,8 +29,8 @@ rustPlatform.buildRustPackage rec {
|
||||||
cargoHash = "sha256-UvRv69rHqPNqTg5nhUojTDHEFUIXF8LEB4ndzA7CHc0=";
|
cargoHash = "sha256-UvRv69rHqPNqTg5nhUojTDHEFUIXF8LEB4ndzA7CHc0=";
|
||||||
|
|
||||||
npmDeps = fetchNpmDeps {
|
npmDeps = fetchNpmDeps {
|
||||||
name = "${pname}-${version}-npm-deps";
|
name = "${finalAttrs.pname}-${finalAttrs.version}-npm-deps";
|
||||||
src = "${src}/${npmRoot}";
|
src = "${finalAttrs.src}/${finalAttrs.npmRoot}";
|
||||||
hash = "sha256-7EN8GIO8VutAZujVvgM67fGIXWD2aJhHhEJrTeHRiGE=";
|
hash = "sha256-7EN8GIO8VutAZujVvgM67fGIXWD2aJhHhEJrTeHRiGE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -85,9 +85,9 @@ rustPlatform.buildRustPackage rec {
|
||||||
meta = {
|
meta = {
|
||||||
description = "OAuth2.0 + OpenID Provider for Matrix Homeservers";
|
description = "OAuth2.0 + OpenID Provider for Matrix Homeservers";
|
||||||
homepage = "https://github.com/element-hq/matrix-authentication-service";
|
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;
|
license = lib.licenses.agpl3Only;
|
||||||
maintainers = with lib.maintainers; [ teutat3s ];
|
maintainers = with lib.maintainers; [ teutat3s ];
|
||||||
mainProgram = "mas-cli";
|
mainProgram = "mas-cli";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue