nixpkgs-suyu/pkgs/servers/rtsp-simple-server/default.nix
2022-12-24 20:15:00 +00:00

35 lines
765 B
Nix

{ lib
, fetchFromGitHub
, buildGoModule
}:
buildGoModule rec {
pname = "rtsp-simple-server";
version = "0.21.0";
src = fetchFromGitHub {
owner = "aler9";
repo = pname;
rev = "v${version}";
hash = "sha256-iLNdl6V+px/ri9uJzOrxktxJYqAJA5JWBd18ZHSLQjQ=";
};
vendorSha256 = "sha256-48i0hsAho4dI79a/i24GlKAaC/yNGKt0uA+qCy5QTok=";
# Tests need docker
doCheck = false;
ldflags = [
"-X github.com/aler9/rtsp-simple-server/internal/core.version=v${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 ];
};
}