In the spirit of Marie Kondo, I'm tidying up!
TL;DR:
- Prefer .envrc `use_nix` and delete all dir-locals.nix files
- Remove ~all references to <nixpkgs>, <unstable>, <depot> and prefer
  referencing each with briefcase.third_party.{pkgs,unstable,depot}
- Delete nixBufferFromShell function since I was only using that in
  dir-locals.nix files
		
	
			
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			429 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			429 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ pkgs, ... }:
 | 
						|
 | 
						|
# Using this as a library to define some common utility functions that I often
 | 
						|
# reach for.
 | 
						|
{
 | 
						|
  # A unary function that returns its argument.
 | 
						|
  identity = x: x;
 | 
						|
 | 
						|
  # Create a derivation that creates an executable shell script named `as` that
 | 
						|
  # calls the program located at `path`, forwarding all of the arguments.
 | 
						|
  wrapNonNixProgram = { path, as }: pkgs.writeShellScriptBin as ''
 | 
						|
    exec ${path} "$@"
 | 
						|
  '';
 | 
						|
}
 |