anchor.diff:     Initialization of Styx, should not be edited
   -----------------------------------------------------------------------------*/
   
  -{ pkgs ? import <nixpkgs> {}
  -, styxLib
  +{ lib, styx, styx-themes, runCommand, writeText
   , renderDrafts ? false
   , siteUrl ? null
  -, lastChange ? null
   }@args:
   
  -let lib = import styxLib pkgs;
  -in with lib;
  +let styxLib = import "${styx}/share/styx/lib" {
  +  inherit lib;
  +  pkgs = { inherit styx runCommand writeText; };
  +};
  +in with styxLib;
   
   let
   
  
positive.code: 
    /* Default template environment
    */
    defaultEnvironment = { inherit conf state lib templates data; };
  
    /* Custom environments for specific templates
    */
  
negative.code:   */
    conf = let
      conf       = import ./conf.nix;
      themesConf = styxLib.themes.loadConf themes;
      mergedConf = recursiveUpdate themesConf conf;
    in
      overrideConf mergedConf args;
  
    /* Load themes templates
    */
    templates = styxLib.themes.loadTemplates {
      inherit themes defaultEnvironment customEnvironments;
    };
  
    /* Load themes static files
    */
    files = styxLib.themes.loadFiles themes;
  
  
  /*-----------------------------------------------------------------------------
  