When I run `nix-build -f '<briefcase>' -iA emacs`, readTree will define... - pkgs - depot - briefcase ...and whatever else I choose to define.
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			465 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			465 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| { ... }:
 | |
| 
 | |
| let
 | |
|   readTree = import <depot/nix/readTree> {} {
 | |
|     pkgs      = import <nixpkgs> {};
 | |
|     depot     = import <depot> {};
 | |
|     briefcase = import <briefcase> {};
 | |
|   };
 | |
| in {
 | |
|   nixos       = readTree ./nixos;
 | |
|   emacs       = readTree ./emacs;
 | |
|   blog        = readTree ./blog;
 | |
|   lisp        = readTree ./lisp;
 | |
|   gopkgs      = readTree ./gopkgs;
 | |
|   monzo_ynab  = readTree ./monzo_ynab;
 | |
|   third_party = readTree ./third_party;
 | |
|   tools       = readTree ./tools;
 | |
| }
 |