forked from hacc/haccfiles
stuebinm
4dc9cdac91
this should not change their behaviour with "nix run", which was the reason for putting them there in the first place (however, it does remove the ability to build them with "nix build", but afaik this has never been used by anyone). This means the packages.* output is now left unused, so we can use it instead for things that actually are programs which want to expose (see the next commit after this one for an example).
19 lines
487 B
Nix
19 lines
487 B
Nix
{ jekyll, stdenvNoCC, writeShellScriptBin }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
name = "mumble.infra4future.de-static";
|
|
|
|
src = ./.;
|
|
|
|
phases = [ "buildPhase" ];
|
|
buildPhase = ''
|
|
cd $src
|
|
${jekyll}/bin/jekyll build -d $out --disable-disk-cache
|
|
'';
|
|
|
|
watch = writeShellScriptBin "watch" ''
|
|
cd $(git rev-parse --show-toplevel)/websites/mumble.infra4future.de
|
|
rm -rf /tmp/hacc-website
|
|
${jekyll}/bin/jekyll serve --disable-disk-cache -d /tmp/hacc-website "$@"
|
|
'';
|
|
}
|