tvl-depot/blog/default.nix
William Carroll b929a6bb57 Nixify hugo deployment
Create a derivation for building the static files of my blog.
2020-03-09 15:35:12 +00:00

12 lines
242 B
Nix

{ pkgs, ... }:
pkgs.stdenv.mkDerivation {
name = "blog.wpcarro.dev";
buildInputs = with pkgs; [ hugo ];
src = ./.;
buildPhase = ''
mkdir -p $out
${pkgs.hugo}/bin/hugo --minify --destination $out
'';
dontInstall = true;
}