summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParthiv Seetharaman <pachum99@myrdd.info>2022-03-12 02:31:13 +0000
committerParthiv Seetharaman <pachum99@myrdd.info>2022-03-12 02:31:13 +0000
commit379c750d75e89dc18ffff0c7a56192aefd7ee3ef (patch)
tree4eac2391a26a199d26c472bd28386b2b608c56b7
parentae7355cbe792f1a5f5c27f0b69b4072315765aad (diff)
parent5c4426332db325e3402a8145eea5e104e7df699e (diff)
Merge branch 'syncproxy' into 'main'
add syncproxy binary See merge request coffeetables/nix-matrix-appservices!3
-rw-r--r--pkgs/default.nix1
-rw-r--r--pkgs/mautrix-syncproxy/default.nix31
2 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/default.nix b/pkgs/default.nix
index 7562c58..2924023 100644
--- a/pkgs/default.nix
+++ b/pkgs/default.nix
@@ -5,4 +5,5 @@
mautrix-twitter = pkgs.callPackage ./mautrix-twitter { };
mautrix-instagram = pkgs.callPackage ./mautrix-instagram { };
mautrix-wsproxy = pkgs.callPackage ./mautrix-wsproxy { };
+ mautrix-syncproxy = pkgs.callPackage ./mautrix-syncproxy { };
}
diff --git a/pkgs/mautrix-syncproxy/default.nix b/pkgs/mautrix-syncproxy/default.nix
new file mode 100644
index 0000000..1145280
--- /dev/null
+++ b/pkgs/mautrix-syncproxy/default.nix
@@ -0,0 +1,31 @@
+{ lib, buildGoModule, fetchFromGitHub, olm }:
+
+buildGoModule rec {
+ pname = "mautrix-syncproxy-bin";
+ version = "unstable-2021-08-31";
+
+ src = fetchFromGitHub {
+ owner = "mautrix";
+ repo = "syncproxy";
+ rev = "808118c0daa684f3d82f28efc6b6d8ef70e1a4af";
+ sha256 = "sha256-CDzeJm0hTErLQwcPAvsnCYT2LZlv7iAXHmdMF9ZiK8Y=";
+ };
+
+ vendorSha256 = "sha256-ni1fcNNeaTBkfwNFztzmEAgA0v5a6sWoo93CvHQkvVA=";
+
+ doCheck = false;
+
+ proxyVendor = true;
+
+ postInstall = ''
+ mv $out/bin/mautrix-syncproxy $out/bin/mautrix-syncproxy-bin
+ '';
+
+ meta = with lib; {
+ homepage = "https://github.com/mautrix/syncproxy";
+ description = "A /sync proxy for encrypted Matrix appservices.";
+ mainProgram = "mautrix-syncproxy-bin";
+ license = licenses.agpl3Plus;
+ maintainers = with maintainers; [ ];
+ };
+}