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

20 lines
354 B
Nix
Raw Normal View History

2024-01-28 18:15:49 +02:00
{
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/
'';
}