mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
Merge pull request #217393 from SuperSandro2000/matrix-http-rendezvous-synapse
This commit is contained in:
commit
0c63bfd476
@ -1,6 +1,7 @@
|
||||
{ callPackage }:
|
||||
|
||||
{
|
||||
matrix-http-rendezvous-synapse = callPackage ./rendezvous.nix { };
|
||||
matrix-synapse-ldap3 = callPackage ./ldap3.nix { };
|
||||
matrix-synapse-mjolnir-antispam = callPackage ./mjolnir-antispam.nix { };
|
||||
matrix-synapse-pam = callPackage ./pam.nix { };
|
||||
|
1463
pkgs/servers/matrix-synapse/plugins/rendezvous-Cargo.lock
generated
Normal file
1463
pkgs/servers/matrix-synapse/plugins/rendezvous-Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
48
pkgs/servers/matrix-synapse/plugins/rendezvous.nix
Normal file
48
pkgs/servers/matrix-synapse/plugins/rendezvous.nix
Normal file
@ -0,0 +1,48 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, fetchPypi, rustPlatform, setuptools-rust }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "matrix-http-rendezvous-synapse";
|
||||
version = "0.1.12";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "matrix-org";
|
||||
repo = "rust-http-rendezvous-server";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-minwa+7HLTNSBtBtt5pnoHsFnNEh834nsVw80+FIQi8=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
cp ${./rendezvous-Cargo.lock} Cargo.lock
|
||||
'';
|
||||
|
||||
cargoDeps = rustPlatform.fetchCargoTarball {
|
||||
inherit src postPatch;
|
||||
name = "${pname}-${version}";
|
||||
hash = "sha256-TyxDq6YxZUArRj5gpjB1afDQgtUlCVer3Uhq6YKvVYM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-rust
|
||||
] ++ (with rustPlatform; [
|
||||
cargoSetupHook
|
||||
maturinBuildHook
|
||||
]);
|
||||
|
||||
preBuild = ''
|
||||
cd synapse
|
||||
'';
|
||||
|
||||
postBuild = ''
|
||||
cd ..
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "matrix_http_rendezvous_synapse" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Implementation of MSC3886: Simple rendezvous capability";
|
||||
homepage = "https://github.com/matrix-org/rust-http-rendezvous-server";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user