Change-Id: I99511c17d635b0222e1c933432007e6f8ea8cf85 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1655 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
		
			
				
	
	
		
			8 lines
		
	
	
	
		
			310 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
	
		
			310 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| # Utility script for building any arbitrary depot path in its folder.
 | |
| { pkgs, ... }:
 | |
| 
 | |
| pkgs.writeShellScriptBin "depot-build" ''
 | |
|   TARGET=$(git rev-parse --show-prefix | sed 's|/$||')
 | |
|   echo "Building //$TARGET"
 | |
|   nix-build -A $(echo $TARGET | sed 's|/|.|g') $(${pkgs.git}/bin/git rev-parse --show-toplevel)
 | |
| ''
 |