6ae7ad3cc5
GitOrigin-RevId: a322b32e9d74fb476944ff6cfb55833dc69cfaaa
35 lines
750 B
Nix
35 lines
750 B
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
, buildGoModule
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "rtsp-simple-server";
|
|
version = "0.12.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aler9";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0x8di6zkbn7v77awlybp3m722a27kw20vrpjgalifv8p87238x24";
|
|
};
|
|
|
|
vendorSha256 = "0p7d0c6zgbzj7wd2qdz578cgamydl6mp5sc8jmvnwb50h10n45af";
|
|
|
|
# Tests need docker
|
|
doCheck = false;
|
|
|
|
buildFlagsArray = [
|
|
"-ldflags=-X main.Version=${version}"
|
|
];
|
|
|
|
meta = with stdenv.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 ];
|
|
};
|
|
|
|
}
|