{ lib, stdenv, nix-gitignore, mdbook, mdbook-linkcheck2, cacert, python3, callPackage, deploymentOptionsMd ? null, metaOptionsMd ? null, colmena ? null, # Full version version ? if colmena != null then colmena.version else "unstable", # Whether this build is unstable unstable ? version == "unstable" || lib.hasInfix "-" version, }: let apiVersion = builtins.concatStringsSep "." (lib.take 2 (lib.splitString "." version)); colorizedHelp = let help = callPackage ./colorized-help.nix { inherit colmena; }; in if colmena != null then help else null; redirectTemplate = lib.escapeShellArg ''