This allows pinning the name of the sparse tree derivation, which stops the continous rebuilding of tvix-store-proto dependents. I've opted to let the function take an attribute set instead and refactored the call sites appropriately. Change-Id: I3e57785094b1adbfffa24caf9f1c3384844fa200 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8965 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			520 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			520 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| args@{ depot ? import ../../../.. { }
 | |
| , pkgs ? depot.third_party.nixpkgs
 | |
| , ...
 | |
| }:
 | |
| 
 | |
| depot.third_party.naersk.buildPackage {
 | |
|   name = "xanthous-server";
 | |
|   version = "0.0.1";
 | |
|   src = depot.third_party.gitignoreSource ./.;
 | |
| 
 | |
|   # Workaround for a potential Nix bug related to restricted eval.
 | |
|   # See https://github.com/nix-community/naersk/issues/169
 | |
|   root = depot.nix.sparseTree {
 | |
|     root = ./.;
 | |
|     paths = [
 | |
|       ./Cargo.toml
 | |
|       ./Cargo.lock
 | |
|     ];
 | |
|   };
 | |
| 
 | |
|   passthru = {
 | |
|     docker = import ./docker.nix args;
 | |
|   };
 | |
| }
 |