2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-11-06 00:33:48 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
2023-08-22 20:05:09 +00:00
|
|
|
, nixosTests
|
2020-11-06 00:33:48 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
2023-04-29 16:46:19 +00:00
|
|
|
pname = "mediamtx";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.1.1";
|
2020-11-06 00:33:48 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-08-22 20:05:09 +00:00
|
|
|
owner = "bluenviron";
|
2020-11-06 00:33:48 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-VIXrptVF5kjjz9vHqqjAM5gYk2o/wkUvudXixCloPgE=";
|
2020-11-06 00:33:48 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-bUZU9I2lqjMOupkCQKSfdrWsBYmAVrLEXod0l+J3p6g=";
|
2020-11-06 00:33:48 +00:00
|
|
|
|
|
|
|
# Tests need docker
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [
|
2023-05-24 13:37:59 +00:00
|
|
|
"-X github.com/bluenviron/mediamtx/internal/core.version=v${version}"
|
2020-11-06 00:33:48 +00:00
|
|
|
];
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) mediamtx; };
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-06 00:33:48 +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;
|
2023-08-22 20:05:09 +00:00
|
|
|
mainProgram = "mediamtx";
|
|
|
|
maintainers = with maintainers; [ fpletz ];
|
2020-11-06 00:33:48 +00:00
|
|
|
};
|
|
|
|
}
|