When using the runTests feature of crate2nix the derivation that runs the tests is put into passthru.test but all default.nix files for Rust crates in Tvix threw that away. This commit retains passthru so that you can get access to the test derivation. Change-Id: I8b7b7db57a49069348f08c12c00a3b1a41a0c05b Reviewed-on: https://cl.tvl.fyi/c/depot/+/12215 Reviewed-by: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			580 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			580 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| # TODO: find a way to build the benchmarks via crate2nix
 | |
| { depot, pkgs, lib, ... }:
 | |
| 
 | |
| (depot.tvix.crates.workspaceMembers.tvix-eval.build.override {
 | |
|   runTests = true;
 | |
| 
 | |
|   # Make C++ Nix available, to compare eval results against.
 | |
|   testInputs = [ pkgs.nix ];
 | |
| }).overrideAttrs (old: rec {
 | |
|   meta.ci.targets = lib.filter (x: lib.hasPrefix "with-features" x || x == "no-features") (lib.attrNames passthru);
 | |
|   passthru = old.passthru // (depot.tvix.utils.mkFeaturePowerset {
 | |
|     inherit (old) crateName;
 | |
|     features = [ "nix_tests" ];
 | |
|     override.testInputs = [ pkgs.nix ];
 | |
|   });
 | |
| })
 |