2023-02-06 21:32:48 +01:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "go2rtc";
|
2023-07-23 02:29:24 +02:00
|
|
|
version = "1.6.2";
|
2023-02-06 21:32:48 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "AlexxIT";
|
|
|
|
repo = "go2rtc";
|
|
|
|
rev = "refs/tags/v${version}";
|
2023-07-23 02:29:24 +02:00
|
|
|
hash = "sha256-LKaVspv9R2N7og+3gb/vZuiWzWt1w+LEQ1Sk737+O7c=";
|
2023-02-06 21:32:48 +01:00
|
|
|
};
|
|
|
|
|
2023-07-13 02:01:44 +02:00
|
|
|
vendorHash = "sha256-C2bRSzLp86aMF3UIGJ2G5WXvUaLjyhqzPsQkDSI0qb0=";
|
2023-02-06 21:32:48 +01:00
|
|
|
|
|
|
|
buildFlagArrays = [
|
|
|
|
"-trimpath"
|
|
|
|
];
|
|
|
|
|
|
|
|
CGO_ENABLED = 0;
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false; # tests fail
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Ultimate camera streaming application with support RTSP, RTMP, HTTP-FLV, WebRTC, MSE, HLS, MJPEG, HomeKit, FFmpeg, etc.";
|
|
|
|
homepage = "https://github.com/AlexxIT/go2rtc";
|
|
|
|
changelog = "https://github.com/AlexxIT/go2rtc/releases/tag/v${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|