All checks were successful
		
		
	
	Test / Hakurei (push) Successful in 40s
				
			Test / Create distribution (push) Successful in 31s
				
			Test / Hakurei (race detector) (push) Successful in 41s
				
			Test / Planterette (push) Successful in 40s
				
			Test / Sandbox (push) Successful in 1m30s
				
			Test / Sandbox (race detector) (push) Successful in 1m43s
				
			Test / Flake checks (push) Successful in 1m11s
				
			This tool should not show up when building hakurei normally. Signed-off-by: Ophestra <cat@gensokyo.uk>
		
			
				
	
	
		
			33 lines
		
	
	
		
			590 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			590 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| {
 | |
|   lib,
 | |
|   buildGoModule,
 | |
|   pkg-config,
 | |
|   util-linux,
 | |
| 
 | |
|   version,
 | |
| }:
 | |
| buildGoModule rec {
 | |
|   pname = "check-sandbox";
 | |
|   inherit version;
 | |
| 
 | |
|   src = builtins.path {
 | |
|     name = "${pname}-src";
 | |
|     path = lib.cleanSource ../.;
 | |
|     filter = path: type: (type == "directory") || (type == "regular" && lib.hasSuffix ".go" path);
 | |
|   };
 | |
|   vendorHash = null;
 | |
| 
 | |
|   tags = [ "testtool" ];
 | |
| 
 | |
|   buildInputs = [ util-linux ];
 | |
|   nativeBuildInputs = [ pkg-config ];
 | |
| 
 | |
|   preBuild = ''
 | |
|     go mod init hakurei.app/test/sandbox >& /dev/null
 | |
|   '';
 | |
| 
 | |
|   postInstall = ''
 | |
|     mv $out/bin/tool $out/bin/hakurei-test
 | |
|   '';
 | |
| }
 |