depot/third_party/nixpkgs/pkgs/servers/rtsp-simple-server/default.nix
Default email a5adf1ddd8 Project import generated by Copybara.
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
2021-01-15 23:18:51 +01:00

35 lines
748 B
Nix

{ lib, stdenv
, fetchFromGitHub
, buildGoModule
}:
buildGoModule rec {
pname = "rtsp-simple-server";
version = "0.12.2";
src = fetchFromGitHub {
owner = "aler9";
repo = pname;
rev = "v${version}";
sha256 = "094brxiiapm7402q0ysaha2xk3wymc2kz8vqisjyiswz7wf4wsx0";
};
vendorSha256 = "007dyw825jsfma7sq5llxllhrzbkhqxr985s1nhg5cdd803gz42p";
# Tests need docker
doCheck = false;
buildFlagsArray = [
"-ldflags=-X main.Version=${version}"
];
meta = with 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 ];
};
}