about summary refs log tree commit diff
path: root/pkgs/servers/mediamtx
diff options
context:
space:
mode:
authorDoron Behar <doron.behar@gmail.com>2023-04-11 18:02:48 +0300
committerDoron Behar <doron.behar@gmail.com>2023-04-12 12:23:44 +0300
commit504849a7bb581207756d5767d55213ee422281ce (patch)
tree64fa40ed97303b060bb57ee2783a0afaf0232ab7 /pkgs/servers/mediamtx
parent121dfc185a23113173e653cd538f80ff9171f3c3 (diff)
downloadnixlib-504849a7bb581207756d5767d55213ee422281ce.tar
nixlib-504849a7bb581207756d5767d55213ee422281ce.tar.gz
nixlib-504849a7bb581207756d5767d55213ee422281ce.tar.bz2
nixlib-504849a7bb581207756d5767d55213ee422281ce.tar.lz
nixlib-504849a7bb581207756d5767d55213ee422281ce.tar.xz
nixlib-504849a7bb581207756d5767d55213ee422281ce.tar.zst
nixlib-504849a7bb581207756d5767d55213ee422281ce.zip
rtsp-simple-server: rebrand as mediamtx
Diffstat (limited to 'pkgs/servers/mediamtx')
-rw-r--r--pkgs/servers/mediamtx/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/servers/mediamtx/default.nix b/pkgs/servers/mediamtx/default.nix
new file mode 100644
index 000000000000..a420f95d2dc9
--- /dev/null
+++ b/pkgs/servers/mediamtx/default.nix
@@ -0,0 +1,35 @@
+{ lib
+, fetchFromGitHub
+, buildGoModule
+}:
+
+buildGoModule rec {
+  pname = "mediamtx";
+  version = "0.22.0";
+
+  src = fetchFromGitHub {
+    owner = "aler9";
+    repo = pname;
+    rev = "v${version}";
+    hash = "sha256-x+4dU+SHkkF0E/NoVvK0aNBCyAIL3Nfbh1tBVe//nx0=";
+  };
+
+  vendorHash = "sha256-pcHtmkYV3hqb6QQ7O6WQSHqwuYWFq3Xx6vhPAIyuFEI=";
+
+  # Tests need docker
+  doCheck = false;
+
+  ldflags = [
+    "-X github.com/aler9/mediamtx/internal/core.version=v${version}"
+  ];
+
+  meta = with lib; {
+    description =
+      "Ready-to-use RTSP server and RTSP proxy that allows to read and publish video and audio streams"
+    ;
+    inherit (src.meta) homepage;
+    license = licenses.mit;
+    maintainers = with maintainers; [ doronbehar ];
+  };
+
+}