unix-opts, imported into buildLisp.nix in the previous commit, provides an implementation independent way of parsing command line arguments.
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			164 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			164 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| { pkgs, ... }:
 | |
| 
 | |
| pkgs.nix.buildLisp.program {
 | |
|   name = "wc";
 | |
| 
 | |
|   srcs = [
 | |
|     ./wc.lisp
 | |
|   ];
 | |
| 
 | |
|   deps = with pkgs.third_party.lisp; [
 | |
|     unix-opts
 | |
|     iterate
 | |
|   ];
 | |
| }
 |