git-subtree-dir: third_party/nix
git-subtree-mainline: cf8cd640c1
git-subtree-split: be66c7a6b24e3c3c6157fd37b86c7203d14acf10
		
	
			
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			490 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			490 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| with import <nix/config.nix>;
 | |
| 
 | |
| rec {
 | |
|   inherit shell;
 | |
| 
 | |
|   path = coreutils;
 | |
| 
 | |
|   system = builtins.currentSystem;
 | |
| 
 | |
|   shared = builtins.getEnv "_NIX_TEST_SHARED";
 | |
| 
 | |
|   mkDerivation = args:
 | |
|     derivation ({
 | |
|       inherit system;
 | |
|       builder = shell;
 | |
|       args = ["-e" args.builder or (builtins.toFile "builder.sh" "if [ -e .attrs.sh ]; then source .attrs.sh; fi; eval \"$buildCommand\"")];
 | |
|       PATH = path;
 | |
|     } // removeAttrs args ["builder" "meta"])
 | |
|     // { meta = args.meta or {}; };
 | |
| }
 |