Since we have a dedicated util for this, we may as well use it to reduce code duplication. Change-Id: Ie52647be8c786d0b6a4dceb2fa6778b94625fafc Reviewed-on: https://cl.tvl.fyi/c/depot/+/2604 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			397 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			397 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| # Performs simple (local-only) validity checks on DNS zones.
 | |
| { depot, pkgs, ... }:
 | |
| 
 | |
| let
 | |
|   inherit (depot.nix.utils)
 | |
|     drvTargets
 | |
|     ;
 | |
| 
 | |
|   checkZone = zone: file: pkgs.runCommandNoCC "${zone}-check" {} ''
 | |
|     ${pkgs.bind}/bin/named-checkzone -i local ${zone} ${file} | tee $out
 | |
|   '';
 | |
| 
 | |
| in drvTargets {
 | |
|   tvl-fyi = checkZone "tvl.fyi" ./tvl.fyi.zone;
 | |
|   tvl-su = checkZone "tvl.su" ./tvl.su.zone;
 | |
| }
 |