lix-website/nix/site-content.nix

19 lines
285 B
Nix
Raw Normal View History

#
# Hugo website output.
# vim: et:ts=2:sw=2:
#
{ pkgs, ... }: pkgs.stdenv.mkDerivation {
name = "site-content";
src = ../.;
nativeBuildInputs = [ pkgs.hugo ];
buildPhase = ''
hugo -D -d _output
'';
installPhase = ''
cp -r _output $out
'';
}