nixpkgs/pkgs/tools/video/go2rtc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
890 B
Nix
Raw Normal View History

2023-02-06 20:32:48 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "go2rtc";
2024-01-01 12:36:18 +00:00
version = "1.8.5";
2023-02-06 20:32:48 +00:00
src = fetchFromGitHub {
owner = "AlexxIT";
repo = "go2rtc";
rev = "refs/tags/v${version}";
2024-01-01 12:36:18 +00:00
hash = "sha256-XG98CJZ9bnFfJL5DyhDon+j74cXXmxYb291PElqXXRY=";
2023-02-06 20:32:48 +00:00
};
2024-01-01 12:36:18 +00:00
vendorHash = "sha256-KEW3ykEZvL6y1VacDIqtHW9B2RLHlHC29aqJjkEnRqQ=";
2023-02-06 20:32:48 +00: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 ];
2023-11-23 02:51:17 +00:00
mainProgram = "go2rtc";
2023-02-06 20:32:48 +00:00
};
}