2023-02-24 16:33:48 +00:00
|
|
|
{ jekyll, stdenvNoCC, writeScriptBin }:
|
2022-01-10 22:43:10 +00:00
|
|
|
|
2023-02-24 16:33:48 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2022-01-10 22:43:10 +00:00
|
|
|
name = "infra4future.de-static";
|
|
|
|
|
|
|
|
src = ./.;
|
|
|
|
|
|
|
|
phases = [ "buildPhase" ];
|
|
|
|
buildPhase = ''
|
|
|
|
cd $src
|
|
|
|
${jekyll}/bin/jekyll build -d $out --disable-disk-cache
|
|
|
|
'';
|
|
|
|
|
2023-02-24 16:33:48 +00:00
|
|
|
watch = writeScriptBin "watch" ''
|
|
|
|
rm -rf /tmp/hacc-website
|
|
|
|
${jekyll}/bin/jekyll serve -s ${src} --disable-disk-cache -d /tmp/hacc-website
|
|
|
|
'';
|
2022-01-10 22:43:10 +00:00
|
|
|
}
|