Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib.mkOptions: allow arbitrary option metadata #341199

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Commits on Sep 11, 2024

  1. Configuration menu
    Copy the full SHA
    45b1c5f View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2024

  1. lib: Remove lib.evalOptionValue

    lib.modules.evalOptionValue is still available
    roberth committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    016f28c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2eda2ad View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2024

  1. lib.modules: Use user option prefix instead of optionMeta declaration…

    … prefix
    
    This feels like cheating, but it works out much better for the
    error messages:
    
        nix-repl> :p (evalModules { modules = [ {
            options.foo = mkOption { };
            options._module.optionMeta.wonk = mkOption { };
          } ]; }).options.foo.meta
        error: The option `options.foo.meta.wonk' was accessed but has no value defined. Try setting the option.
    roberth committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    a578a34 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f6107f4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a09d397 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    67ab16a View commit details
    Browse the repository at this point in the history