Use the (undocumented!) helper function haskellSrc2nix over having to explicitly run cabal2nix all the time when rebuilding
		
			
				
	
	
		
			7 lines
		
	
	
	
		
			190 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
	
		
			190 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| { nixpkgs ? import ./nixpkgs.nix {} }:
 | |
| let inherit (nixpkgs) pkgs; in
 | |
| import (pkgs.haskellPackages.haskellSrc2nix {
 | |
|   name = "xanthous";
 | |
|   src = ./.;
 | |
|   extraCabal2nixOptions = "--hpack";
 | |
| })
 |