Remove reliance on nokogiri and other tools

This commit is contained in:
Danila Fedorin 2022-03-28 04:51:18 +00:00
parent 337bbed852
commit 5e51a6a5bb

View File

@ -3,7 +3,6 @@
with pkgs; with pkgs;
let let
requiredPackages = import ./required-packages.nix { inherit pkgs nodejs; };
website = settings: stdenv.mkDerivation { website = settings: stdenv.mkDerivation {
inherit (settings) src ssl host; inherit (settings) src ssl host;
name = "blog-static"; name = "blog-static";
@ -17,11 +16,7 @@ let
extraFlags = if settings.drafts then " -D " else ""; extraFlags = if settings.drafts then " -D " else "";
builder = ./build/builder.sh; builder = ./build/builder.sh;
buildInputs = [ buildInputs = [
hugo nodejs katex-html hugo katex-html
requiredPackages."katex-0.11.1"
requiredPackages.express
requiredPackages.body-parser
(ruby.withPackages (ps: [ ps.nokogiri ]))
]; ];
}; };
wrapHost = ssl: host: (if ssl then "https" else "http") + "://${host}"; wrapHost = ssl: host: (if ssl then "https" else "http") + "://${host}";