nixpkgs/pkgs/servers/mediamtx/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
737 B
Nix
Raw Normal View History

{ lib
2020-10-16 09:03:31 +00:00
, fetchFromGitHub
, buildGoModule
}:
buildGoModule rec {
pname = "mediamtx";
2023-06-12 05:22:21 +00:00
version = "0.23.5";
2020-10-16 09:03:31 +00:00
src = fetchFromGitHub {
owner = "aler9";
repo = pname;
rev = "v${version}";
2023-06-12 05:22:21 +00:00
hash = "sha256-LGD6VL5guUqBFjN36KOTVyWRupCuoch3yhW8SabkihY=";
2020-10-16 09:03:31 +00:00
};
2023-06-12 05:22:21 +00:00
vendorHash = "sha256-5G557by0nqE3a9R1/TZZ2I+4KX5J6dqzwc1pP95mGAg=";
2020-10-16 09:03:31 +00:00
# Tests need docker
doCheck = false;
2021-08-26 06:45:51 +00:00
ldflags = [
2023-05-22 21:19:41 +00:00
"-X github.com/bluenviron/mediamtx/internal/core.version=v${version}"
2020-10-16 09:03:31 +00:00
];
meta = with lib; {
2020-10-16 09:03:31 +00:00
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; [ ];
2020-10-16 09:03:31 +00:00
};
}