1
Fork 0
e11sync/pkgs/e11sync-blog.nix

20 lines
354 B
Nix

{
stdenv,
dart-sass,
hugo,
}:
stdenv.mkDerivation rec {
name = "e11sync-blog";
srcs = [../blog ../static];
nativeBuildInputs = [dart-sass];
sourceRoot = ".";
buildPhase = ''
cd blog
${hugo}/bin/hugo --printPathWarnings --panicOnWarning
'';
installPhase = ''
mkdir -p $out
mv public/{static,blog,contact} $out/
'';
}