mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:33:57 +00:00
40 lines
862 B
Nix
40 lines
862 B
Nix
|
{ lib
|
||
|
, buildGoModule
|
||
|
, fetchFromGitHub
|
||
|
}:
|
||
|
|
||
|
buildGoModule rec {
|
||
|
pname = "go2rtc";
|
||
|
version = "1.5.0";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "AlexxIT";
|
||
|
repo = "go2rtc";
|
||
|
rev = "refs/tags/v${version}";
|
||
|
hash = "sha256-1QCw+/XUV8aoNxo2h+8ud6gx7KMFi4hStf7Ezgg5md8=";
|
||
|
};
|
||
|
|
||
|
vendorHash = "sha256-iav7k4HLyXO94qofcHxVxhV8BV2k5oiTtX8kVyxnpoI=";
|
||
|
|
||
|
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 ];
|
||
|
};
|
||
|
}
|