diff --git a/blog/builder.sh b/blog/builder.sh index 37c7b79..7c00f87 100644 --- a/blog/builder.sh +++ b/blog/builder.sh @@ -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" diff --git a/blog/default.nix b/blog/default.nix index 10d9718..6b88dc6 100644 --- a/blog/default.nix +++ b/blog/default.nix @@ -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 ])) ]; } diff --git a/overlay.nix b/overlay.nix index f860bae..539796a 100644 --- a/overlay.nix +++ b/overlay.nix @@ -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 {}; }