forked from hacc/haccfiles
stuebinm
a6d21f4fd9
(since every time we have to change anything on these I get annoyed at having to remember how to build these. Now you can just use `nix run`!)
18 lines
410 B
Nix
18 lines
410 B
Nix
{ jekyll, stdenvNoCC, writeScriptBin }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
name = "mumble.infra4future.de-static";
|
|
|
|
src = ./.;
|
|
|
|
phases = [ "buildPhase" ];
|
|
buildPhase = ''
|
|
cd $src
|
|
${jekyll}/bin/jekyll build -d $out --disable-disk-cache
|
|
'';
|
|
|
|
watch = writeScriptBin "watch" ''
|
|
rm -rf /tmp/hacc-website
|
|
${jekyll}/bin/jekyll serve -s ${src} --disable-disk-cache -d /tmp/hacc-website
|
|
'';
|
|
}
|