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.
removing-nix-hexchen
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 "$@"
'';
}