diff options
author | Doron Behar <doron.behar@gmail.com> | 2023-04-11 18:02:48 +0300 |
---|---|---|
committer | Doron Behar <doron.behar@gmail.com> | 2023-04-12 12:23:44 +0300 |
commit | 504849a7bb581207756d5767d55213ee422281ce (patch) | |
tree | 64fa40ed97303b060bb57ee2783a0afaf0232ab7 /pkgs/servers/mediamtx | |
parent | 121dfc185a23113173e653cd538f80ff9171f3c3 (diff) |
rtsp-simple-server: rebrand as mediamtx
Diffstat (limited to 'pkgs/servers/mediamtx')
-rw-r--r-- | pkgs/servers/mediamtx/default.nix | 35 |
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 0000000000000..a420f95d2dc9b --- /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 ]; + }; + +} |