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
		
	
			
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			382 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			382 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ pkgs, ... }:
 | 
						|
 | 
						|
pkgs.stdenv.mkDerivation {
 | 
						|
  name = "ideal-website";
 | 
						|
  src = builtins.path { path = ./.; name = "contentful"; };
 | 
						|
  buildInputs = with pkgs; [
 | 
						|
    nodejs
 | 
						|
    # Exposes lscpu for parcel.js
 | 
						|
    utillinux
 | 
						|
  ];
 | 
						|
  # parcel.js needs number of CPUs
 | 
						|
  PARCEL_WORKERS = "1";
 | 
						|
  buildPhase = ''
 | 
						|
    npx parcel build index.html
 | 
						|
  '';
 | 
						|
  installPhase = ''
 | 
						|
    mv dist $out
 | 
						|
  '';
 | 
						|
}
 |