From 801656609b74dae9480d2a0339bae6a49773c33d Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Tue, 30 Apr 2024 14:54:59 +0200 Subject: [PATCH] matrix-authentication-service: init at 0.9.0 --- flake.nix | 1 + .../matrix-authentication-service/default.nix | 29 +++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/matrix-authentication-service/default.nix diff --git a/flake.nix b/flake.nix index 9dcbbae..b25b850 100644 --- a/flake.nix +++ b/flake.nix @@ -67,6 +67,7 @@ # thinkpad = self.nixosConfigurations.thinkpad.config.system.build.toplevel; jmri = nixpkgs.legacyPackages.x86_64-linux.callPackage ./pkgs/jmri { }; adguardian-term = nixpkgs.legacyPackages.x86_64-linux.callPackage ./pkgs/adguardian-term { }; + matrix-authentication-service = nixpkgs.legacyPackages.x86_64-linux.callPackage ./pkgs/matrix-authentication-service { }; pww = nixpkgs.legacyPackages.x86_64-linux.callPackage ./pkgs/pww { }; gnome-break-timer = nixpkgs.legacyPackages.x86_64-linux.callPackage ./pkgs/gnome-break-timer { }; hashcash-milter = nixpkgs.legacyPackages.x86_64-linux.callPackage ./pkgs/hashcash-milter { }; diff --git a/pkgs/matrix-authentication-service/default.nix b/pkgs/matrix-authentication-service/default.nix new file mode 100644 index 0000000..9f3feae --- /dev/null +++ b/pkgs/matrix-authentication-service/default.nix @@ -0,0 +1,29 @@ +{ lib, rustPlatform, fetchFromGitHub }: +rustPlatform.buildRustPackage rec { + pname = "matrix-authentication-service"; + version = "0.9.0"; + + src = fetchFromGitHub { + owner = "matrix-org"; + repo = pname; + rev = "v${version}"; + hash = "sha256-e5JlkcSJ44iE+pVnGQpGiSNahxUcIFeaPyOjp9E3eD0="; + }; + cargoLock = { + lockFile = "${src}/Cargo.lock"; + outputHashes = { + "opa-wasm-0.1.0" = "sha256-f3IIln7BbN7NJiCVMgfoell/plzlqkSm4YYK7mqzKgw="; + }; + }; + + meta = with lib; + { + description = "O.uth2.0 + OpenID Provider for Matrix Homeservers"; + homepage = "https://github.com/matrix-org/matrix-authentication-service/blob/main/LICENSE"; + license = with licenses; [ asl20 ]; + maintainers = with maintainers; [ therealr5 ]; + mainProgram = "mas-cli"; + }; +} + +