Adds a Nix cache proxy which can be used to send a Nix cache lookup to the first available cache that has the given NAR. We will use this for dynamically created builders. Relates to b/432. Change-Id: If970d2393e43ba032b5b7d653f2b92f6ac0eab63 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12949 Tested-by: BuildkiteCI Autosubmit: tazjin <tazjin@tvl.su> Reviewed-by: sterni <sternenseemann@systemli.org>
		
			
				
	
	
		
			8 lines
		
	
	
	
		
			287 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
	
		
			287 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| { depot, pkgs, ... }:
 | |
| 
 | |
| pkgs.buildGoModule {
 | |
|   name = "builderball";
 | |
|   src = depot.third_party.gitignoreSource ./.;
 | |
|   vendorHash = "sha256:1prdkm05bdbyinwwgrbwl8pazayg5cp61dlkmygxwbp880zxpqfm";
 | |
|   meta.description = "Nix cache proxy which forwards clients to the first available cache";
 | |
| }
 |