I'd like to be able to just call `run file.py` and have a program DWIM. I'm working on run as a step in this direction. Define a simple configuration that maps file extensions to template strings where "$file" is replaced with the argv[1]. It basically works but there are outstanding TODOs. See the README and source code for more information.
		
			
				
	
	
		
			7 lines
		
	
	
	
		
			96 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
	
		
			96 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| { pkgs ? import <nixpkgs> {}, ... }:
 | |
| 
 | |
| pkgs.mkShell {
 | |
|   buildInputs = with pkgs; [
 | |
|     go
 | |
|   ];
 | |
| }
 |