summaryrefslogtreecommitdiff
path: root/pkgs/mautrix-wsproxy
diff options
context:
space:
mode:
authorParthiv Seetharaman <pachum99@myrdd.info>2022-01-16 21:29:21 -0800
committerParthiv Seetharaman <pachum99@myrdd.info>2022-01-16 21:44:42 -0800
commit8c05a809d70aeeb6c6e23d405ba693040ad00730 (patch)
tree70cc604e5eeb943e15c925f8e0c4d6d1eae8ed7c /pkgs/mautrix-wsproxy
init the module, README, packages, and other stuff
Diffstat (limited to 'pkgs/mautrix-wsproxy')
-rw-r--r--pkgs/mautrix-wsproxy/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/mautrix-wsproxy/default.nix b/pkgs/mautrix-wsproxy/default.nix
new file mode 100644
index 0000000..fb5d7d9
--- /dev/null
+++ b/pkgs/mautrix-wsproxy/default.nix
@@ -0,0 +1,34 @@
+{ lib, buildGoModule, fetchFromGitHub, olm }:
+
+buildGoModule rec {
+ pname = "mautrix-wsproxy-bin";
+ version = "unstable-2021-09-07";
+
+ src = fetchFromGitHub {
+ owner = "mautrix";
+ repo = "wsproxy";
+ rev = "2f097e3f2b6d003b3c913933839f12a8cd9d2d41";
+ sha256 = "0sy7ns60nzq58j500cswvj04q75ji18cnn01bacdrqwnklmh2g24";
+ };
+
+ buildInputs = [ olm ];
+
+ vendorSha256 = "sha256-kJw3w14RQBAdMoFItjT/LmzuKaDTR09mW3H+7gNUS3s=";
+
+ doCheck = false;
+
+ runVend = true;
+
+ postInstall = ''
+ mv $out/bin/mautrix-wsproxy $out/bin/mautrix-wsproxy-bin
+
+ '';
+
+ meta = with lib; {
+ homepage = "https://github.com/mautrix/wsproxy";
+ description = "A simple HTTP push -> websocket proxy for Matrix appservices.";
+ mainProgram = "mautrix-wsproxy-bin";
+ license = licenses.agpl3Plus;
+ maintainers = with maintainers; [ pacman99 ];
+ };
+}