blog-static-flake/blog/default.nix
2020-04-27 03:49:19 +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 = "0fb315ec47a6eaa4ed318563e7a256ec846d240e";
sha256 = "1qw54b2gac7bwfzq6afkkjyfhk04w7nvv6zb1xlpf3xqmck716yr";
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 ])) ];
}