mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
36 lines
750 B
Nix
36 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 ];
|
|
};
|
|
|
|
}
|