blog-static-flake/blog/default.nix
2020-04-27 03:01:03 +00:00

19 lines
646 B
Nix

{ stdenv, hugo, fetchgit, pkgs, nodejs, ruby }:
let
url = "https://dev.danilafe.com/Web-Projects/blog-static.git";
rev = "1ff67341a1114ec573455732cf0ebafe8209eab6";
sha256 = "0yqzhfbhibchgvpcjb4ym0bfi6vnxjcxzy3cc3zd7da637vaxgxn";
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 ])) ];
}