anchor.diff:      # we should use systemd dependencies here
       #waitForUnit("network-interfaces.target");
       if [ ! -d ${serverInfo.fullConfig.services.mysql.dataDir}/${config.dbName} ]; then
  +      echo "Need to create the database '${config.dbName}' and grant permissions to user named '${config.dbUser}'."
         # Wait until MySQL is up
         while [ ! -e /var/run/mysql/mysqld.pid ]; do
           sleep 1
         done
         ${pkgs.mysql}/bin/mysql -e 'CREATE DATABASE ${config.dbName};'
         ${pkgs.mysql}/bin/mysql -e 'GRANT ALL ON ${config.dbName}.* TO ${config.dbUser}@localhost IDENTIFIED BY "${config.dbPassword}";'
  +    else 
  +      echo "Good, no need to do anything database related."
       fi
     '';
   }
  
positive.code:     <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteBase /
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . /index.php [L]
      </IfModule>
    '';
  
    # The wordpress package itself
    wordpressRoot = pkgs.stdenv.mkDerivation rec {
      name = "wordpress";
      # Fetch directly from the wordpress site, want to upgrade?
      # Just change the version URL and update the hash
      src = pkgs.fetchurl {
        url = http://wordpress.org/wordpress-4.1.1.tar.gz;
        sha256 = "1s9y0i9ms3m6dswb9gqrr95plnx6imahc07fyhvrp5g35f6c12k1";
      };
      installPhase = ''
        mkdir -p $out
        # Copy all the wordpress files we downloaded
        cp -R * $out/
        # We'll symlink the wordpress config
        ln -s ${wordpressConfig} $out/wp-config.php
        # As well as our custom .htaccess
        ln -s ${htaccess} $out/.htaccess
        # And the uploads directory
        ln -s ${config.wordpressUploads} $out/wp-content/uploads
        # And the theme(s)
        ${concatMapStrings (theme: "ln -s ${theme} $out/wp-content/themes/${theme.name}\n") config.themes}
        # And the plugin(s)
        # remove bundled plugin(s) coming with wordpress
        rm -Rf $out/wp-content/plugins/akismet
        # install plugins
        ${concatMapStrings (plugin: "ln -s ${plugin} $out/wp-content/plugins/${plugin.name}\n") (config.plugins ++ [ postgresqlForWordpressPlugin]) }
      '';
    };
  
  
negative.code:       type = types.listOf types.path;
        description =
          ''
            List of path(s) to respective plugin(s) which are symlinked from the 'plugins' directory. Note: These plugins need to be packaged before use, see example.
          '';
        example = ''
          # Wordpress plugin 'akismet' installation example
  