diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-11-07 20:51:39 +0100 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-11-07 20:51:39 +0100 |
| commit | 0e9f1e85cd8c6f9d546ef88e971043b909017170 (patch) | |
| tree | 5cb4d14df7594ef123f20d82cb2ec423b6bca744 /overlays/matrix-synapse/1.70.1/plugins | |
| parent | f563ddece04adfd8d80d4e984405f5c70a6c94f3 (diff) | |
| download | nixos-0e9f1e85cd8c6f9d546ef88e971043b909017170.tar nixos-0e9f1e85cd8c6f9d546ef88e971043b909017170.tar.gz nixos-0e9f1e85cd8c6f9d546ef88e971043b909017170.tar.bz2 nixos-0e9f1e85cd8c6f9d546ef88e971043b909017170.tar.xz nixos-0e9f1e85cd8c6f9d546ef88e971043b909017170.zip | |
...
Diffstat (limited to 'overlays/matrix-synapse/1.70.1/plugins')
5 files changed, 98 insertions, 0 deletions
diff --git a/overlays/matrix-synapse/1.70.1/plugins/default.nix b/overlays/matrix-synapse/1.70.1/plugins/default.nix new file mode 100644 index 00000000..e67d9075 --- /dev/null +++ b/overlays/matrix-synapse/1.70.1/plugins/default.nix | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | { callPackage }: | ||
| 2 | |||
| 3 | { | ||
| 4 | matrix-synapse-ldap3 = callPackage ./ldap3.nix { }; | ||
| 5 | matrix-synapse-mjolnir-antispam = callPackage ./mjolnir-antispam.nix { }; | ||
| 6 | matrix-synapse-pam = callPackage ./pam.nix { }; | ||
| 7 | matrix-synapse-shared-secret-auth = callPackage ./shared-secret-auth.nix { }; | ||
| 8 | } | ||
diff --git a/overlays/matrix-synapse/1.70.1/plugins/ldap3.nix b/overlays/matrix-synapse/1.70.1/plugins/ldap3.nix new file mode 100644 index 00000000..394c0f5e --- /dev/null +++ b/overlays/matrix-synapse/1.70.1/plugins/ldap3.nix | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | { isPy3k, buildPythonPackage, fetchPypi, service-identity, ldap3, twisted, ldaptor, mock }: | ||
| 2 | |||
| 3 | buildPythonPackage rec { | ||
| 4 | pname = "matrix-synapse-ldap3"; | ||
| 5 | version = "0.1.5"; | ||
| 6 | |||
| 7 | src = fetchPypi { | ||
| 8 | inherit pname version; | ||
| 9 | sha256 = "9fdf8df7c8ec756642aa0fea53b31c0b2f1924f70d7f049a2090b523125456fe"; | ||
| 10 | }; | ||
| 11 | |||
| 12 | propagatedBuildInputs = [ service-identity ldap3 twisted ]; | ||
| 13 | |||
| 14 | # ldaptor is not ready for py3 yet | ||
| 15 | doCheck = !isPy3k; | ||
| 16 | checkInputs = [ ldaptor mock ]; | ||
| 17 | } | ||
diff --git a/overlays/matrix-synapse/1.70.1/plugins/mjolnir-antispam.nix b/overlays/matrix-synapse/1.70.1/plugins/mjolnir-antispam.nix new file mode 100644 index 00000000..7372c2f7 --- /dev/null +++ b/overlays/matrix-synapse/1.70.1/plugins/mjolnir-antispam.nix | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | { lib, buildPythonPackage, fetchFromGitHub, matrix-synapse }: | ||
| 2 | |||
| 3 | buildPythonPackage rec { | ||
| 4 | pname = "matrix-synapse-mjolnir-antispam"; | ||
| 5 | version = "1.5.0"; | ||
| 6 | |||
| 7 | src = fetchFromGitHub { | ||
| 8 | owner = "matrix-org"; | ||
| 9 | repo = "mjolnir"; | ||
| 10 | rev = "refs/tags/v${version}"; | ||
| 11 | sha256 = "sha256-YmP+r9W5e63Aw66lSQeTTbYwSF/vjPyHkoehJxtcRNw="; | ||
| 12 | }; | ||
| 13 | |||
| 14 | sourceRoot = "./source/synapse_antispam"; | ||
| 15 | |||
| 16 | propagatedBuildInputs = [ matrix-synapse ]; | ||
| 17 | |||
| 18 | doCheck = false; # no tests | ||
| 19 | pythonImportsCheck = [ "mjolnir" ]; | ||
| 20 | |||
| 21 | meta = with lib; { | ||
| 22 | description = "AntiSpam / Banlist plugin to be used with mjolnir"; | ||
| 23 | longDescription = '' | ||
| 24 | Primarily meant to block invites from undesired homeservers/users, | ||
| 25 | Mjolnir's Synapse module is a way to interpret ban lists and apply | ||
| 26 | them to your entire homeserver. | ||
| 27 | ''; | ||
| 28 | homepage = "https://github.com/matrix-org/mjolnir#synapse-module"; | ||
| 29 | license = licenses.asl20; | ||
| 30 | maintainers = with maintainers; [ jojosch ]; | ||
| 31 | }; | ||
| 32 | } | ||
diff --git a/overlays/matrix-synapse/1.70.1/plugins/pam.nix b/overlays/matrix-synapse/1.70.1/plugins/pam.nix new file mode 100644 index 00000000..a14fe6d6 --- /dev/null +++ b/overlays/matrix-synapse/1.70.1/plugins/pam.nix | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | { buildPythonPackage, fetchFromGitHub, twisted, python-pam }: | ||
| 2 | |||
| 3 | buildPythonPackage rec { | ||
| 4 | pname = "matrix-synapse-pam"; | ||
| 5 | version = "0.1.3"; | ||
| 6 | |||
| 7 | src = fetchFromGitHub { | ||
| 8 | owner = "14mRh4X0r"; | ||
| 9 | repo = "matrix-synapse-pam"; | ||
| 10 | rev = "v${version}"; | ||
| 11 | sha256 = "0jgz49cwiyih5cg3hr4byva04zjnq8aj7rima9874la9fc5sd2wf"; | ||
| 12 | }; | ||
| 13 | |||
| 14 | propagatedBuildInputs = [ twisted python-pam ]; | ||
| 15 | } | ||
diff --git a/overlays/matrix-synapse/1.70.1/plugins/shared-secret-auth.nix b/overlays/matrix-synapse/1.70.1/plugins/shared-secret-auth.nix new file mode 100644 index 00000000..a6e22db3 --- /dev/null +++ b/overlays/matrix-synapse/1.70.1/plugins/shared-secret-auth.nix | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | { lib, buildPythonPackage, fetchFromGitHub, matrix-synapse, twisted }: | ||
| 2 | |||
| 3 | buildPythonPackage rec { | ||
| 4 | pname = "matrix-synapse-shared-secret-auth"; | ||
| 5 | version = "2.0.2"; | ||
| 6 | |||
| 7 | src = fetchFromGitHub { | ||
| 8 | owner = "devture"; | ||
| 9 | repo = "matrix-synapse-shared-secret-auth"; | ||
| 10 | rev = version; | ||
| 11 | sha256 = "sha256-qzXKwTEOMtdvsxoU3Xh3vQyhK+Q18LfkeSts7EyDIXE="; | ||
| 12 | }; | ||
| 13 | |||
| 14 | doCheck = false; | ||
| 15 | pythonImportsCheck = [ "shared_secret_authenticator" ]; | ||
| 16 | |||
| 17 | buildInputs = [ matrix-synapse ]; | ||
| 18 | propagatedBuildInputs = [ twisted ]; | ||
| 19 | |||
| 20 | meta = with lib; { | ||
| 21 | description = "Shared Secret Authenticator password provider module for Matrix Synapse"; | ||
| 22 | homepage = "https://github.com/devture/matrix-synapse-shared-secret-auth"; | ||
| 23 | license = licenses.agpl3Plus; | ||
| 24 | maintainers = with maintainers; [ sumnerevans ]; | ||
| 25 | }; | ||
| 26 | } | ||
