2020-04-07 20:54:36 -07:00
|
|
|
{ stdenv, hugo, fetchgit, pkgs, nodejs, ruby }:
|
2020-04-06 16:51:17 -07:00
|
|
|
|
|
|
|
let
|
|
|
|
url = "https://dev.danilafe.com/Web-Projects/blog-static.git";
|
2020-05-17 22:03:40 -07:00
|
|
|
rev = "78f3b18969e32db8642dc3d63499a67f191d1ceb";
|
|
|
|
sha256 = "0fhhj1gxdan1dm65nl20m9r5kkkdv6jvr7dwww20zz7iiab23m3f";
|
2020-04-07 20:54:36 -07:00
|
|
|
requiredPackages = import ./required-packages.nix { inherit pkgs nodejs; };
|
2020-04-06 16:51:17 -07:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "blog-static";
|
|
|
|
version = rev;
|
|
|
|
src = fetchgit {
|
|
|
|
inherit url rev sha256;
|
|
|
|
};
|
|
|
|
builder = ./builder.sh;
|
2020-04-07 17:52:27 -07:00
|
|
|
converter = ./convert.rb;
|
2020-04-07 20:54:36 -07:00
|
|
|
buildInputs = [ hugo requiredPackages.katex (ruby.withPackages (ps: [ ps.nokogiri ])) ];
|
2020-04-06 16:51:17 -07:00
|
|
|
}
|