1
e11sync/pkgs/e11sync-blog.nix

20 lines
362 B
Nix
Raw Normal View History

2024-01-28 18:15:49 +02:00
{
2024-02-09 13:40:24 +02:00
stdenvNoCC,
2024-01-28 18:15:49 +02:00
dart-sass,
hugo,
}:
2024-02-09 13:40:24 +02:00
stdenvNoCC.mkDerivation rec {
2024-01-28 18:15:49 +02:00
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/
'';
}