# ============================================================================ #
#
#
#
# ---------------------------------------------------------------------------- #

{ nixpkgs ? ( import ../../inputs ).nixpkgs.flake
, lib     ? import ../../lib { inherit (nixpkgs) lib; }
, system  ? builtins.currentSystem
, pkgsFor ? nixpkgs.legacyPackages.${system}
, basedir ? toString ../..
, options
}: import "${nixpkgs}/nixos/lib/make-options-doc" {
  inherit lib;
  pkgs    = pkgsFor;
  options = removeAttrs options ["_module"];
  transformOptions = optDoc: optDoc // {
    declarations = map ( builtins.replaceStrings [basedir] ["/floco"] )
                       optDoc.declarations;
  };
}


# ---------------------------------------------------------------------------- #
#
#
#
# ============================================================================ #
