nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 37 lines 842 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "go2rtc"; 9 version = "1.9.9"; 10 11 src = fetchFromGitHub { 12 owner = "AlexxIT"; 13 repo = "go2rtc"; 14 tag = "v${version}"; 15 hash = "sha256-TUUIEr90ZUMxsuF86CWZVpfo277mnefJ/ofPgwpKhcE="; 16 }; 17 18 vendorHash = "sha256-BU31vb+qhMQtO9PXUjrQP3mEA0iOTEK/ZYXW6jL0UNo="; 19 20 env.CGO_ENABLED = 0; 21 22 ldflags = [ 23 "-s" 24 "-w" 25 ]; 26 27 doCheck = false; # tests fail 28 29 meta = { 30 description = "Ultimate camera streaming application with support RTSP, RTMP, HTTP-FLV, WebRTC, MSE, HLS, MJPEG, HomeKit, FFmpeg, etc"; 31 homepage = "https://github.com/AlexxIT/go2rtc"; 32 changelog = "https://github.com/AlexxIT/go2rtc/releases/tag/v${version}"; 33 license = lib.licenses.mit; 34 maintainers = with lib.maintainers; [ hexa ]; 35 mainProgram = "go2rtc"; 36 }; 37}