websites: better watch scripts

nix run .#\"<domain>\" will now actually listen for changes in the
source repository, and not first copy the entire thing into the nix
store.
This commit is contained in:
stuebinm 2024-01-12 00:41:15 +01:00
parent 68dc640257
commit 12e4cba3e6
6 changed files with 12 additions and 6 deletions

View file

@ -22,6 +22,7 @@ stdenvNoCC.mkDerivation rec {
'';
watch = writeScriptBin "watch" ''
${zola}/bin/zola serve ${src} "$@"
cd $(git rev-parse --show-toplevel)/websites/docs.hacc.space
${zola}/bin/zola serve --output-dir /tmp/hacc-docs "$@"
'';
}

View file

@ -14,6 +14,7 @@ stdenvNoCC.mkDerivation rec {
'';
watch = writeScriptBin "watch" ''
${sfz}/bin/sfz -r ${src} "$@"
cd $(git rev-parse --show-toplevel)/websites/hacc.earth
${sfz}/bin/sfz "$@"
'';
}

View file

@ -14,6 +14,7 @@ stdenvNoCC.mkDerivation rec {
'';
watch = writeScriptBin "watch" ''
${sfz}/bin/sfz -r ${src}
cd $(git rev-parse --show-toplevel)/websites/help.studentsforfuture.info
${sfz}/bin/sfz "$@"
'';
}

View file

@ -12,7 +12,8 @@ stdenvNoCC.mkDerivation rec {
'';
watch = writeScriptBin "watch" ''
cd $(git rev-parse --show-toplevel)/websites/infra4future.de
rm -rf /tmp/hacc-website
${jekyll}/bin/jekyll serve -s ${src} --disable-disk-cache -d /tmp/hacc-website
${jekyll}/bin/jekyll serve --disable-disk-cache -d /tmp/hacc-website "$@"
'';
}

View file

@ -14,6 +14,7 @@ stdenvNoCC.mkDerivation rec {
'';
watch = writeScriptBin "watch" ''
${sfz}/bin/sfz -r ${src}
cd $(git rev-parse --show-toplevel)/websites/muc.hacc.earth
${sfz}/bin/sfz "$@"
'';
}

View file

@ -12,7 +12,8 @@ stdenvNoCC.mkDerivation rec {
'';
watch = writeScriptBin "watch" ''
cd $(git rev-parse --show-toplevel)/websites/mumble.infra4future.de
rm -rf /tmp/hacc-website
${jekyll}/bin/jekyll serve -s ${src} --disable-disk-cache -d /tmp/hacc-website
${jekyll}/bin/jekyll serve --disable-disk-cache -d /tmp/hacc-website "$@"
'';
}