Try use KaTeX for builds without NPM
This commit is contained in:
		
							parent
							
								
									42602b2964
								
							
						
					
					
						commit
						f2cd4964af
					
				@ -1,8 +1,5 @@
 | 
			
		||||
source $stdenv/setup
 | 
			
		||||
 | 
			
		||||
# Install KaTeX for back-end rendering.
 | 
			
		||||
HOME="." npm install katex
 | 
			
		||||
 | 
			
		||||
# Build site with Hugo
 | 
			
		||||
cp -r $src/* .
 | 
			
		||||
hugo --baseUrl="http://localhost:5000"
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
{ stdenv, hugo, fetchgit, nodejs, ruby }:
 | 
			
		||||
{ stdenv, hugo, fetchgit, katex, ruby }:
 | 
			
		||||
 | 
			
		||||
let
 | 
			
		||||
    url = "https://dev.danilafe.com/Web-Projects/blog-static.git";
 | 
			
		||||
@ -13,5 +13,5 @@ in
 | 
			
		||||
        };
 | 
			
		||||
        builder = ./builder.sh;
 | 
			
		||||
        converter = ./convert.rb;
 | 
			
		||||
        buildInputs = [ hugo nodejs (ruby.withPackages (ps: [ ps.nokogiri ])) ];
 | 
			
		||||
        buildInputs = [ hugo katex (ruby.withPackages (ps: [ ps.nokogiri ])) ];
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -1,7 +1,7 @@
 | 
			
		||||
self: super:
 | 
			
		||||
 | 
			
		||||
rec {
 | 
			
		||||
{
 | 
			
		||||
    pegasus = super.callPackage ./pegasus/default.nix {};
 | 
			
		||||
    blog = self.callPackage ./blog/default.nix { katex };
 | 
			
		||||
    blog = self.callPackage ./blog/default.nix {};
 | 
			
		||||
    katex = super.callPackage ./katex/default.nix {};
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user