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" ''
|
2024-01-11 23:41:15 +00:00
|
|
|
cd $(git rev-parse --show-toplevel)/websites/infra4future.de
|
2023-02-24 16:33:48 +00:00
|
|
|
rm -rf /tmp/hacc-website
|
2024-01-11 23:41:15 +00:00
|
|
|
${jekyll}/bin/jekyll serve --disable-disk-cache -d /tmp/hacc-website "$@"
|
2023-02-24 16:33:48 +00:00
|
|
|
'';
|
2022-01-10 22:43:10 +00:00
|
|
|
}
|