This contains a fix for an issue where the bridge would forward messages from the wrong channel, because the source channel was not checked. tvlbot runs in 3 channels, so this caused issues. Change-Id: Icc85406b273f375ac90287364df83fb76f028b59 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11731 Autosubmit: tazjin <tazjin@tvl.su> Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			635 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			635 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ pkgs, lib, ... }:
 | 
						|
 | 
						|
pkgs.buildGoModule rec {
 | 
						|
  name = "teleirc";
 | 
						|
  version = "2.3.0-4";
 | 
						|
 | 
						|
  src = pkgs.fetchFromGitHub {
 | 
						|
    owner = "tvlfyi";
 | 
						|
    repo = "teleirc";
 | 
						|
    rev = "356ed1450840822172e7dff57965cc5371f63454";
 | 
						|
    sha256 = "0s6rlixks7lar9js4q1drg742cy2p4n8l4pmlzjmskl5d04c15gq";
 | 
						|
  };
 | 
						|
 | 
						|
  vendorHash = "sha256:06f2wyxbphj73wknpp6dsn7rb4yhvdl6x0gj729cns7r4bsviscs";
 | 
						|
  ldflags = [ "-s" "-w" "-X" "main.version=${version}" ];
 | 
						|
  postInstall = "mv $out/bin/cmd $out/bin/teleirc";
 | 
						|
 | 
						|
  meta = with lib; {
 | 
						|
    description = "IRC/Telegram bridge";
 | 
						|
    homepage = "https://docs.teleirc.com/en/latest/";
 | 
						|
    license = licenses.gpl3;
 | 
						|
  };
 | 
						|
}
 |