diff options
Diffstat (limited to '')
-rw-r--r-- | default.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/default.nix b/default.nix index 801c50d..2640e08 100644 --- a/default.nix +++ b/default.nix @@ -63,6 +63,17 @@ in rec { shellHook = '' echo 'Starting a live server with:' echo ' jekyll serve --future --livereload --trace' + echo 'Server with feature flags:' + echo ' jekyll serve --future --livereload --trace -c $(cfg torrent podcast)' + + cfg() { + T="$(mktemp --suffix .yml)" + cp _config.yml "$T" + for flag in "$@"; do + printf '\n%s: true\n' "$flag" >> "$T" + done + echo "$T" + } ''; }; publishScript = pkgs.writeShellScriptBin "publish.sh" '' |