2024-08-30 15:52:57 +00:00
|
|
|
{ jekyll, stdenvNoCC, writeShellScriptBin }:
|
2022-01-06 22:04:44 +00:00
|
|
|
|
2023-02-24 16:33:48 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2022-01-06 22:04:44 +00:00
|
|
|
name = "mumble.infra4future.de-static";
|
|
|
|
|
|
|
|
src = ./.;
|
|
|
|
|
|
|
|
phases = [ "buildPhase" ];
|
|
|
|
buildPhase = ''
|
|
|
|
cd $src
|
|
|
|
${jekyll}/bin/jekyll build -d $out --disable-disk-cache
|
|
|
|
'';
|
|
|
|
|
2024-08-30 15:52:57 +00:00
|
|
|
watch = writeShellScriptBin "watch" ''
|
2024-01-11 23:41:15 +00:00
|
|
|
cd $(git rev-parse --show-toplevel)/websites/mumble.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-06 22:04:44 +00:00
|
|
|
}
|