nixpkgs/pkgs/servers/rtsp-simple-server/default.nix

36 lines
750 B
Nix
Raw Normal View History

2020-10-16 09:03:31 +00:00
{ stdenv
, fetchFromGitHub
, buildGoModule
}:
buildGoModule rec {
pname = "rtsp-simple-server";
2020-11-15 16:30:05 +00:00
version = "0.12.1";
2020-10-16 09:03:31 +00:00
src = fetchFromGitHub {
owner = "aler9";
repo = pname;
rev = "v${version}";
2020-11-15 16:30:05 +00:00
sha256 = "0x8di6zkbn7v77awlybp3m722a27kw20vrpjgalifv8p87238x24";
2020-10-16 09:03:31 +00:00
};
2020-11-15 16:30:05 +00:00
vendorSha256 = "0p7d0c6zgbzj7wd2qdz578cgamydl6mp5sc8jmvnwb50h10n45af";
2020-10-16 09:03:31 +00:00
# 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 ];
};
}