Change-Id: Id0b05b070dfdb8099c6c32761295dcb17db1aea4 Reviewed-on: https://cl.snix.dev/c/snix/+/30224 Tested-by: besadii Autosubmit: Florian Klink <flokli@flokli.de> Reviewed-by: Ilan Joselevich <personal@ilanjoselevich.com>
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			577 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			577 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| { pkgs, ... }@args:
 | |
| 
 | |
| let
 | |
|   inherit (pkgs) lib;
 | |
| in
 | |
| 
 | |
| pkgs.buildGoModule {
 | |
|   name = "clbot";
 | |
|   src = lib.fileset.toSource {
 | |
|     root = ./.;
 | |
|     fileset = lib.fileset.unions [
 | |
|       ./clbot.go
 | |
|       ./go.mod
 | |
|       ./go.sum
 | |
|       ./backoffutil
 | |
|       ./gerrit
 | |
|     ];
 | |
|   };
 | |
|   vendorHash =
 | |
|     # Assert the expected go.sum hash matches so we don't forget to update the FOD hash on dependency changes.
 | |
|     assert builtins.hashFile "sha256" ./go.sum
 | |
|       == "f999a34979af2113b867446a445a4d8c066d68f945cd4470fe33fe4fead6d15b";
 | |
|     "sha256-IvFg+/lwBsJiJoLCRP5KU5+tRuHDLpwWHHkmt67yJd8=";
 | |
| }
 |