{ stdenv, hugo, fetchgit, pkgs, nodejs, ruby }:
let
url = "https://dev.danilafe.com/Web-Projects/blog-static.git";
rev = "be8a0a4a3aee3d31ef082c67cb82b4fea851c099";
sha256 = "11zgx2xp839wfj4qddahs3lanpvnbc2q497l2ibm5831kwxcig3d";
requiredPackages = import ./required-packages.nix { inherit pkgs nodejs; };
in
stdenv.mkDerivation {
name = "blog-static";
version = rev;
src = fetchgit {
inherit url rev sha256;
};
builder = ./builder.sh;
converter = ./convert.rb;
buildInputs = [ hugo requiredPackages.katex (ruby.withPackages (ps: [ ps.nokogiri ])) ];
}